Gungneer Posted May 9, 2010 Share Posted May 9, 2010 I recently "accuired" a set of MCCv2 codes, and I've been pissing about, anyways, here's a paypal/donation package editor thingy for the Admin panel... staff_paypal.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. donator.php (Just replace your old one with this...) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. smenu.php (Just add this snippet where ever you want. ^_^) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. packages.sql You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Is this perfect? No... Do I care if this works? Not really... Why am I sharing it then? For teh lulz... Teh lulz is the only reason anyone does anything these days. ^_^ ENJOY! 1 Quote Link to comment Share on other sites More sharing options...
Gungneer Posted May 9, 2010 Author Share Posted May 9, 2010 inp_donator.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't give a **** if you don't like the way I've coded it, 'tis a free mod, you get what you pay for and I actually have NO idea what the hell I'm doiing posting it here, but yea... XD 1 Quote Link to comment Share on other sites More sharing options...
Uridium Posted May 10, 2010 Share Posted May 10, 2010 You seem to be swearing at yourself. not exactly sure why Quote Link to comment Share on other sites More sharing options...
Gungneer Posted May 10, 2010 Author Share Posted May 10, 2010 You seem to be swearing at yourself. not exactly sure why Aye, I do that alot. ;D 'Tis fun. Quote Link to comment Share on other sites More sharing options...
Renkia Posted May 10, 2010 Share Posted May 10, 2010 @Gung: Here at MWG/MCC Forum, we tend not to swear as we feel like were on the streets*I Think* & there might be some personal issues agaist swearing. It maybe fun, but please don't post it on the forum. :) BTW Nice modification. ;) Quote Link to comment Share on other sites More sharing options...
Djkanna Posted May 10, 2010 Share Posted May 10, 2010 Swearing is isn't fun but it's something we all tend to do from time to time :P Posts edited (ones with profanity in them *reason given*) Nice modification Gungneer :thumbsup: Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted August 13, 2010 Share Posted August 13, 2010 Will this actually put into donation logs when donated or not Quote Link to comment Share on other sites More sharing options...
Scott-- Posted August 13, 2010 Share Posted August 13, 2010 Does this credit the user when they buy a package Quote Link to comment Share on other sites More sharing options...
Swift-Fusion || Fusion Posted August 13, 2010 Share Posted August 13, 2010 To Hitman 17: No, unless you edit the code To Scott--: Yes, it should. Quote Link to comment Share on other sites More sharing options...
Scott-- Posted August 14, 2010 Share Posted August 14, 2010 Thanks Quote Link to comment Share on other sites More sharing options...
PrimeSuspect Posted August 26, 2010 Share Posted August 26, 2010 Is there a problem with donate.php codes in 18. line ? i just replaced this codes with old one. it warns as Parse error: syntax error, unexpected '<' in /home/xxxx/public_html/donator.php on line 18 Quote Link to comment Share on other sites More sharing options...
$-Chinion-$ Posted April 2, 2011 Share Posted April 2, 2011 I'm quite late to post to this, why do you post error when it tells you what you have to do to fix it? Looking at "Parse error: syntax error, unexpected '<'" I think there might be a un-needed < somewhere, don't you think? Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted April 3, 2011 Share Posted April 3, 2011 if($r[ddays] > 0) echo "[*]$r[ddays] days Donator Status: Red name + cross next to your name."; $r[ddays] after echo should be {$r['ddays']} all the database info is wrong missing brackets and ' around them... Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 where do i add if($ir['user_level']==2) { print "<hr /><b>Donaion Packages</b> > <a href="http://staff_paypal.php?action=addpackage" target="_blank">Add Package</a> > <a href="http://staff_paypal.php?action=editpackage" target="_blank">Edit Package</a> > <a href="http://staff_paypal.php?action=delpackage" target="_blank">Delete Package</a> "; } i tried adding it as a php file and it replaces my staff panel so i am confused cos i try edit my staff.php file and it just stops the page from working ive also tried connecting to it using myurl.co.uk/donator.php and i click on sumthing and it sends me to an unknown url, ive tried this with all files please help me :) Quote Link to comment Share on other sites More sharing options...
Newbie Posted January 8, 2012 Share Posted January 8, 2012 where do i add if($ir['user_level']==2) { print "<hr /><b>Donaion Packages</b> > <a href="http://staff_paypal.php?action=addpackage" target="_blank">Add Package</a> > <a href="http://staff_paypal.php?action=editpackage" target="_blank">Edit Package</a> > <a href="http://staff_paypal.php?action=delpackage" target="_blank">Delete Package</a> "; } i tried adding it as a php file and it replaces my staff panel so i am confused cos i try edit my staff.php file and it just stops the page from working ive also tried connecting to it using myurl.co.uk/donator.php and i click on sumthing and it sends me to an unknown url, ive tried this with all files please help me :) add it into smenu.php not used mmcodes for a while but should deffo go in smenu.php if i remeber right because fourm done somthing there is error in the code should look like this please correct me if iam wrong You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
javance Posted January 8, 2012 Share Posted January 8, 2012 Parse error: syntax error, unexpected T_STRING in /home/blackeag/public_html/smenu.php on line 18 Quote Link to comment Share on other sites More sharing options...
javance Posted January 8, 2012 Share Posted January 8, 2012 nvm i added as php Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 ok that wasnt helpfull for me i obv know it goes in smenu.php as it says on the 1st page but when i add it it replaces my current staff menu with just 3 links Quote Link to comment Share on other sites More sharing options...
Hedge Posted January 8, 2012 Share Posted January 8, 2012 ok that wasnt helpfull for me i obv know it goes in smenu.php as it says on the 1st page but when i add it it replaces my current staff menu with just 3 links im not sure where you put the links, but on mine i placed it directly above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. seems to work fine for me... Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 when i add the file my staff panel looks like this if($ir['user_level']==2) { print " Donation Packages > Add Package > Edit Package > Delete Package "; } i also used your change and its still like this when i click add donator pack it comes up with: Add Package Name: Money: $ Crystals: IQ: Donator Days: Cost: $ [add package] when i fill in the boxes and then hit add package it brings me to an unknown page, like it wont work even if it added the links to my staff panel correctly Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 im not sure where you put the links, but on mine i placed it directly above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. seems to work fine for me... directly above what? Quote Link to comment Share on other sites More sharing options...
Hedge Posted January 8, 2012 Share Posted January 8, 2012 directly above what? in smenu, find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. directly above that, put: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 im not sure where you put the links, but on mine i placed it directly above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. seems to work fine for me... where the hell is this bit print "<hr />"; print "<b>Staff Online:</b>"; Quote Link to comment Share on other sites More sharing options...
Hedge Posted January 8, 2012 Share Posted January 8, 2012 where the hell is this bit I've just read other post you've made, by the sounds of it your not using V2. So your going to have to convert them to what your using. Quote Link to comment Share on other sites More sharing options...
ashstyx Posted January 8, 2012 Share Posted January 8, 2012 ok lets get this strait on the main page it says to do this smenu.php (Just add this snippet where ever you want. ^_^) if($ir['user_level']==2) { print "<hr /><b>Donaion Packages</b> > <a href="http://staff_paypal.php?action=addpackage" target="_blank">Add Package</a> > <a href="http://staff_paypal.php?action=editpackage" target="_blank">Edit Package</a> > <a href="http://staff_paypal.php?action=delpackage" target="_blank">Delete Package</a> "; this is all a new file for me i dont have an original file called smenu so when i add it to the game it replaces my original staff menu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.