The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirect member.php
I have shorter url for profile ex. http://www.mysite.com/Username
Is there a way to redirect the default member.php?u=1 to http://www.mysite.com/Username? |
#2
|
||||
|
||||
Yes - by using a plugin to smartly do redirects based on URL.
|
#3
|
|||
|
|||
Not very good with plugin, but should I put the hook as global_start? Also how would the php code look, pseudocode is fine, just want to get an idea on how to do this.
|
#4
|
||||
|
||||
Plugin should be at member_execute_start, because anything before does not have the username fetched.
|
#5
|
|||
|
|||
Got it to work
PHP Code:
|
#6
|
||||
|
||||
You have to check that the URL is not already in the correct format - see the PHP server environment variables. Also, you do not need that conditional, you are already running the plugin only in member.php.
|
#7
|
|||
|
|||
Thanks, Dismounted. You were alot of help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|