Purchase Credits 2.0.1 released and NewPoints 2.1.2 released .
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)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2020 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here