Code: Select all
$redirect = meta_refresh(3, $redirect);
Code: Select all
$redirect = meta_refresh($redirect);
Code: Select all
$redirect = meta_refresh(3, $redirect);
Code: Select all
$redirect = meta_refresh($redirect);
Right, I know you said before, but the line you quoted:cisco007 » 22 Apr 2010, 19:17 wrote:just like the my first post states, it goes before!
And i did not make this snippet i posted the author of it!
most of the redirect snippets are added to this area of the file!
Code: Select all
meta_refresh(3, $redirect);
trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
}
Code: Select all
$redirect = meta_refresh(3, $redirect);
trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
}
which means, it goes on a line above the line to find, this snippet was from a previous versions of phpbb, so the code to find might not be the same thing as in the newer versions of phpbb, so you have, like any mod you install, find a line of code that matches closely to the one it tells you to find and use that code!cisco007 » 22 Apr 2010, 19:17 wrote:just like the my first post states, it goes before!
thats not a good idea i get a debug error and also,denisesballs » 22 Apr 2010, 19:06 wrote:Hey, wouldn't it be easier to just change:
toCode: Select all
$redirect = meta_refresh(3, $redirect);
Worked on my board. I didn't quite understand your change since the find you have is only part of the line. So does the if go after the "$redirect =" part or before that whole line?Code: Select all
$redirect = meta_refresh($redirect);
Code: Select all
$redirect = meta_refresh(0, $redirect);
trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
}
Interesting, what did you get a debug error with? You're right though, probably a better idea to just change it to 0. Still easier than adding an if statement though, no?Steve© » 22 Apr 2010, 20:11 wrote: thats not a good idea i get a debug error and also,
if you were to do that use this:Code: Select all
$redirect = meta_refresh(0, $redirect); trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>')); }
Code: Select all
$redirect = meta_refresh($redirect);
I dont know. this works and the method posted by ciscoo works.Still easier than adding an if statement though, no?
I was just curious what you were using to debug.Steve© » 22 Apr 2010, 21:18 wrote:debug error was using your method.Code: Select all
$redirect = meta_refresh($redirect);
this is wrong due to the php instructions of meta_refresh has no time.
so best giving it some indication when to refresh rather than none.
Changing 1 character as opposed to adding a whole if statement seems easier to meI dont know. this works and the method posted by ciscoo works.Still easier than adding an if statement though, no?