The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
http://support.$vboptions[bburl]
http://support.$vboptions[bburl]
I tried this but its not working pls tell me to correct way to do it ? Thank you. |
#2
|
|||
|
|||
Ask in the relevent hack thread.
|
#3
|
||||
|
||||
I think $vboptions[bburl] contains http:// already... you could edit it with some PHP though for what you want:
PHP Code:
|
#4
|
|||
|
|||
Hi, Thank you ,
I added this as a Plugin <?php $supportURL = str_replace('http://', 'http://support.', $vbulletin->options['bburl']); ?> and I tried to call this from the template like this $supportURL but its giving me empty result. |
#5
|
||||
|
||||
Plugins should not contain <?php or ?> - it will give you a parse error. If you're using global_start all output is buffered, so you won't even see the error.
What are you trying to accomplish? |
#6
|
|||
|
|||
Ok I have been able to get this worked but what I want do is I am trying to have two of my domain names pointed to a main domain lets say main.com, and when some one comming from xxx.com then all the links should be like xxx.com so I have been able to covert all the other links work like this with $vboptions[forumhome] , But for this one I created it like
$supportURL = str_replace('http://', 'http://support', $vbulletin->options['forumhome']); $supportURL = str_replace('http://www.', 'http://support', $vbulletin->options['forumhome']); But its returning like this http://www.xxx.com not like http://support.xxx.com How to correct this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|