Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

How to determine base address of Mybb

Does mybb stores forum base address anyware?

suppose Mybb web address is as below


$_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

Thanks Heart

$mybb->settings['bburl'] for the base URL. MYBB_ROOT for the base path.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.

(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..

Users browsing this thread: 1 Guest(s)