Register for your free account! | Forgot your password?

You last visited: Today at 17:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] PHP Vote Reward System

Discussion on [Release] PHP Vote Reward System within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
Hazious's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 15
Received Thanks: 32
[Release] PHP Vote Reward System Updated

!important Alright guys I've fixed all the issues that i know of please let me know if you find any more.

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] [intIDENTITY(1,1NOT NULL,
    [
UserID] [varchar](maxNOT NULL,
    [
UserIp] [varchar](maxNOT NULL,
    [
topDate] [datetimeNULL,
    [
topLink] [varchar](maxNULL,
    [
xtremeDate] [datetimeNULL,
    [
xtremeLink] [varchar](maxNULL,
    [
oxigenDate] [datetimeNULL,
    [
oxigenLink] [varchar](maxNULL
ON [PRIMARYTEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO 
Then just edit the vote.php with your database information and set your vote links.

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'
note you need to add your website vote links to all the vote sites you will need them in this format

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.
Attached Files
File Type: zip ShaiyaVoteFixed.zip (27.6 KB, 526 views)
Hazious is offline  
Thanks
8 Users
Old 04/26/2015, 00:13   #2
 
Hazious's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 15
Received Thanks: 32
Replace index.php with

Code:
<?php
include 'includes/db.php';
include 'includes/includeVote.php';
?>
Redirecting....<meta http-equiv="refresh" content="3;url=login.php">
Hazious is offline  
Old 04/26/2015, 00:33   #3
 
elite*gold: 0
Join Date: Jan 2012
Posts: 428
Received Thanks: 33
you have a script to create the table?
Cansas59 is offline  
Old 04/26/2015, 14:31   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 342
Received Thanks: 87
Hello,
what does it means ?
Quote:
all the vote sites you will need them in this format
as you present it here ?
PHP Code:
http://topofgames.com/
http://www.shaiyaserver.net/index************top

http://www.xtremetop100.com/
http://www.shaiyaserver.net/index************xtreme

http://www.oxigen-top100.com/
http://www.shaiyaserver.net/index************oxigen 
Or, How ?

Regards ! and Thank You
_Diavolino_ is offline  
Old 04/26/2015, 15:07   #5
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Thanks but the ip bug (ip by user blocked) is here ?
Regards,
SkuulCandy is offline  
Old 04/26/2015, 23:09   #6
 
Hazious's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 15
Received Thanks: 32
you need to read the urlsetup.txt and replace with your domain name or server ip.
Hazious is offline  
Old 05/06/2015, 13:22   #7
 
elite*gold: 0
Join Date: Apr 2015
Posts: 63
Received Thanks: 24
Hazious is working on IIS ?
kalib.32 is offline  
Old 05/06/2015, 16:13   #8
 
Twitch.Tv's Avatar
 
elite*gold: 0
Join Date: Mar 2015
Posts: 18
Received Thanks: 4
Quote:
Originally Posted by kalib.32 View Post
Hazious is working on IIS ?
Yes it does work with IIS.
Twitch.Tv is offline  
Old 05/07/2015, 02:52   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 352
Received Thanks: 83
any chance you can get this working on MSSQL_connect insted of pdo ?
Big_ is offline  
Thanks
1 User
Old 05/07/2015, 11:12   #10
 
elite*gold: 0
Join Date: Apr 2015
Posts: 63
Received Thanks: 24
Quote:
Originally Posted by Twitch.Tv View Post
Yes it does work with IIS.
Which kind of php version required?
kalib.32 is offline  
Old 05/07/2015, 19:51   #11
 
elite*gold: 0
Join Date: May 2010
Posts: 342
Received Thanks: 87
Why are we needed to created the new database ? we could use an exiting one ? (in this case replace in the code php the right name of database)
Regards
_Diavolino_ is offline  
Old 05/08/2015, 09:43   #12
 
Hazious's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 15
Received Thanks: 32
Quote:
Originally Posted by _Diavolino_ View Post
Why are we needed to created the new database ? we could use an exiting one ? (in this case replace in the code php the right name of database)
Regards
Well since i have already done this as a project for someone else i already had it setup to use PS_Website but feel free to make any changes that you desire.
Hazious is offline  
Thanks
1 User
Old 05/11/2015, 21:18   #13
 
elite*gold: 0
Join Date: May 2010
Posts: 342
Received Thanks: 87
Hye,
i got an issue,
i can log in ! i can see the Working way between site and database and table, BUT
just about the referral thing i got
Quote:
Fatal error: Call to a member function prepare() on a non-object in : includes\includeVote.php on line 8
i put the include at start of the page, i was use the link as present in ReadMe :
Quote:
could you tell me from where can come this issue ?(without the space)

Kind regards ! and thankyou in advance

and i was verify the driver are well installing Mssql Odbc and PDO driver xD
_Diavolino_ is offline  
Old 05/12/2015, 14:50   #14
 
Hazious's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 15
Received Thanks: 32
Quote:
Originally Posted by _Diavolino_ View Post
Why are we needed to created the new database ? we could use an exiting one ? (in this case replace in the code php the right name of database)
Regards
Quote:
Originally Posted by _Diavolino_ View Post
Hye,
i got an issue,
i can log in ! i can see the Working way between site and database and table, BUT
just about the referral thing i got

i put the include at start of the page, i was use the link as present in ReadMe :

could you tell me from where can come this issue ?(without the space)

Kind regards ! and thankyou in advance

and i was verify the driver are well installing Mssql Odbc and PDO driver xD
Sorry i forgot to include db.php as well as includeVote.php

Code:
<?php
include 'includes/db.php';
include 'includes/includeVote.php';
?>
Redirecting....<meta http-equiv="refresh" content="3;url=login.php">
paste this over the contents of index.php and it should fix the issue.
Hazious is offline  
Thanks
1 User
Old 05/12/2015, 20:21   #15
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Code:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\xampp2\htdocs\ShaiyaVote\includes\db.php:7 Stack trace: #0 C:\xampp2\htdocs\ShaiyaVote\includes\db.php(7): PDO->__construct('sqlsrv:Server=1...', 'my_sql_username', 'my_sql_password') #1 C:\xampp2\htdocs\ShaiyaVote\index.php(2): include('C:\\xampp2\\htdoc...') #2 {main} thrown in C:\xampp2\htdocs\ShaiyaVote\includes\db.php on line 7
I have this error. Do not find the PDO Driver :/
SkuulCandy is offline  
Reply


Similar Threads Similar Threads
New Vote Reward system
04/04/2013 - SRO Private Server - 24 Replies
For people who cant understand that its discussion - ITS A DISCUSSION Hello, I want to present you a new vote reward system. System Features: -Works with API -Updates are installed immediately -No need for login -Updates are installed automatically -Checks if username is correct -You gain full acces to .css file
[Release] Vote Reward System
02/07/2013 - CO2 PServer Guides & Releases - 12 Replies
Hello, i've been requesting & asking too much questions, and thought that because Epvp(members) helped me, i've to help back. This vote system works on the 5672+ sources available these days, but it can work on any source if you know what you're doing. How does it work : NPC that opens a vote link & adds a CPs amount, works every 12h -----------Codes------------- Open Dialogs.cs(or NPCS.cs, depends on your source): Paste this with the other npcs
Vote reward system v0.1.2
04/26/2012 - SRO Private Server - 35 Replies
NEW THREAD
[Guide] Vote abuse for any private server with vote reward system
08/12/2011 - Off Topic - 3 Replies
I do not know if this is the right place to post this @_@ Source : http://tachael.vacau.com/Thread-Vote-abuse-for-any -private-server?pid=59#pid59 What you need: Lots of account http://fileace.com/h0l0a First step: Register accounts in the private server you want to vote abuse.



All times are GMT +2. The time now is 17:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.