Jump to content
MakeWebGames

Paypal/donation package creation.


Gungneer

Recommended Posts

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!

  • Like 1
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

@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. ;)

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
  • 7 months later...
  • 9 months later...

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...