Jump to content

Search the Community

Showing results for tags 'donation'.



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 41 results

  1. EverythingRS - Free Donation Installation EverythingRS is a free API system. Here's a quick tutorial on how to get started with donations. 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 the next step is to 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 Setting up your donation with Paypal In order for the donation script to work, you must set it up with your Paypal. To set up your donation script to receive Paypal payments, go to your settings here Input your Paypal email and hit submit Adding and removing items Adding and removing items from your Auto Donate is simple. Go to your Auto Donate dashboard here Under "Add new product", fill out the form information, then hit submit To remove an item just click "Remove" next to the item that you are trying to remove (Optional) Creating a Sale We promote sales on our front page. This is a good way for new players to find deals on servers before joining, and for servers to earn new customers. To create a sale go to your Sales dashboard here Choose the item that you want to put on sale Set the expiration date, and what % off you want to make the item Read our notification and confirm that you commit to the sale. Lets take a look at your new donation page You can find your donation script at: yoursubdomain.everythingrs.com/services/store Making the auto donate work with your server This part of the tutorial is for PI & Ruse, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for. Add the code below into Commands.java and you're all done For PI if (playerCommand.equalsIgnoreCase("claim")) { new java.lang.Thread() { public void run() { try { com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", c.playerName); if (donations.length == 0) { c.sendMessage("You currently don't have any items waiting. You must donate first!"); return; } if (donations[0].message != null) { c.sendMessage(donations[0].message); return; } for (com.everythingrs.donate.Donation donate : donations) { c.getItems().addItem(donate.product_id, donate.product_amount); } c.sendMessage("Thank you for donating!"); } catch (Exception e) { c.sendMessage("Api Services are currently offline. Please check back shortly"); e.printStackTrace(); } } }.start(); } For Vencillio In PlayerCommand.java under switch (parser.getCommand()) { Add case "claim": new java.lang.Thread() { public void run() { try { com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", player.getUsername()); if (donations.length == 0) { player.send(new SendMessage("You currently don't have any items waiting. You must donate first!")); return; } if (donations[0].message != null) { player.send(new SendMessage(donations[0].message)); return; } for (com.everythingrs.donate.Donation donate : donations) { player.getInventory().add(new Item(donate.product_id, donate.product_amount)); } player.send(new SendMessage("Thank you for donating!")); } catch (Exception e) { player.send(new SendMessage("Api Services are currently offline. Please check back shortly")); e.printStackTrace(); } } }.start(); return true; For Ruse if (command[0].equalsIgnoreCase("claim")) { new java.lang.Thread() { public void run() { try { com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", player.getUsername()); if (donations.length == 0) { player.getPacketSender().sendMessage("You currently don't have any items waiting. You must donate first!"); return; } if (donations[0].message != null) { player.getPacketSender().sendMessage(donations[0].message); return; } for (com.everythingrs.donate.Donation donate : donations) { player.getInventory().add(new Item(donate.product_id, donate.product_amount)); } player.getPacketSender().sendMessage("Thank you for donating!"); } catch (Exception e) { player.getPacketSender().sendMessage("Api Services are currently offline. Please check back shortly"); e.printStackTrace(); } } }.start(); } Fin You are now finished adding the auto donation script to your website and server. If you have any suggestions for features, leave a comment and let me know. For non subdomain version This tutorial was for the subdomain version, if you're not using the subdomain version of our scripts then you must enable ipn and link the url to your ipn.php here: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-ipn-notify
  2. Are there any tutorials how to make a donator shop with rpay using donator points?
  3. [CENTER] [SIZE=4][SIZE=5][B][FONT=trebuchet ms]RSPS Network - Management System [URL="http://rspsnetwork.com"][SIZE=2]http://rspsnetwork.com[/SIZE][/URL][/FONT][/B][/SIZE] [/SIZE] RSPS Network is a system that allows users to create, manage, and style a custom shop without the hassles of coding. Users may opt to keep their shop hosted on RSPS Network servers OR they may display their custom made shop directly on their own website using our API. Our shop interface allows for a "cart-style" checkout so that your buyers can buy multiple items at once. All purchases are logged into our databases for your ease of use. We even have a Java API for you to handle all incoming donations, delete donations, and view recent & past logs. We don't ask for any confidential information (besides a paypal e-mail address to use for the shop recipient). RSPS Network is be [B]free to use[/B]. RSPS Network is now [B]available[/B] to all users! Come and try out our easy to use system. Even though we worked out the system bugs during the beta tests, if there are any errors in the future, please report them to my skype [B]'worldofclayton'[/B]. [quote name='Phage']Been using this system for over a week now, found a couple problems but Hope was right on top of it all very quickly! Accepted multiple donations now using the system and was easy to implement, would definitely recommend anyone, whether new or experienced with RSPS to use this system with theirs.[/QUOTE] [/CENTER] Snapshot of our shop manager page. [URL="http://i.share.pho.to/61f203aa_o.png"] [IMG]http://i.share.pho.to/61f203aa_o.png[/IMG] [/URL] [IMG]http://i.share.pho.to/1bad8139_o.png[/IMG]
  4. Can someone help me to connect to highscores and donations. Can someone help me? I pay 5 dollar for person who helps me. Add me on skype: syclonepk or shershah fedrik Thanks for youre help.
  5. [CENTER][FONT=arial black][B]RuneUnited's Autodonation Tutorial Alright, so I had these auto donation files on my hand and decided to release it to everyone so they could make some use of it. You can either follow the tutorial listed below or if you can't figure it out, I can set it up for you for some money (Really helps towards my school tuition). [/B][/FONT] [B]Notes: [/B] [COLOR=#ff0000][B]- I'm tired, it's almost 12 pm, so there is probably spelling errors and possibly 1 or 2 things left out. Let me know.[/B][/COLOR] [/CENTER] [Spoiler=Website Side Tutorial] [B]1.) [/B] -Download the following zip file (Contains all of the website files and a sample server file). [URL="http://up.ht/1hTwlDb"]Download Here[/URL] [B]2.)[/B] Go into your webhost control panel, then navigate to "MySQL Databases". [B]3.)[/B] Once there, create a new database. [B]4.)[/B] Create a new user + password for that database. [B]5.)[/B] Add the user to the database (Bind the user to the database). [B]6.)[/B] Note: Don't forget the DATABASE NAME, DATABASE PASSWORD AND DATABASE USERNAME. Write it down somewhere. [B]7.)[/B] Navigate back to your control panel, then select "phpMyAdmin". [B]8.)[/B] Once done, select the database you've just created. [IMG]http://i.imgur.com/h6snT.png[/IMG] [SIZE=5][B]9.)[/B] Select "Import" near the top.[/SIZE] [IMG]http://i.imgur.com/jtkPZ.png[/IMG] [B]10.)[/B] Browse your computer for the donation.sql file that's in the files I just gave you. [B]11.)[/B] Upload it, then press go. Note: It should have created a "donation" table in your database. [B]12.) [/B]Go to the folder I had you download, then select the website files folder. Edit the file "db.php". [B]13.)[/B] Fill in the necessary information. (Database name, password, username). Leave localhost as is. [B]14.) [/B]Edit paypal.php, then search for "edit to your", which you'll find a space to put in your paypal e-mail. Save all of the files. [B]15.)[/B] Upload all of the "Website Files" into your webhost. Make sure they are all in the same directory. [B]16.)[/B] Go to your control panel once more and select "Remote Mysql". [IMG]http://i.imgur.com/ceOGJ.png[/IMG] [B]17.)[/B] Add the ip to that list that [U][B]Your Server is hosted on[/B][/U]. [/Spoiler] [Spoiler=Server Side Tutorial] [B]Note: You'll need to be an adequate coder in order to complete this.[/B] 1.) In the files that I have supplied you with, take the "DonationManager.java" file and edit it. Here is the part where the term "adequate" comes in. -You'll need to change all the imports to your server imports (Excluding the default java ones). -You'll also need to change every method in the file so it fits the methods in your server. (Example: player.getUsername()) - It might be different in your server so you'll need to change anything else you see. 2.) Insert the file you've changed around into your server files and compile it. (If you get errors, Fix them of course -.-) 3.) You'll need a command so the users can receive their donation. - Go to where you handle your commands and add the import for the donation manager. - Once done, then add the following command: [code] if (cmd[0].equals("::recieve")) { DonationManager.startProcess(player); } [/code] [B]Your done! Refer to the "How to change donation items" spoiler on how to set up your items.[/B] [/Spoiler] [Spoiler=How to change your donation items] [B] 1.)[/B] Start off by selecting index.php in your website files. [B]2.)[/B] Scroll down until you see value options similar to these: [code] <option value="1">10 Donator Points - $5</option> <option value="2">20 Donator Points - $10</option> <option value="3">30 Donator Points - $15</option> <option value="4">50 Donator Points - $20</option> [/code] [B] 3.)[/B] These are the options (In order) that show up on your "Select Donation Item" page. 4.) Simply change around whichever ones you want and put the price so they know how much it is. Note: Make sure the numbers are in order and none are listed twice. [B]5.)[/B] Save your file, then open paypal.php [B]6.)[/B] Scroll down until you see some things similar to this: [code] $price = '3.00'; if($_GET['prod'] == 1) $price = '5'; if($_GET['prod'] == 2) $price = '10'; if($_GET['prod'] == 3) $price = '15'; if($_GET['prod'] == 4) $price = '20'; if($_GET['prod'] == 5) $price = '30'; [/code] [B]7.)[/B] To change the price of each of your items, simply look at the value id that is listed in your index.php (The number next to your item name) [B]8.)[/B] So let's look at this example above: if ($_GET['prod'] == 1) which means if the value id is == 1 then the price will be $5. Simply change the values or add more to satisfy your needs. [B]Make it so that it adds the items into your server:[/B] [B]1.)[/B] Open up your DonationManager.java file [B]2.)[/B] Scroll down until you see this or something similar: [code] if(checkDonationItem(player.getUsername()) == 1) { //Productid 1 [/code] [B]3.)[/B] This is saying that if the product id (Or value id, Note: remember you used the value id to set the price, it's the same thing). [B]4.)[/B] Simply edit the coder under the first product id to give the items for that value. Note: DO NOT REMOVE THIS FROM EACH PRODUCT ID STATEMENT: [code] donationGiven(player.getUsername()); [/code] [/Spoiler]
  6. Is there a Paysafecard auto donation system? Thanks for youre response.
  7. Okay so well it's no surprise that nowadays servers are selling items for money, but what really sucks is that because servers allow this it means that many players get an unfair advantage over other players who may not be able to fund these items. So now you're probably thinking how would a server generate money to help keep the server alive and also pay the developers for their hard work. Well a server can generate an income through advertisements but then again you could say your server doesn't generate enough traffic for a sufficient income, well if that is the case you could create a special rank somewhat similar to Runescape's membership feature. Now what's so special about membership feature and why should I ditch it instead of selling items, well the thing about this membership feature is that it won't affect the servers economy and players that much, yes it will have an impact but not as much. Membership feature don't necessarily have to restrict to items, you could have special features, such as training areas, special pking arenas, extra client features which allow you to toggle between graphics and so on. Membership could be sold at reasonable price and people will be willing to contribute for these extra features that don't impact the game in general. I think the runescape private server scene needs to find a new way of generating money without affecting their servers economy and players because I'm pretty sure players don't like logging into a server and finding out people can donate a few dollars for powerful in-game items, they then enter the wilderness and get totally owned.Private servers were meant to be enjoyable at one point but now it seems like it's turned into a business, don't get me wrong but I guess there needs be some changes in the way donations are done. [HR][/HR] Discuss
  8. Lock Please
  9. can somone help me setup auto donation and auto vote ? skype - raivis.taurins1
  10. Hey guys, I have created a donation manager to support 317 - 718 servers, [I didn't know where to post this :P] [CENTER][IMG]http://rspsdata.org/system/img/logo.png[/IMG][/CENTER] [B][SIZE=4]RspsData v3 has been announced [/SIZE][/B] Features: - Accept direct Payments [no more account balance] - Setup wizard v1.0 added to make setup much easier - Donator feature which allows you to see all the donators and their codes/amount - Payment gateways, allows you to enable / disable payment gateways - Brand new checkout page - Same server side integration [if you have it installed you don't need to re-install it] - SSL encryption for api communication - Background Check users [Check if they claim disputes allot] - Ban users from donating - Accept Paymentwall - Customize you webstore page - Test function, allowing you to test if rspsdata works! [video=youtube;3wlB4gwcXhQ]http://www.youtube.com/watch?v=3wlB4gwcXhQ[/video] Preview image [SPOILER=Preview Image][IMG]http://i.imgur.com/65U4xgh.png[/IMG][/SPOILER] Website Link: [URL]http://rspsdata.org/system/[/URL] Template from Themeforest : [url=http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?WT.ac=solid_search_item&WT.seg_1=solid_search_item&WT.z_author=keenthemes]Site Templates - Metronic - Responsive Admin Dashboard Template | ThemeForest[/url] FAQ: [COLOR=#FFFFFF][B]Why use RSPSDATA?[/B][/COLOR] Don't get how to upload files or create a database or even make a connection to mysql? No problem RSPSDATA takes care of all the website / database side problems all you have todo is add the server sided code and there is a fully understandable tutorial on the website. [COLOR=#FFFFFF][B]Why use RSPSDATA?[/B][/COLOR] RspsData is mostly free, but optionally you can purchase premium for a monthly fee. [COLOR=#FFFFFF][B]Will RspsData work with my server?[/B][/COLOR] If you server supports java to http connection then most likely it will work Thanks, Soccerjunki
  11. Programozó társat keresek rsps készítésére 667/718-ra irj üzenetet itt forumon,nemsok kell de kell 1 társ ami bejön donatorból a tied minden eggyes centig/forintig stb. lolking I'm looking for a programmer for the 667/718 revisions. I need a few commands, teleports, and items fixed. If you successfully complete these tasks, I'll give you owner rank and all the donation money. Private message me if you're interested.
  12. [CENTER][IMG]http://rspsdata.org/system/img/logo.png[/IMG][/CENTER] Hey guys, So the past year or so i have been working on rspsdata, It's a donation system that allows you to accept donations with ease. No more MySQL, php etc etc We handle all the back end stuff, all you have to do is implement it with your server and add your products! Features - Accept Paypal - Accept Paygol - Accept PaymentWall - Setup wizard v1.0 to help you install it to your server - Webstore Page - Customization Options - Statistics page - 128bit SSL - Purchase archiver, logs all donators and the amount they donated So signup for an account now for free at : [URL="https://rspsdata.org/system"]https://rspsdata.org/system[/URL] [IMG]http://i.imgur.com/Fe7XWOF.png[/IMG] Thanks, Soccerjunki
  13. Odd enough I've been using the same auto donation that Hope released ages ago. I've used it for my old 562, and my 667 to 718. Recently someone came to me with an issue saying they didn't receive the donation they paid for. This ended up happening MULTIPLE TIMES, although not every single time. After quite a few tests, I've come to the conclusion that the error is website sided, and whenever the person donates for some reason its not adding the person to the donation database. Which then allows the server to connect and see all the details. Two files you'd need website sided. [CODE]<?php /******************************************************************************* * PHP Paypal IPN Integration Class ******************************************************************************* * Author: Micah Carrick * Email: [email protected] * Website: http://www.micahcarrick.com * * File: paypal.class.php * Version: 1.3.0 * Copyright: (c) 2005 - Micah Carrick * You are free to use, distribute, and modify this software * under the terms of the GNU General Public License. See the * included license.txt file. * ******************************************************************************* * VERION HISTORY: * v1.3.0 [10.10.2005] - Fixed it so that single quotes are handled the * right way rather than simple stripping them. This * was needed because the user could still put in * quotes. * * v1.2.1 [06.05.2005] - Fixed typo from previous fix :) * * v1.2.0 [05.31.2005] - Added the optional ability to remove all quotes * from the paypal posts. The IPN will come back * invalid sometimes when quotes are used in certian * fields. * * v1.1.0 [05.15.2005] - Revised the form output in the submit_paypal_post * method to allow non-javascript capable browsers * to provide a means of manual form submission. * * v1.0.0 [04.16.2005] - Initial Version * ******************************************************************************* * DESCRIPTION: * * NOTE: See www.micahcarrick.com for the most recent version of this class * along with any applicable sample files and other documentaion. * * This file provides a neat and simple method to interface with paypal and * The paypal Instant Payment Notification (IPN) interface. This file is * NOT intended to make the paypal integration "plug 'n' play". It still * requires the developer (that should be you) to understand the paypal * process and know the variables you want/need to pass to paypal to * achieve what you want. * * This class handles the submission of an order to paypal aswell as the * processing an Instant Payment Notification. * * This code is based on that of the php-toolkit from paypal. I've taken * the basic principals and put it in to a class so that it is a little * easier--at least for me--to use. The php-toolkit can be downloaded from * http://sourceforge.net/projects/paypal. * * To submit an order to paypal, have your order form POST to a file with: * * $p = new paypal_class; * $p->add_field('business', '[email protected]'); * $p->add_field('first_name', $_POST['first_name']); * ... (add all your fields in the same manor) * $p->submit_paypal_post(); * * To process an IPN, have your IPN processing file contain: * * $p = new paypal_class; * if ($p->validate_ipn()) { * ... (IPN is verified. Details are in the ipn_data() array) * } * * * In case you are new to paypal, here is some information to help you: * * 1. Download and read the Merchant User Manual and Integration Guide from * http://www.paypal.com/en_US/pdf/integration_guide.pdf. This gives * you all the information you need including the fields you can pass to * paypal (using add_field() with this class) aswell as all the fields * that are returned in an IPN post (stored in the ipn_data() array in * this class). It also diagrams the entire transaction process. * * 2. Create a "sandbox" account for a buyer and a seller. This is just * a test account(s) that allow you to test your site from both the * seller and buyer perspective. The instructions for this is available * at https://developer.paypal.com/ as well as a great forum where you * can ask all your paypal integration questions. Make sure you follow * all the directions in setting up a sandbox test environment, including * the addition of fake bank accounts and credit cards. * ******************************************************************************* */ class paypal_class { var $last_error; // holds the last error encountered var $ipn_log; // bool: log IPN results to text file? var $ipn_log_file; // filename of the IPN log var $ipn_response; // holds the IPN response from paypal var $ipn_data = array(); // array contains the POST values for IPN var $fields = array(); // array holds the fields to submit to paypal function paypal_class() { // initialization constructor. Called when class is created. $this->paypal_url = 'https://www.paypal.com/cgi-bin/webscr'; $this->last_error = ''; $this->ipn_log_file = '.ipn_results.log'; $this->ipn_log = true; $this->ipn_response = ''; // populate $fields array with a few default values. See the paypal // documentation for a list of fields and their data types. These defaul // values can be overwritten by the calling script. $this->add_field('rm','2'); // Return method = POST $this->add_field('cmd','_xclick'); } function add_field($field, $value) { // adds a key=>value pair to the fields array, which is what will be // sent to paypal as POST variables. If the value is already in the // array, it will be overwritten. $this->fields["$field"] = $value; } function submit_paypal_post() { // this function actually generates an entire HTML page consisting of // a form with hidden elements which is submitted to paypal via the // BODY element's onLoad attribute. We do this so that you can validate // any POST vars from you custom form before submitting to paypal. So // basically, you'll have your own form which is submitted to your script // to validate the data, which in turn calls this function to create // another hidden form and submit to paypal. // The user will briefly see a message on the screen that reads: // "Please wait, your order is being processed..." and then immediately // is redirected to paypal. echo "<html>\n"; echo "<head><title>Processing Payment...</title></head>\n"; echo "<body onLoad=\"document.forms['paypal_form'].submit();\">\n"; echo "<center><h2>Please wait, your order is being processed and you"; echo " will be redirected to the paypal website.</h2></center>\n"; echo "<form method=\"post\" name=\"paypal_form\" "; echo "action=\"".$this->paypal_url."\">\n"; foreach ($this->fields as $name => $value) { echo "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n"; } echo "<center><br/><br/>If you are not automatically redirected to "; echo "paypal within 5 seconds...<br/><br/>\n"; echo "<input type=\"submit\" value=\"Click Here\"></center>\n"; echo ""; echo ""; echo "<center><h2>IP address "; echo "(";print ($_SERVER['REMOTE_ADDR']); echo ")</h2></center>"; echo "<center> Your IP address has been recorded with your most recent order for fraud prevention,"; echo " and to prove the transaction was completed on this computer.<br/><br/>\n"; echo "<center><h2>Have an issue? Contact us!</h2></center>"; echo " If you are not happy with the product you have purchased, post your issue on the forums.<br/><br/>\n"; echo "<center><h2>Credit Card Fraud.</h2></center>"; echo " Credit card fraud is a serious issue. If a member dishonestly disputes a charge, it may result in an investigation where details such as your ip will be<br/>\n"; echo " forwarded to your bank and credit to your bank can credit reporting agencies. Any person(s) who make a false claim to try and steal services will be held<br/>\n"; echo " responsible to the full extent of the law, also your account will be terminated and removed from the database of RuneRebellion.<br/>\n"; echo " For More information about this please read our terms of service <a href='http://www.runerebellion.com/donate/terms.html'><b>here</a>.<br>\n"; echo "<center><h2> Thanks for choosing RuneRebellion!</h2></center>"; echo "</form>\n"; echo "</body></html>\n"; } function validate_ipn() { // parse the paypal URL $url_parsed=parse_url($this->paypal_url); // generate the post string from the _POST vars aswell as load the // _POST vars into an arry so we can play with them from the calling // script. $post_string = ''; foreach ($_POST as $field=>$value) { $this->ipn_data["$field"] = $value; $post_string .= $field.'='.urlencode(stripslashes($value)).'&'; } $post_string.="cmd=_notify-validate"; // append ipn command // open the connection to paypal $fp = fsockopen($url_parsed[host],"80",$err_num,$err_str,30); if(!$fp) { // could not open the connection. If loggin is on, the error message // will be in the log. $this->last_error = "fsockopen error no. $errnum: $errstr"; $this->log_ipn_results(false); return false; } else { // Post the data back to paypal fputs($fp, "POST $url_parsed[path] HTTP/1.1\r\n"); fputs($fp, "Host: $url_parsed[host]\r\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: ".strlen($post_string)."\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, $post_string . "\r\n\r\n"); // loop through the response from the server and append to variable while(!feof($fp)) { $this->ipn_response .= fgets($fp, 1024); } fclose($fp); // close connection } if (eregi("VERIFIED",$this->ipn_response)) { // Valid IPN transaction. $this->log_ipn_results(true); return true; } else { // Invalid IPN transaction. Check the log for details. $this->last_error = 'IPN Validation Failed.'; $this->log_ipn_results(false); return false; } } function log_ipn_results($success) { if (!$this->ipn_log) return; // is logging turned off? // Timestamp $text = '['.date('m/d/Y g:i A').'] - '; // Success or failure being logged? if ($success) $text .= "SUCCESS!\n"; else $text .= 'FAIL: '.$this->last_error."\n"; // Log the POST variables $text .= "IPN POST Vars from Paypal:\n"; foreach ($this->ipn_data as $key=>$value) { $text .= "$key=$value, "; } // Log the response from the paypal server $text .= "\nIPN Response from Paypal Server:\n ".$this->ipn_response; // Write to log $fp=fopen($this->ipn_log_file,'a'); fwrite($fp, $text . "\n\n"); fclose($fp); // close file } function dump_fields() { // Used for debugging, this function will output all the field/value pairs // that are currently defined in the instance of the class using the // add_field() function. echo "<h3>paypal_class->dump_fields() Output:</h3>"; echo "<table width=\"95%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\"> <tr> <td bgcolor=\"black\"><b><font color=\"white\">Field Name</font></b></td> <td bgcolor=\"black\"><b><font color=\"white\">Value</font></b></td> </tr>"; ksort($this->fields); foreach ($this->fields as $key => $value) { echo "<tr><td>$key</td><td>".urldecode($value)." </td></tr>"; } echo "</table><br>"; } }[/CODE] The above code is labeled paypal.class.php [CODE]<?php /* PHP Paypal IPN Integration Class Demonstration File * 4.16.2005 - Micah Carrick, [email protected] * * This file demonstrates the usage of paypal.class.php, a class designed * to aid in the interfacing between your website, paypal, and the instant * payment notification (IPN) interface. This single file serves as 4 * virtual pages depending on the "action" varialble passed in the URL. It's * the processing page which processes form data being submitted to paypal, it * is the page paypal returns a user to upon success, it's the page paypal * returns a user to upon canceling an order, and finally, it's the page that * handles the IPN request from Paypal. * * I tried to comment this file, aswell as the acutall class file, as well as * I possibly could. Please email me with questions, comments, and suggestions. * See the header of paypal.class.php for additional resources and information. */ session_start(); $base = "/var/www/html/"; include("db.php"); require_once('paypal.class.php'); // include the class file $p = new paypal_class; // initiate an instance of the class //$p->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; // testing paypal url $p->paypal_url = 'https://www.paypal.com/cgi-bin/webscr'; // paypal url // setup a variable for this script (ie: 'http://www.micahcarrick.com/paypal.php') $this_script = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; // if there is not action variable, set the default action of 'process' if (empty($_GET['action'])) $_GET['action'] = 'process'; if (empty($_GET['amm'])) $_GET['amm'] = '1'; switch ($_GET['action']) { case 'process': // Process and order... if (empty($_GET['prod'])){ header("Location: http://www.runerebellion.com/donate.html"); exit; } if (empty($_GET['username'])){ if($_GET['action'] = 'process'){ header("Location: http://www.runerebellion.com/donate.html"); exit; } } //if(!isset($_SESSION["username"])) { // header("Location: login.php"); // exit; //} // include("include.php"); //die("donation is temporarily disabled!"); // There should be no output at this point. To process the POST data, // the submit_paypal_post() function will output all the HTML tags which // contains a FORM which is submited instantaneously using the BODY onload // attribute. In other words, don't echo or printf anything when you're // going to be calling the submit_paypal_post() function. // This is where you would have your form validation and all that jazz. // You would take your POST vars and load them into the class like below, // only using the POST values instead of constant string expressions. // For example, after ensureing all the POST variables from your custom // order form are valid, you might have: // // $p->add_field('first_name', $_POST['first_name']); // $p->add_field('last_name', $_POST['last_name']); if($_GET['prod'] == 1) { $p->add_field('item_name', '10 Donator Points'); $price = '10'; } else if($_GET['prod'] == 2) { $price = '25'; $p->add_field('item_name', '25 Donator Points'); } // you can add as many as you want, these two corralate with the two options insides index.php $p->add_field('custom', $_GET['username']); $p->add_field('business', 'yeh ima hide dis'); //edit to your email $p->add_field('return', $this_script.'?action=success'); $p->add_field('cancel_return', $this_script.'?action=cancel'); $p->add_field('notify_url', $this_script.'?action=ipn'); //$p->add_field('item_name', 'Product Number: '.$_GET['prod']); $p->add_field('item_number', $_GET['prod']); $p->add_field('currency_code', 'USD'); $p->add_field('amount', $price); //$p->add_field('quantity', $_GET['amm']); $p->add_field('lc', 'GB'); $p->submit_paypal_post(); // submit the fields to paypal //$p->dump_fields(); // for debugging, output a table of all the fields break; case 'success': // Order was successful... // This is where you would probably want to thank the user for their order // or what have you. The order information at this point is in POST // variables. However, you don't want to "process" the order until you // get validation from the IPN. That's where you would have the code to // email an admin, update the database with payment status, activate a // membership, etc. //include("include.php"); echo "<h2>Donation Successful</h2><p>Your donation has been completed. To receive your items, log in to the Server. If you are already logged in, your must logout and then log back in.</p>"; // You could also simply re-direct them to another page, or your own // order status page which presents the user with the status of their // order based on a database (which can be modified with the IPN code // below). break; case 'cancel': // Order was canceled... // The order was canceled before being completed. //include("include.php"); echo "<h2>Donation Cancelled</h2><p>Your donation was cancelled.</p>"; break; case 'ipn': // Paypal is calling page for IPN validation... // It's important to remember that paypal calling this script. There // is no output here. This is where you validate the IPN data and if it's // valid, update your database to signify that the user has payed. If // you try and use an echo or printf function here it's not going to do you // a bit of good. This is on the "backend". That is why, by default, the // class logs all IPN data to a text file. if ($p->validate_ipn()) { // Payment has been recieved and IPN is verified. This is where you // update your database to activate or process the order, or setup // the database with the user's order details, email an administrator, // etc. You can access a slew of information via the ipn_data() array. // ANTI LEECH! // in the ipn_data() array. //$fh = fopen(".ipn", "a"); //fwrite($fh, print_r($p->ipn_data, true)); //fclose($fh); //ANTI LEECH! // For this example, we'll just email ourselves ALL the data. if($p->ipn_data["payment_status"] != "Completed") die(); if($p->ipn_data["mc_gross"] > 0) { $user = $p->ipn_data["custom"]; $date = $p->ipn_data["payment_date"]; $prodid = $p->ipn_data["item_number"]; $amount = $p->ipn_data["mc_gross"]; $amountTickets = 1; //$user = str_replace("-", "_", $user); //$user = str_replace(" ", "_", $user); $user = str_replace("-", " ", $user); $user = str_replace("_", " ", $user); $user = mysql_real_escape_string($user); mysql_query("INSERT INTO donation (username, time, productid, price, tickets) VALUES ('" . $user . "', '" . $date . "', '" . $prodid . "', " . $amount . ", " . $amountTickets . ");"); $fh = fopen("donationlog.txt", "a"); fwrite($fh, $user.' '.$date.' '.$prodid.' '.$amount.' '.$amountTickets); fclose($fh); } else if($p->ipn_data["mc_gross"] < 0) { /* $user = $p->ipn_data["custom"]; $user = str_replace("-", "_", $user); $user = str_replace(" ", "_", $user); $user = mysql_real_escape_string($user); $res = mysql_query("SELECT * FROM bans WHERE username = '" . $user . "');"); if(mysql_num_rows($res) == 0) { mysql_query("INSERT INTO bans (username, bannedBy, unbanDate, reason) VALUES ('" . mysql_real_escape_string($user) . "', 'Emps-Scape Server', 0, 'automated ban: ipn refund issued');"); }*/ } } break; } ?>[/CODE] This above class is Paypal.php I'm not very skilled with php, or html, so I can't read through that and see any errors like some. Also here is a error log, I've noticed two different warnings in total, but it may be of some use. [CODE][27-Jan-2014 01:37:20 America/Chicago] PHP Warning: fsockopen(): unable to connect to www.paypal.com:80 (Connection timed out) in /home/runerebe/public_html/donate/paypal.class.php on line 202 [27-Jan-2014 01:38:24 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0 [/CODE] I included [I]paypal.class.php[/I] file, feel free to view line 202. As for the senond warning, I'm not aware on how important it is to have the missing file, or its effects on the script. Thanks in advance for any assistance given.
  14. Yes so I'm bored right now and I want you to post your online servers below and I will play each and every one of them until I find the best one. The best one will get a donation of $50.00 in PayPal currency. Good luck!
  15. [FONT=Comic Sans MS][CENTER][SIZE=6][COLOR="#00FFFF"]Paypal Automatic donation system![/COLOR][/SIZE] [video=youtube;anrWt1NMcCc]http://www.youtube.com/watch?v=anrWt1NMcCc[/video] [B][U]Packages:[/U][/B] - Cheap package; files only, with/without bootstrap template (15$) - Basic package; files and installation and testing, with/without bootstrap template (20$) - Advanced package; files, installation, testing, integrating into any template, adding max. 30items (28$) - Extreme package: files, installation, testing, integrated into [url=http://inspiration-rsps.com/cmps_index.php?pageid=do]this[/url], adding max. 55items (38$) [QUOTE]Tos: 1) You will go first. 2) You may never release my codes. 3) You may not re-sell this. 4) You will rep and thank. 5) You will not refund your payment.[/QUOTE] [I]If i wont succeed on make it working, then i'll refund 100%.[/I] Add me on skype: julian.kuitert I'd have vouchs on rune-server community forum, if you want to see some, click [url=http://tinyurl.com/pejb4hq]here[/url]. Already sold to: Demo: [url=http://annihilatedreality.net/donate/]Annihilated Reality - Donate to us![/url] Demo: [url=http://zepsity.org/donate/]Zepsity - Donate to us![/url] Extreme Package sold to: Demo: [url=http://inspiration-rsps.com/cmps_index.php?pageid=do]Inspiration - Donate[/url] [/CENTER][/FONT]
  16. hey i just got my first donation on my server and i was wondering how every other server has instant donation in game if someone could help me that would be amazing <3
  17. I get this error when i added the auto donation. [ATTACH=CONFIG]8894[/ATTACH]
  18. So I have made a donation system using this tutorial : [url]http://www.runelocus.com/forums/showthread.php?52972-Any-Revision-Auto-Donation-Tutorial[/url] And I changed all the methods and stuff to the methods my server uses and I still get an error. I got rid of a few errors myself, but this is where I am stumped: [CODE]src\server\util\DonationManager.java:189: error: 'catch' without 'try' } catch (Exception e) { ^ src\server\util\DonationManager.java:189: error: ')' expected } catch (Exception e) { ^ src\server\util\DonationManager.java:189: error: not a statement } catch (Exception e) { ^ src\server\util\DonationManager.java:189: error: ';' expected } catch (Exception e) { ^ src\server\util\DonationManager.java:195: error: illegal start of expression }.start(); ^ src\server\util\DonationManager.java:198: error: illegal start of expression public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: illegal start of expression public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: ';' expected public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: ')' expected public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: illegal start of expression public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: ';' expected public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: not a statement public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:198: error: ';' expected public static ResultSet query(String s) throws SQLException { ^ src\server\util\DonationManager.java:214: error: reached end of file while parsi ng } ^ src\server\util\DonationManager.java:72: error: 'try' without 'catch', 'finally' or resource declarations try { ^ 15 errors Press any key to continue . . .[/CODE]
  19. Hey guys I have searched and have not found the thread that I am looking for directly for a PI server. So if you could please link me to a thread that has a full guide on how to add auto donation points system that would be great. I just want to add the system in and be able to buy items with points, 1$ = 10 points. I can add the items myself I just need a thread to get started.
  20. Since this is vBulletin forums, I think you should add new donation methods. There are plugin payment methods that work perfectly with vBulletin forums. For people who don't have a PayPal account but have a Liberty Reserve account, they can pay with that. There is also a plugin payment method that works perfectly with Google Checkout as well. As I said above, there are users who don't have a PayPal, so this could come in handy. I personally have installed both these plugins and they work perfectly on my forums. It's worth it for those who have money in their LR account and want to spend it. Or people who have a credit card/debit card could directly donate via google checkout. All they do is type in their card information as if they were shopping online and it would work perfectly. It would appear on the payments.php page. It would look like this: [IMG]http://i.imgur.com/jDVlB7R.png[/IMG] Just a suggestion.
  21. pindapoep

    Auto Donation

    Can somebody help me out with the auto donation xampp not working at me thanks
  22. [CENTER]Hello Im getting these errors could anyone help me?[/CENTER] [LEFT]src\server\DonationManager.java:45: error: cannot find symbol if(checkdonationplayer.getUsername()) { ^ symbol: variable checkdonationplayer location: class DonationManager src\server\DonationManager.java:46: error: cannot find symbol if(player.getInventory().getFreeSlots() < 5) { ^ symbol: method getInventory() location: variable player of type Player src\server\DonationManager.java:47: error: cannot find symbol ActionSender.sendMessage(player, "<col=00FFCC>Cr eate some more space in your inventory Before doing this!"); ^ symbol: variable ActionSender location: class DonationManager src\server\DonationManager.java:50: error: cannot find symbol if(checkdonationitem(player.getUsername()) == 14484) { / /Productid 1 ^ symbol: method getUsername() location: variable player of type Player src\server\DonationManager.java:51: error: cannot find symbol player.getDefinition().title = 5; ^ symbol: method getDefinition() location: variable player of type Player src\server\DonationManager.java:52: error: cannot find symbol ActionSender.sendMessage(player, "<shad=cc0ff><i mg=1>Thank you for donating"); ^ symbol: variable ActionSender location: class DonationManager src\server\DonationManager.java:53: error: cannot find symbol if (player.getDefinition().donator == 0) { ^ symbol: method getDefinition() location: variable player of type Player src\server\DonationManager.java:54: error: cannot find symbol player.getDefinition().donator = 1; ^ symbol: method getDefinition() location: variable player of type Player src\server\DonationManager.java:55: error: cannot find symbol for(Player p : World.getWorld().getPlaye rs()) { ^ symbol: variable World location: class DonationManager src\server\DonationManager.java:59: error: cannot find symbol ActionSender.sendMessage(p, "<shad=cc0ff ><img=1>Welcome New Donator "+player.getUsername()+"!"); ^ symbol: method getUsername() location: variable player of type Player src\server\DonationManager.java:59: error: cannot find symbol ActionSender.sendMessage(p, "<shad=cc0ff ><img=1>Welcome New Donator "+player.getUsername()+"!"); ^ symbol: variable ActionSender location: class DonationManager src\server\DonationManager.java:62: error: cannot find symbol donationGiven(player.getUsername()); ^ symbol: method getUsername() location: variable player of type Player src\server\DonationManager.java:65: error: cannot find symbol ActionSender.sendMessage(player, "<col=00FFCC>You Either have not donated or have claimed your reward already."); ^ symbol: variable ActionSender location: class DonationManager Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 13 errors Press any key to continue . . .[/LEFT]
  23. Hey, I got some proof, I was just wondering if his server can be kicked.
  24. I've tried multiple times to add one and have failed. IDFK what im doing wrong so i'm saying fuck it and buying one. Name your price. MSN: [email][email protected][/email]
  25. Hey guys, I need a coder for my 637 private server. I will be splitting each donation 50/50 between me and the coder! Contact me if your interested: Skype: TheDavenia. Msn: [email][email protected][/email]. (Preferably Skype, would also be awesome if you have a timezone around GMT+1 :D)
×