You're right. This should be inverse. Sorry for mistake
You're right. This should be inverse. Sorry for mistake
with the inverse of code from vbet still not working for me.... anyone can confirm if i'm doing something wrong ?
may be the correct code is
if (isset($_GET['t']) && !isset($_GET['goto']) && false !== strpos($_SERVER['REQUEST_URI'], 'showthread.php')) {
Our code is works perfect on our test forum. Please, send to Michal a PM with access to your FTP.
He will try to fix it.
kamil,
this worked for me
if (isset($_GET['t']) && !isset($_GET['goto']) && false !== strpos($_SERVER['REQUEST_URI'], 'showthread.php')) {
but with $_GET['p'] as suggested nothing changes**********
since the problem is with get variable goto why you need check if variable p is set ?
can you confirm this ?
Both suggestions are good. Codes properly operate on a test forum.. I'll write about it to Michal.
come back, come back,
try to do this (with your code):
1. translate the page (no matter what language)
2. use go to the first new post
Can you see? Page is not translated.
I made many tests and it is working on our side in given code. Please try this:
1. Set changes as we described it ('goto' doesn't exist before execution goes trought vBSEO - that what our logs tells us)
2. Create new test post
3. Check does for this newone it is working.
If it is - then just flush caches. Probably should work flusching in Admin cp -> Maintenance -> Update Counters. Try Rebuild Forum Information maybe also some others. If it will work for new one ten itmeans that it is working and you just have cached old (wrong) redirections.
Please try this and give us feedback - if it still doesn't work, then I need to go and check it on your server.
vbet my tests are under vbulletin 4.0.4pl1
and your code
is not working for me but...Code:if (isset($_GET['t']) && !isset($_GET['p']) && false !== strpos($_SERVER['REQUEST_URI'], 'showthread.php')) {
is working fine... do you have any idea if this code can do something your code ?Code:if (isset($_GET['t']) && !isset($_GET['goto']) && false !== strpos($_SERVER['REQUEST_URI'], 'showthread.php')) {