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
#1

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
Reply
#2

$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.
Reply
#3

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




Users browsing this thread: 1 Guest(s)