Bennyh789 Posted December 8, 2011 Posted December 8, 2011 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 Quote
bineye Posted December 8, 2011 Posted December 8, 2011 (edited) I'm guessing something like this: echo '<tr><td><a href="viewuser.php?u=\'.$log->userid.'">'.$log->username.'</a>['.$log->userid.']</td> Edited December 8, 2011 by bineye Quote
a_bertrand Posted December 8, 2011 Posted December 8, 2011 Actually we fixed that issue quiet some time ago I believe.... Quote
Bennyh789 Posted December 8, 2011 Author Posted December 8, 2011 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 Quote
Dave Posted December 8, 2011 Posted December 8, 2011 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? Quote
Bennyh789 Posted December 8, 2011 Author Posted December 8, 2011 There are loads of them but for example the link is: http://makewebgames.io/showthread.php/22379-Free-Log-Suspicious-Users Back on to topic can anyone help with my first post? Thanks Ben Quote
Nickson Posted December 8, 2011 Posted December 8, 2011 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) Quote
lucky3809 Posted December 8, 2011 Posted December 8, 2011 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. Quote
Djkanna Posted December 8, 2011 Posted December 8, 2011 There's also rather than a html img tag in a couple of them. Quote
Bennyh789 Posted January 10, 2013 Author Posted January 10, 2013 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 Quote
sniko Posted January 10, 2013 Posted January 10, 2013 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.