MyBB Hacks

Full Version: get the main domain url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
for example, I have a new domain using MyBB, by name: domainsx.xxx

then, I will make a forum in the directory /forum/
or in other words:

http://www.domainsx.xxxx/forum (NOT in the root folder)

I want to ask:

in the main menu, I want to create url shortcut directly to my default domain, domainsx.xxx

I've tried:

PHP Code:
<li><a href="{$mybb->settings['bburl']}/index.php">Home</a></li>

(from the url above, the page will go to the forums)

and change to:

PHP Code:
<li><a href="{$_SERVER['REQUEST_URI']}">Home</a></li>

(from the url above, the page will also be heading to the forums)


but it did not work. where does the fault?


Quote:note:
I Don't Want to make such a direct url.

PHP Code:
<li><a href="http://www.domainsx.xxx">Home</a></li>

sorry, the problem has been solved. Tongue
Reference URL's