The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
301 Redirect Deleted Threads to Forum Index
Hi Everyone,
I have a question and hoping someone could help me out. As you know, if someone is visiting a deleted thread on Vbulletin, he will get an "invalid thread" page. What I'm trying to do is... to add a 301 redirect to forum index page after a few seconds inside the "invalid thread" page, but with PHP redirect (not meta refresh). I've tried to create a PHP function that does that, but it doesn't work (blank page). Does anyone have a clue? Thanks in Advance, |
#2
|
|||
|
|||
Did you try something like:
PHP Code:
You can also use a phrase instead of text (see function print_standard_redirect() in includes/functions.php). ETA: sorry, I just reread your post and noticed the "after a few seconds" part, so maybe this doesn't help. (But maybe that's what the "forceredirect" parameter of print_standard_redirect() is for?). |
#3
|
||||
|
||||
Wouldn't that cause even more confusion than the also confusing 'no permissions' page?
|
#4
|
|||
|
|||
Quote:
Instead, maybe you could create an HTML form with only a submit button... which then takes the viewer to whatever page you wanted to redirect them to. The form would ideally display inside the error message box, so that it's obvious to the viewer that they should click it to return to your forumhome. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|