MyBB-Plugins Forums

Full Version: How to determine base address of Mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
$mybb->settings['bburl'] for the base URL. MYBB_ROOT for the base path.
(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..