Jump to content
MakeWebGames

Recommended Posts

Posted

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
Posted

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
Posted

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

Posted

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:

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

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?

Posted

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

  • 9 months later...
Posted

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

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

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

Posted

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

Posted
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?

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

Posted
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>";

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

Posted

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

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