Jump to content
MakeWebGames

Recommended Posts

Posted

This is based off BlackVengeance's saved events mods for V1. I have converted it to V2 and enhanced the features.

  • Add/Edit 3 PHP Files
  • Add 1 Functions
  • Add 1 SQL Table

 

You're unable to view this code.

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

 

You're unable to view this code.

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

 

You're unable to view this code.

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

 

Add to global_func.php:

You're unable to view this code.

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

 

Add this to phpMyAdmin:

You're unable to view this code.

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

 

Screenshots!

Test Site Thanks To Kyle

Have fun! ;)

Posted

Re: [MC Code v2] Saved Events

Add to global_func.php:

// Error/Exit Function (Don't Take Credit For This Function (You Can Post Anywhere If Mentioned I Made It))

if (!function_exists('Error')) {

function Error($Message) {

global $h;

echo sprintf("<span style='color: #FF0000;'>Error!

%s</span>", stripslashes($Message));

exit($h->endpage());

}

}

I'm sure iv seen this in MTG's; coding along time ago

Posted

Re: [MC Code v2] Saved Events

Well I got the idea off Anthony... But I never saw his function..

So I made my own..

It saves me alot of typing aswell

Posted

Re: [MC Code v2] Saved Events

Any idea on this error?

 

Warning: Cannot modify header information - headers already sent by (output started at /home/jds137/ml/public/mainmenu.php:44) in /home/jds137/ml/public/oevents.php on line 16

 

You're unable to view this code.

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

Posted

Re: [MC Code v2] Saved Events

Add

You're unable to view this code.

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

just under

You're unable to view this code.

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

in globals.php :wink:

Posted

Re: [MC Code v2] Saved Events

I see loads of people making functions and putting them into global_func.php.. Why not even make a new php file do a class and then make functions inside them?...

You're unable to view this code.

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

 

Include it to globals.php

You're unable to view this code.

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

Global it.

You're unable to view this code.

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

How to use it.

You're unable to view this code.

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

 

Yes, it's more code, but why store it into 1 file all the time, the file will be full of stuff already.

Posted

Re: [MC Code v2] Saved Events

I'm guessing that's OOP? If I am correct I would use it more, but it confuses me at times.. I like to increase my skills but just using online resources can be quite hard.

  • 4 weeks later...
Posted

Re: [MC Code v2] Saved Events

Firstly Karlos, excellent mod. Installed and working flawlessly. However I do have one question. What does the Display & and Undisplay in saved events do?

Any and all assistance is greatly appreciated.

Thank you,

Voice4Vision

Posted

Re: [MC Code v2] Saved Events

Soory Voice4Vision, didn'y notice you other post..

 

You're unable to view this code.

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

 

By the way, no need to use mysql_real_escape_string() and htmlspecialchars() for both... Just a No No! :wink:

  • 4 weeks later...

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