Jump to content
MakeWebGames

Recommended Posts

Posted

This mod will let The donated users have 1 chance each day to get a Reward, When there Donator Days Run out, They will not be able to Access the (Daily Donators Reward) Page, I created this Mod, And its my first, It works I've tested it, And its Fine, Here we Go

Run this SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Open cron_day.php and Find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add After:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Make a File Called ddreward.php and put this in it:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And then your Done! :D

Screenshots:

ddreward1cu4.png

ddreward2pm2.png

ddreward3tt7.png

I spent Ages Coding that and testing it, Feel free to Improve it to your style :D

EDIT:

Open Mainmenu.php and Find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add After:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And then your done! :D

Posted

Re: [V2] Daily Donator Reward [V2]

 

Couldnt you reverse the code and use it for active members ?

And btw great mod

Yes you can, All you need to do is edit it abit, And thanks for your Nice Comments :)

Posted

Re: [V2] Daily Donator Reward [V2]

 

Shouldnt the require "globals.php"; be include "globals.php";

Works with either,

Include just puts it there if the file exists, if it doesnt then i wont displayer it

where as

require means the file has got to exist for it to show up or else you will get an error

  • 2 months later...
Posted

Re: [V2] Daily Donator Reward [V2]

i only noticed one error. on your main menu you got

Add After:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I think theres meant to be a dot between ddreward and php. sorry if it anit im still a noob. :?

Posted

Re: [V2] Daily Donator Reward [V2]

 

i only noticed one error. on your main menu you got

Add After:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I think theres meant to be a dot between ddreward and php. sorry if it anit im still a noob. :?

Ohh yeh there is meant to be a dot

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That will work.

Posted

Re: [V2] Daily Donator Reward [V2]

Require is better than Include.

if you use require and there is an error on the page the page Stops loading. and no querys will run...

if you use include and there is an error on th epage the page will show the error..BUT it will continue to run the page after the error...so if there is a query after the error the query will still run.

  • 2 months later...
Posted

Re: [mccode v2] Daily Donator Reward

Hey there

I installed this mod and I got a bug report from one of my users

"every time i go to see the daily donator reward it resets my crystals to 10. it happened twice already so is it supposed to be like that?"

Now,I looked at the script and I didn't see anything.

Any solutions?

Thanks

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