MyBB-Plugins Forums
How to determine base address of Mybb - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: How to determine base address of Mybb (/Thread-How-to-determine-base-address-of-Mybb)



How to determine base address of Mybb - burraak - 07-09-2014

Does mybb stores forum base address anyware?

suppose Mybb web address is as below

http://www.xyzdiscussion.com/forums/mybb/index.php

$_SERVER['HTTP_HOST'] will only return "www.xyzdiscussion.com"

$_SERVER['SCRIPT_NAME'] will return the path to the script from where it is being running which may be a file within admin root

But I need forum base address i.e
http://www.xyzdiscussion.com/forums/mybb/

Thanks Heart


RE: How to determine base address of Mybb - Diogo Parrinha - 07-09-2014

$mybb->settings['bburl'] for the base URL. MYBB_ROOT for the base path.


RE: How to determine base address of Mybb - burraak - 07-09-2014

(07-09-2014, 07:43 PM)Pirata Nervo Wrote: $mybb->settings['bburl'] for the base URL. MYBB_ROOT for the base path.

Thanks a Million HeartHeartHeart

Going to contribute a free plugin soon..