Jump to content

Search the Community

Showing results for tags 'vote'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 118 results

  1. CheckMeowt

    When do votes reset?

    When does the vote list reset every month? I entered late this month and was hoping to get players to vote more around reset time.
  2. EverythingRS - Free Voting Installation EverythingRS is a free API system. Here's a quick tutorial on how to get started with voting. Getting started First off download our everythingrs-api.jar from here and include it into your project. Registration and secret key After adding the everything-rs.jar into your project create an account at https://everythingrs.com, once the account is created you must register onto the toplist as we use the toplist data in many of our api's. Now go to your dashboard and you should see your secret key Your voting subdomain! Go to your main panel at https://everythingrs.com/account . You should now see your voting URL in the "Your API Pages" section (OPTIONAL) If you wish to embed the script on your website you can add the code below directly onto your website. Change "yoursubdomain" to the one that was provided to you
  3. Hey, I tried to make a callback for my server, with: https://www.runelocus.com/tutorials/callback-installation/ But the images are missing, and the code is in PHP 5. but I need Images anyone?
  4. hello everyone i am trying to make the vote systeme on my forum im usuing free forum (proboards) if someone can help me with that will be really appreaciat pm me on forum or add meon skype skype: mini-max213
  5. So I need someone to add duo slayer & auto vote or one of the both :P Paying $8 for each duo slayer & auto vote must do over teamviewer
  6. ZappyFun

    GTL Vote Help

    Ive got it 100% installed but in this part how do i reward the voter 1m cash? [code] if (playerCommand.equalsIgnoreCase("check") || playerCommand.equalsIgnoreCase("reward")) { try { VoteReward reward = Server.vote.hasVoted(c.playerName.replaceAll(" ", "_")); if(reward != null){ switch(reward.getReward()){ case 0: //rewards break; case 1: //etc default: c.sendMessage("Reward not found."); break; } c.sendMessage("Thank you for voting."); } else { c.sendMessage("You have no items waiting for you."); } } catch (Exception e){ c.sendMessage("[GTL Vote] A SQL error has occured."); } } [/code]
  7. Everything for highscores is already coded in to the server and added on website, I just can't get it to actually display the results, i think its something to do with Mysql. Voting needs coded in. trying to stay on budget send me some decent offers. server is 24/7 just getting ready to do official release but, can't get highscores or voting to work. add my skype, Jdurky
  8. kira1234

    vote in 667

    conatct me by skype [email][email protected][/email] search for that and u will find me my skype user is kira or contact me ingame search for iceage rsps on google
  9. I added the Vote 4 cash in server and web sided and this is the error I got. [CODE]Could not connect to mysql database: Lost connection to MySQL server at 'reading initial communication packet', system error: 111[/CODE] Here is my Website Sided .php (xxxx means it's my mySQL data.) [CODE]<?php /** * @author Stuart <RogueX | iVariable> * @version 1.1 UPDATED: 06.09.2010 * [MENTION=67687]Com[/MENTION]ment fixed a few bugs */ /** * mysql database hostname */ define("MYSQL_HOST", "xxxx"); /** * mysql username to connect to the database server */ define("MYSQL_USERNAME", "xxxx"); /** * mysql password the password to connect to the database server */ define("MYSQL_PASSWORD", "xxxx"); /** * mysql database the database name in which you have your vote table setup */ define("MYSQL_DATABASE", "xxxx"); /** * vote url this is the url which where users will be sent to on voting */ define("VOTE_URL", "FINALVOTING URL"); /** * The number of hours between voting */ define("VOTE_HOURS", 24); /** * connect() this function is used to connect to the mysql database server. */ function connect() { if ( [MENTION=103481]Mysql[/MENTION]_connect("MYSQL_HOST", "MYSQL_USERNAME", "MYSQL_PASSWORD")) die("Could not connect to mysql database: " . mysql_error()); if ( [MENTION=103481]Mysql[/MENTION]_select_db("a2208758_forums")) die("Could not select mysql database: " . mysql_error()); $tables = mysql_list_tables("a2208758_forums"); while (list($temp) = mysql_fetch_array($tables)) { if ($temp == "votes") { return; } } query("CREATE TABLE `votes` ( `playerName` VARCHAR( 255 ) NOT NULL , `ip` VARCHAR( 255 ) NOT NULL, `time` BIGINT NOT NULL , `recieved` INT( 1 ) NOT NULL DEFAULT '0')"); } /** * query(string query) this function is used to query the mysql database server. */ function query($s) { $query = [MENTION=103481]Mysql[/MENTION]_query($s); if (!$query) die("Error running query('" . $s . "'): " . mysql_error()); return $query; } /** * anti_inject(string text) this function is used to make sure no injections can be made. */ function anti_inject($sql) { $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"), "", $sql); $sql = trim($sql); $sql = strip_tags($sql); $sql = addslashes($sql); $sql = strtolower($sql); return $sql; } /** * clean_request(int timestamp, string username) this function is used to delete any entries if they have already expired. */ function clean_request($time, $username) { $query = query("SELECT * FROM `votes` WHERE `playerName`='" . $username . "'"); if (mysql_num_rows($query) > 0) { $row = mysql_fetch_array($query); $timerequested = $row['time']; if ($time - $timerequested > VOTE_HOURS * 3600) query("DELETE FROM `votes` WHERE time='" . $timerequested . "'"); } } /** * vote_entries(string ip) this function is used return the number of rows within the table */ function vote_entries($ip) { $query = query("SELECT * FROM `votes` WHERE ip='" . $ip . "'"); return mysql_num_rows($query); } /** * This is the actual working of the script please do not touch anything below if you do not know what you are doing... */ if (isset($_POST['submit']) || isset($_GET['username']) && isset($_GET['type'])) { connect(); if ($_POST['submit']) { if(@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 1)) die("Sorry but you have port 80 open, this is to stop voting by proxy address."); if(isset($_COOKIE['voted'])) die("Sorry but it looks like you have already voted..."); $username = anti_inject($_POST['username']); $ip = gethostbyaddr($_SERVER['REMOTE_ADDR']); clean_request(time(), $username); if (vote_entries($ip) == 0) { setcookie ("voted", "yes", VOTE_HOURS * 3600); query("INSERT INTO `votes` (`playerName`, `ip`, `time`) VALUES ('" . $username . "', '" . $ip . "', '" . time() . "')"); header("Location: " . VOTE_URL . ""); } else { die("You have already voted once today."); } } elseif ($_GET['type'] == "checkvote") { $username = anti_inject($_GET['username']); $query = query("SELECT * FROM `votes` WHERE `playerName`='" . $username . "'"); if (mysql_num_rows($query) == 1) { $results = mysql_fetch_array($query); if ($results['recieved'] == 0) { query("UPDATE `votes` SET `recieved`='1' WHERE `playerName`='" . $username . "'"); die("user needs reward..."); } else { die("user been given reward..."); } } else { die("Vote not found... ". $username ."."); } } } ?> <html> <head> <title>RotateX Voting</title> <style type="text/css"> body { background-color: #111111; font-family:Arial; } .link { cursor:pointer; color: #037; text-decoration: underline; } .link:hover { color: #3300FF; } .link-done { cursor:pointer; color: #037; text-decoration: line-through; } .link-done:hover { color: #3300FF; } #container { background-color: #222222; height: auto; width: 500px; padding: 5px; border: 1px solid #333333; margin: 0 auto auto auto; -moz-box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000; } #help { background-color: #222222; height: auto; width: 500px; padding: 5px; border: 1px solid #333333; margin: 0 auto auto auto; -moz-box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000; } </style> <script type="text/javascript"> var timer; var timeLeft = 30; var voted1 = false; var voted2 = false; var voted3 = false; var voted4 = false; var voted5 = false; function clickedLink(button) { switch(button) { case 1: voted1 = true; javascript:window.open('SITE1.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote1").setAttribute("class", "link-done"); break; case 2: voted2 = true; javascript:window.open('SITE2.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote2").setAttribute("class", "link-done"); break; case 3: voted3 = true; javascript:window.open('SITE3.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote3").setAttribute("class", "link-done"); break; case 4: voted4 = true; javascript:window.open('SITE4.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote4").setAttribute("class", "link-done"); break; case 5: voted5 = true; javascript:window.open('SITE5.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote5").setAttribute("class", "link-done"); break; } setSitesLeft(); if (voted1 && voted2 && voted3 && voted4 && voted5) { startCountDown(); document.getElementById('statusText').style.display = 'none'; } } function startCountDown() { timer = setInterval("doCountDown();", 1000); document.getElementById('timerText').style.display = 'block'; } function doCountDown() { document.getElementById('timeLeft').innerHTML = timeLeft; timeLeft = (timeLeft - 1); if (timeLeft <= 0) { document.getElementById('links').style.display = 'none'; document.getElementById('voted').style.display = 'block'; clearTimeout(timer); } } function setSitesLeft() { var count = 5; if (voted1) { count = (count - 1); } if (voted2) { count = (count - 1); } if (voted3) { count = (count - 1); } if (voted4) { count = (count - 1); } if (voted5) { count = (count - 1); } document.getElementById('sitesLeft').innerHTML = count; } </script> </head> <body> <center><a href="LOGOCLICKLINK"><img src="LOGOIMAGEURL" /></a></center><br /> <div id="help"><strong>How It Works:</strong><br /><br />Vote on each of the links below once you have voted on all of them you will be forwarded to A page that will allow you to input your username. When you are on this page make sure you put in your username and accept. Once in game type ::claim to receive your reward!</div><br /> <div id="container"> <div id="links"> 1. <a id="vote1" onclick="clickedLink(1);" class="link">SITE 1</a> <br> 2. <a id="vote2" onclick="clickedLink(2);" class="link">SITE 2</a> <br> 3. <a id="vote3" onclick="clickedLink(3);" class="link">SITE 3</a> <br> 4. <a id="vote4" onclick="clickedLink(4);" class="link">SITE 4</a> <br> 5. <a id="vote5" onclick="clickedLink(5);" class="link">SITE 5</a> <br> <br> <span id="statusText">Click & vote at all the links above to continue, only <b id="sitesLeft">5</b> left.</span> <span id="timerText" style="display: none;">You have <b id="timeLeft">*</b> seconds left before you can claim you reward. </span> </div> <div id="voted" style="display: none;"> <form action="index.php" method="post"> <center>Username: <input type="text" name="username" /> <input type="submit" name="submit" value="Claim Reward!" /></center> </form> </div> </div> </body> </html>[/CODE] Server Sided [CODE]public boolean checkVotes(String playerName) { try { String urlString = "http://rotatexrsps.com/vote.php?type=checkvote&username="+playerName; urlString = urlString.replaceAll(" ", "%20"); URL url = new URL(urlString); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String results = reader.readLine(); if(results.length() > 0) { if(results.equals("user needs reward...")) return true; else return false; } } catch (MalformedURLException e) { System.out.println("Malformed URL Exception in checkVotes(String playerName)"); } catch (IOException e) { System.out.println("IO Exception in checkVotes(String playerName)"); } return false; }[/CODE]
  10. alexbanerjee

    Auto vote.

    Paying for someone to add auto vote for me :) i have gtl vote installed but i need to get the call backs working.. skype alexbanerjee
  11. i know its both client sided and server sided to create the command not sure where to start Edit: need it to open a web page if possible
  12. Flexypexy

    Vote bypass

    [B]Please don't take this as troll/joke.[/B] I found a way to bypass the vote limit of 12 hours on RuneLocus. Any admin can PM me.. Sincerely,
  13. Hi:) problem is my crowns, They hide my name and are like really weird. Here i have a pic, if you can help me please <3 i would really appriciate it. [img]http://i.imgur.com/K6DC76i.jpg[/img] Thanks :))))
  14. [SIZE=4][FONT=Impact]Before you comment: i tried using google there was tons of toturials but most of them are not working and some of them give me alot of errors and i just couldnt find a good toturial for me since im a begginer![/FONT][/SIZE] if anyone could help me make a voting system that would me amazing! ill give you my skype and teamviewer information if needed! just pm me :) thanks!
  15. Hi guys, I need help with my vote system... I'm currently using gtl vote system. I don't know how to mess with php/callback So if your willing to help. Please let me know. Currently looking for a webdeveloper as well. Skype: ayye.geo
  16. Okay... I'm just gonna get right to it. Client class and search for "Welcome to" and beneath that add [CODE]if (voteTimer > 0) { sendMessage("You have already voted, you will have to wait "+voteTimer+" seconds."); } else { sendMessage("Please type ::vote to recieve 5M every 24 hours!"); }[/CODE] same class find process method and add [CODE]if (voteTimer > 0) { voteTimer--; }[/CODE] open player.java and add [CODE]public int voteTimer = 0;[/CODE] now open commands class and add [CODE]f (playerCommand.startsWith("vote")) { if (c.voteTimer == 0) { c.getPA().sendFrame126("www.runelocus.com/toplist", 12000); c.getItems().addItem(995, 5000000); c.sendMessage("Thank you for voting for Rune-Regrets."); c.sendMessage("5M has been added to your inventory."); c.voteTimer = 86400; } else { c.sendMessage("You have already voted today, try again in "+c.voteTimer+" seconds."); } }[/CODE] now open playersave and add [CODE]} else if (token.equals("vote-timer")) { p.voteTimer = Integer.parseInt(token2);[/CODE] and [CODE]characterfile.write("vote-timer = ", 0, 13); characterfile.write(Integer.toString(p.voteTimer), 0, Integer.toString(p.voteTimer).length()); characterfile.newLine();[/CODE] Thanks ;)
  17. So im trying to set up vote, and i just have one quick question not sure where to ask and i cant find any answers online. For the RuneToplist V2 vote buttons, where do i find the[COLOR="#FF0000"] SITE-ID-HERE[/COLOR] for runelocus vote for server? I looked everywhere and cant find. And the link for the vote does not end with = on the regular vote page. Thanks in advance! [CODE]RuneLocus link is required for this voting script to work Example url: http://www.runelocus.com/toplist/index.php?action=vote&id=[COLOR="#FF0000"]SITE-ID-HERE[/COLOR]&id2= Beware it should always end with an =[/CODE]
  18. now i have done what the tutorial says up to my knowledge but i cant figure out exactly what mysql is and i cant find out based on my research, can somebody dumb it down a little bit for me? [URL=http://www.runelocus.com/forums/usertag.php?do=list&action=hash&hash=noob]#noob[/URL] thanks
  19. In mainloader.java i have this part wich i don' t know to fill it in from my MySQL database information. [QUOTE] } public static String getHost() { return host; } public static String getUser() { return user; } public static String getPass() { return pass; } public static String getDb() { return db; } public static VoteReward hasVoted(String username) throws SQLException { return VoteChecker.checkVote(username); } public static String host; ANYTHING HERE? public static String user; ANYTHING HERE?? public static String pass; ANYTHING HERE? public static String db; ANYTHING??? } [/QUOTE] Does this part has to be filled in? Thanks for answering.
  20. krazykash

    Vote 4 Reward

    Hi Everyone, I've never really posted anything on RSPS forums or community websites but I've been involved with RSPS for a while now. As you know RuneTopLists old vote authentication package went a little out of date and doesn't work properly since their new update. I did this for a friend who runs a RSPS but I thought I might publish it on here. It's not fully done yet, but I want to know what people think so here's a preview of what I've done so far. I've written the code for the admin control panel too which display all the votes and whether they've been claimed or not. Besides this, you can enable and disable certain links as well as rewards. You can also just disable callback for a site if their callback is temporarily broken and etc. All rewards and links can be easily added through the admin control panel and I will post updates with the admin control panel soon. Note: I started a few hours ago. I've done all the back end PHP and JS stuff but I'm still designing the front-end and it doesn't really look that great. Majority of this is done through AJAX such as loading the page links and using JQuery to manipulate DOM. So, this is the front page when you're allowed to vote: [SPOILER=Frontpage][IMG]http://i.imgur.com/MR9SBqS.png[/IMG][/SPOILER] Here's an example of the vote sites loaded into an iframe with a next button, just ease of use :) [SPOILER=Wizard][IMG]http://i.imgur.com/nnuxIAX.png[/IMG][/SPOILER] Here's the rewards page if you skip some of the sites, it's just to show it works. I need to design it. [SPOILER=Skipped links][IMG]http://i.imgur.com/1xpqiT4.png[/IMG][/SPOILER] Here's the front-page if you've already voted in the past 12 hours (needs work, maybe a live jquery countdown): [SPOILER=Already voted][IMG]http://i.imgur.com/TY5Jy0M.png[/IMG][/SPOILER] Here's a preview of some of the code, still needs commenting. [SPOILER=Code preview][IMG]http://i.imgur.com/ETRPnOZ.png[/IMG][/SPOILER] Hope you guys like it and feel free to leave feedback on features you think would be cool or just general improvements :) As an extra, I've used a skeleton to make it responsive for mobile, tablet and etc but other than that this is all my work :) - KrazyKash
  21. When i try to set up a mysql database through webhosting (000webhost, 1freehosting) nothing happens, I have followed every tut on google to set this up, So i was wondering if maybe you need to pay for the domain first as the ones i use are free hosting and i currently use webs.com so is that an issue?, Or maybe that i do not have a dedicated server just yet ? Could someone help i would appreciate it alot Thanks in advance.
  22. Lock Please
×