Voting Box

02/06/2013 00:19 cpnm1#1
This will be my first contribution to the forum.

What you need?

- A site connected to your MsSQL server
- ODBC
- Brain
- Computer

First, you need to execute these queries:


Now for the PHP codes:
The source was based from this files: [Only registered and activated users can see links. Click Here To Register...]
I forgot where I got this and who uploaded it but, I would love to give him credits =D

Anyway, his voting scripts we're finished and has a lots of bugs. To be honest, I don't know anything about PHP, SQL, or any website programming languages. I tried to ask if someone knows how to fix it. But unfortunately, no one does. So I studied PHP, ODBC and MsSQL languages. It took me 3 days to understand the algorithm of the script and another 3 days to debug it. Off with the story. Let's proceed =D

Create 4 files and name it ajax.php, config.inc.php and votebox.inc.php, function

use this code for ajax.php


For config.inc.php, use this code:

For functions.inc.php, use this code:

For votebox.inc.php, use this code:


That's all, now try to check if it's working...
Enjoy!



My code isn't professional, I'm just new to this programming languages. You could improve my code if you want.


Credits:
80% To the one who uploaded wwwroot.rar
20% To me for finishing his work.

If you used the wwwroot.rar, you need to change the language by yourself =D
02/06/2013 05:46 - DK#2
This give 100000 in Elitepvpers ? Closerrequest .because this give in many Hompages from Stefan Pfeifer :) This Votebox is from Stefan Pfeifer ;) All Credits go to Stefan Pfeifer :)
02/06/2013 11:07 cpnm1#3
Quote:
Originally Posted by Armageddon ™ View Post
This give 100000 in Elitepvpers ? Closerrequest .because this give in many Hompages from Stefan Pfeifer :) This Votebox is from Stefan Pfeifer ;) All Credits go to Stefan Pfeifer :)
lol, but he didn't finish the work...there were a lot of bugs... so i fixed it and add some codes to it...and please read the last part of the post...
02/06/2013 16:33 - DK#4
Quote:
Originally Posted by cpnm1 View Post
lol, but he didn't finish the work...there were a lot of bugs... so i fixed it and add some codes to it...and please read the last part of the post...
o.O i dont see any Bugs `? All my Votebox in 3 Years work without problems :o ?
02/06/2013 17:40 cpnm1#5
Quote:
Originally Posted by Armageddon ™ View Post
o.O i dont see any Bugs `? All my Votebox in 3 Years work without problems :o ?
go ahead and search for his post...try to check the files your self and compare it with mine...and try to read the replies...

Learn to be mature, start reading and stop flaming!

and btw, it's not Stefan Pfeifer's code..

it's from Final Sensation, now I remember...please do more of this(obervation, work) than this(talking, flaming)

and i didn't ask for how long your voting box lasted...no one did ask...
02/07/2013 08:41 raventh1984#6
Actualy every one is using this vote box. 80% of the websites coded by Stefan has this funtion. [Forsaken Flyff] Etc. dont know it all. I believe this was made by Stefan it self. And the reason you have this from an other website is cause its easy to have to vote box seperated from the website and implant it to an other website.

And he isn't Flaming. He just made his point in this matter. And for the bugs.
There where almost 0 buggs. The reason must players couldnt get it to work was of their own ignorence. They want it spoon feed rather then learn from it. Why do you think if we release something that we dont spoon feed it all. Then the whole dev part is dead cause no one learns from it.

With kind regards,

Loky.