Jump to content
MakeWebGames

[Mod] GRPG profile signatures [My First]


SlanderDesign

Recommended Posts

Profile signature mod for Generic RPG! With help from MTG. :)

First open Profiles.php and find :

You're unable to view this code.

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

 

add under:

You're unable to view this code.

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

 

Then find:

You're unable to view this code.

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

 

Add Above!:

You're unable to view this code.

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

Save and close profiles.php.

Next create a file called bbcode_engine.php Add this to it:

You're unable to view this code.

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

Save and close.

Now open classes.php and find:

You're unable to view this code.

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

 

Add below this:

You're unable to view this code.

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

Save and close.

Open preferences.php and replace with:

You're unable to view this code.

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

Save and close.

Now run this SQL

You're unable to view this code.

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

 

All done!

BBcode Engine supplied by Magictallguy :rolleyes:

Hope this helps! :D

Link to comment
Share on other sites

Why are you using a class for that? Maybe if there was ALOT more stuff/functions ect maybe but...

There is no need for that one function to be inside a class, that is just useless and pointless.

What is it with criticizing others work?

If you didn't know I've only been coding about 3 weeks...Sorry if I make 1 mistake and for you information if it wasn't in a class you cant see other people's sig.

So before been a smart Alik please check what file it is been coded for and where it is suppose to add to added.

Link to comment
Share on other sites

If you're just learning, then you should learn to take criticism. You can either learn from criticism, or be offended. LazyT's criticism was helpful, not intended to offend you at all.

Since you've been coding for 3 weeks, how do you know what you are doing is correct?

LazyT is correct, there is no need to put it in a class. You can easily put that code in a function.

There is also a sql injection vulnerability, assuming there is no security other than what has been posted:

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

It may work and do exactly what it is supposed to do, but if you're given a chance to improve it, would you take it?

 

I have tried putting the class in but it only works that way.

You need to forget this. Any code you write in a class can be written as functions, and same vice versa.

Since you haven't been able to get it to work without a class, you should try to learn how to use functions instead of classes then. If not for rewriting this mod, then simply for improving your understanding of PHP.

Your code is not wrong. There is nothing wrong with using classes for everything, if that's what you want. We're just pointing out that it would probably be less code and easier to use if you were to put it into a function instead of a class, since in this situation using a class provides no benefits.

Link to comment
Share on other sites

GRPG i did find very insecure (more than mc) but working with things other than MC is a good start, Listen to Zeggy though, i never listened when i first started out and i wasted about 5 month believing i was the dogs bollocks. When i finally listened i noticed i was wrong and learnt alot from others.

We ain't going to lie to you we'll just try to guide you the best we know how. Most people don't even get a reason for criticism so think yourself lucky, normally best to ignore CrazyT though lol

Link to comment
Share on other sites

GRPG i did find very insecure (more than mc) but working with things other than MC is a good start, Listen to Zeggy though, i never listened when i first started out and i wasted about 5 month believing i was the dogs bollocks. When i finally listened i noticed i was wrong and learnt alot from others.

We ain't going to lie to you we'll just try to guide you the best we know how. Most people don't even get a reason for criticism so think yourself lucky, normally best to ignore CrazyT though lol

Agreed with that buddy.

 

CrazyT will try everything he can to get you to drop you're users lol

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