Hi all.
First of all i want to tell you that the code is not made by me i just modded to fit on cabal servers also im not that really good in php so i just played abit with the code but i tought some people may find usefull and could improve it.
Note that this code allows only 1 vote/12 hours/IP adress.
So lets see:
Files:
database.php -> fill with ur db infos
index.php
links.php -> i left there 4 links u will understand how to add more :-)
security.php
vote.php
What it does?
It checks if there any vote already in the past 12 hours with the users ID and IP.
If there is then it will tell you to check back when u can vote again.
Also theres an Acc/PW autentication.
If everything is ok then it will update the users Cash + Votes and it sends the user to the vote link.
Ok first run this on your db.
Then just create a vote folder on ur webserver copy there the contents of the .rar and fill in the database.php with ur infos and links.php with ur vote links.Code:USE [CabalCash]
GO
/****** Object: Table [dbo].[votes] Script Date: 09/15/2011 01:03:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[votes](
[accName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
[lastVoteDate] [datetime] NOT NULL,
[voteLink] [int] NULL,
[ip] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
alter table CashAccount add votes int not null default 0
Vote Reward V0.2+Design:
Attachment 92296
Screens:
Attachment 92293Attachment 92294Attachment 92295
Note: I didnt tested too much so backup everything before trying out!
Credits: PsychoJr (Coding)
Me: Modding the code.
Edit: I modded also Alphakilo's Standalone ranking to show Top Voters.
Note that the top voters may be dangerous cos it shows the account name with the votes so use at your own risk... still u can use it for yourself like statistics or kind of.
Maybe later i could add some stuff to it so it wont show the account name but a character name or something... i just didnt had time yet to do it.
Here's:
Attachment 92289
Edit: Updated with Alphakilo's code + added some design.

