[Vote]Box for websites menu

User Tag List

Results 1 to 7 of 7
  1. #1
    matser's Avatar Active Member
    Reputation
    37
    Join Date
    Nov 2007
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Vote]Box for websites

    Hello everyone,release of a Vote box for private websites.
    Only PhP
    Code:
         Quote:
                                                     </head>
    <body>
    <?php
    $user="EDITMEPLEASE";
    $password="EDITMEPLEASE";
    $database="EDITMEPLEASE"; //Char+login DB
    
    $nochar=false;
    $voted=false;
    $disp = true;
    if(($_COOKIE['vote']) != '1')
    {
        if(!empty($_POST['name']))
        {
            mysql_connect(localhost,$user,$password);
            @mysql_select_db($database) or die( "Unable to select database");
            $name = strtolower(mysql_real_escape_string($_POST['name']));
            $today = date("mdHi");
            $query="SELECT * FROM characters WHERE name='$name' LIMIT 1";
            $result = mysql_query($query);
            if($row = mysql_fetch_array($result))
            {
                $guid = $row['guid'];
                $acct = $row['acct'];
                $res = mysql_query("SELECT * FROM votewatch WHERE acct='$acct' LIMIT 1");
                if($r2 = mysql_fetch_array($res))
                {
                    $ct = $r2['ctime'];
                    if($today-$ct < 1200)
                    {
                        $disp = false;
                        mysql_close();
                        return;
                    }
                    else
                    {
                        mysql_query("DELETE FROM votewatch WHERE acct='$acct' LIMIT 1");
                    }
                }
                $reward = mysql_real_escape_string($_POST['reward']);
                if($reward == 0)
                {
    mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES ($guid, $guid, 'Thank you for voting!', 'Have this item as a reward', 0, 1000000, 0, 1)");
                }
                else
                {
    mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES ($guid, $guid, 'Thank you for voting!', 'Have this item as a reward', 0, 0, $reward, 1)");
                }
                mysql_query("INSERT INTO votewatch(acct, ctime) VALUES($acct, $today)");
                $voted = true;
            }
            else
            {
                $nochar = true;
            }
            mysql_close();
        }
    }
    else
    {
        $disp = false;
    }
    
    ?>
    <div id='container' style='-moz-user-select: none; -khtml-user-select: none; user-select: none; cursor:default; padding-bottom:5px; width:320px; border: 4px double red; position: absolute; top:20px; left:20px; background-color:black; color:white;'>
    <div id='header' style='font-family: Arial; margin-bottom: 0.5em; border-bottom: 1px solid red; text-align: center; background-color:gray; color:#ffffff'>
            Please Vote for Forgotten WoW to help us Grow!
            <span align='right' style='position:absolute; left: 305px; text-align: right;'>
                <a href='javascript:void();' style='font-size:10px; color:white; text-decoration:none;' onclick='javascript:document.getElementById("conta  iner").style.display="none";'>
                    [X]
                </a>
            </span>
        </div>
        <div id='text' style='padding: 5px; padding-left: 7px; font-size: 12px; border-bottom: 1px solid red;'>
            Voting for our server helps us grow and evolve, 
            and eventually become better than before. 
            You can vote once every 12 hours, and you'll get a reward for doing so!
        </div>
    <form style='text-align: center; margin-bottom: 2px; margin-top: 5px;' method='post' action='http://www.xtremetop100.com/in.php?site=1132253767'>
            <div style='font-size: 12px; valign:center;'>
                Character Name:&nbsp;&nbsp;
            
    <input type='text' name='name' style='font-size: 12px; width: 80px; background-color: black; color: white; border: 1px solid red;' />
    <input type='submit' style='font-size: 12px; position:relative; top:1px; color:white; height: 17px; border:1px solid red; background-color:black;' value='Vote!' />
            </div>
            <div style='font-size: 12px; valign:center; margin-top: 5px; padding-top: 3px;'>
                Choose a reward:&nbsp;&nbsp;
    <select name='reward' style='background-color: black; color: white; font-family: Arial; font-size: 12px; border: 1px solid red; height: 17px; font-size: 10px;'>
                    <option value='0'>100 Gold</option>
                    <option value='27498'>Vote Point</option>
                    
                </select>
            </div>
            <?php>
    Last edited by matser; 10-28-2008 at 03:48 AM.

    [Vote]Box for websites
  2. #2
    Etna's Avatar Banned
    Reputation
    20
    Join Date
    Sep 2007
    Posts
    349
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WoW Seems Nice

  3. #3
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    screens plz

  4. #4
    matser's Avatar Active Member
    Reputation
    37
    Join Date
    Nov 2007
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't show screenies atm,deleted my private server,so sorry for that :yuck:
    but i recomend this still

  5. #5
    Herleybob's Avatar Contributor
    Reputation
    178
    Join Date
    Jul 2007
    Posts
    663
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forgot a > at the end of <php

    Nom Nom Nom :P

  6. #6
    lilbdiablo12's Avatar Active Member
    Reputation
    40
    Join Date
    Feb 2008
    Posts
    535
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    o.O thats kinda interesting

    is there a way to give out random prizes instead of just one? to make it random, so they get the same thing everytime?
    Last edited by lilbdiablo12; 10-28-2008 at 12:12 AM.

  7. #7
    matser's Avatar Active Member
    Reputation
    37
    Join Date
    Nov 2007
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lilbdiablo12 View Post
    o.O thats kinda interesting

    is there a way to give out random prizes instead of just one? to make it random, so they get the same thing everytime?
    and yes it should be able to make them get the possibility to choose between 2-3 things,but that takes some job also,will probly not work on that

    Originally Posted by Herleybob View Post
    Forgot a > at the end of <php
    thanks will edit that :wave:

Similar Threads

  1. Vote System for WoW Private Server Website
    By Astonix in forum Programming
    Replies: 1
    Last Post: 06-24-2010, 08:08 PM
  2. Vote page for website
    By zimonken in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 04-12-2009, 12:21 AM
  3. Question: Nonworkin Voting Box rep for assistance
    By mastermania in forum World of Warcraft General
    Replies: 0
    Last Post: 12-27-2008, 05:40 PM
  4. I Have a voting bot for WoW Emulated Servers, I need to decompile it, HELP
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 12-04-2007, 12:04 PM
  5. Looking for website designer
    By Denelly in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 11-02-2007, 09:42 PM
All times are GMT -5. The time now is 05:05 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search