Well here is an epic release for elitepvpers I've spent a few hours coding this so I really hope you guys enjoy it.
So what does this PHP Vote Reward System do well if you know Shaiya Invasions Shaiya Vote Reward system well this is almost a complete copy players don't get the points until they click the link back to the website from the vote site.
Also FYI this script can't be exploited by players since it checks if the player has voted with the same ip then just uses the info from that.
Credits to Nubness from Shaiya Invasion for the Vote Images some html and css thank you very much and Thank you abrasive for the function that protects people from sql injection.
For this release to work you need to create a new Database and call is PS_Website
Then execute this Query to add the required table to the database
PHP Code:
USE [PS_Website]
GO
/****** Object: Table [dbo].[votes] Script Date: 4/25/2015 9:41:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[votes](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [varchar](max) NOT NULL,
[UserIp] [varchar](max) NOT NULL,
[topDate] [datetime] NULL,
[topLink] [varchar](max) NULL,
[xtremeDate] [datetime] NULL,
[xtremeLink] [varchar](max) NULL,
[oxigenDate] [datetime] NULL,
[oxigenLink] [varchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
Then edit includeVote.php with your reward_points for each vote.
Now you need to include this file in your index page for your website.
PHP Code:
include 'includes/includeVote.php';
if you can't get this working then idk lol but yea it's not hard to work it out just read through it.
please read urlsetup.txt
Here is a test link
To use the demo you will need to be registered with Eleaf Shaiya.