I am kind of a novice at writing plugins so bare with me.
I wrote a plugin to change the value of $vbulletin->options['bburl'] to match the url the user was using to visit my site. Basically I made a plugin on the hook global_setup_complete with the code
PHP Code:
$vbulletin->options['bburl'] = $_SERVER['HTTP_HOST'];
This works great some places except for it not including the http:// but other places it makes a mess. For example in the lost password screen where it says
Quote:
You have entered an invalid username or password. Please press the back button, enter the correct details and try again. Don't forget that the password is case sensitive. Forgotten your password? Click here!
|
The url of the here is
http://mysiteurl/mysiteurl/login.php?do=lostpw It seems to duplicate the url in some places and not others. Any one have any idea why it does this and how I can fix it?
Thanks!!!