Jump to content
MakeWebGames

Recommended Posts

Posted

Hi all as many of you know a lot of mods were changed on here due to the change of MWG

Can anyone explain what needs to be edited in the change of code that happened.

Below is an example but can it please be explained to me so i can learn:

echo '<tr><td><a href="http://viewuser.php?u='.$log->userid.'" target="_blank">'.$log->username.'</a>['.$log->userid.']</td><td>

I know for a start the target="blank" needs to come out and something to do with the '

but ive taken both of them out and its still showing an error

thanks

Posted (edited)

I'm guessing something like this:

echo '<tr><td><a href="viewuser.php?u=\'.$log->userid.'">'.$log->username.'</a>['.$log->userid.']</td>
Edited by bineye
Posted
Not that I was aware of

Maybe its fixed for people posting new mods but 95% of the mods on here (free ones) still are affected by the change in MWG

Can you link an example of an old mod which still has the error within it?

Posted

As far as I'm aware the issue has been resolved, but only for newly created threads or posts. All posts that have been made with any kind of code, especially html/php still have the issue! They need to be fixed manually...

The following line:

echo '<tr><td><a href="http://viewuser.php?u='.$log->userid.'" target="_blank">'.$log->username.'</a>['.$log->userid.']</td><td>

 

should be edited to something like this:

 

echo '<tr><td><a href="viewuser.php?u='.$log->userid.'">'.$log->username.'</a>['.$log->userid.']</td><td>

 

The forum software used to change links in the code, it added http:// to links that had a relative path. A ' can be replaced by a ' (single quote)

Posted

older mods dated back from 09 were and still effected... ones after that time is ok....

target="blank"

'

http://

Also in some fields such as example $ir['userid'] , is changed to $ir['target_blank" or whatever I forgot what it had replaced some of the fields with.

  • 1 year later...
Posted

i know its a very old thread by myself but does anyone actually have a tutorial of how to fix the old mods that changed when the forum did?

Ive been racking my brain for ages and have searched everywhere on this forum but cant seem to find a tutorial

Posted
i know its a very old thread by myself but does anyone actually have a tutorial of how to fix the old mods that changed when the forum did?

Ive been racking my brain for ages and have searched everywhere on this forum but cant seem to find a tutorial

It seems it gets converted into BBCode (The older modifications, anyway) and HTML special characters. Just go through the source, and change them back.

BBcode is pretty self explanatory to change back. With the HTML special characters, Google them.

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