MyBB Community Forums

Full Version: bbURL adding /forum/ when it's not even there.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Website URL: http://icecreamkingdom.net/

As suggested, here's the test user information:
Username: Test_User
Password: test123

So, my bburl is as follows:
$settings['bburl'] = "http://icecreamkingdom.net";
Each element on my navbar uses this code (slighty modified per destination):
<li><a href="{$mybb->settings['bburl']}/portal.php"><i class="fa fa-globe"></i> {$lang->toplinks_portal}</a></li>
However, when I click on a link in the navbar, it sends me to "/forum/portal.php", which obviously doesn't work. It happens for each nav link, just with the different .php page.

I've tried messing with the bbURL, changing it to "http://icecreamkingdom.net/forum" broke the entire site, and the way it is currently adds the /forum/ to any navbar url using the code shown above.

BUT HERES THE REAL KICKER
IT ONLY HAPPENS WHEN YOU'RE A USER AND LOGGED IN ON THE FORUM!

I tried it while logged in, and logged out of my forum, and this only happens while I'm logged into my account.

I also had friends try it, and they found the same.

In conclusion, if you're a guest and want to access the portal by clicking the portal button, you get sent to http://icecreamkingdom.net/portal.php

But if you're a user, you get sent to http://icecreamkingdom.net/forum/portal.php

Any help would be extremely appreciated. Thanks in advance!
post a test user account so that someone can check it ..
(12-31-2015, 09:36 AM).m. Wrote: [ -> ]post a test user account so that someone can check it ..

I just made one,
Username: Test_User
Password: test123
Links in the header_welcomeblock_member template are basically wrong (either completely hardcoded or with /forum/ after {$mybb->settings['bburl']}). header_welcomeblock_guest has correct URLs.

If the template is ok, then one of your plugins/custom codes modifies the $mybb->settings['bburl'] variable only for it.
(01-01-2016, 02:26 AM)Destroy666 Wrote: [ -> ]Links in the header_welcomeblock_member template are basically wrong (either completely hardcoded or with /forum/ after {$mybb->settings['bburl']}).  header_welcomeblock_guest has correct URLs.

If the template is ok, then one of your plugins/custom codes modifies the $mybb->settings['bburl'] variable only for it.

I don't have any other plugins installed. I'm using the flatty theme as my basis:
http://community.mybb.com/mods.php?action=view&pid=617

The code I pasted is direct from one of the files given with the theme, unchanged. However, I even tried replacing the "get bburl" portion of the code with the entire link to my website. Is there anything I could try to modify to fix this? If you download the flatty theme, in it you'll find files for each button on the navbar (not sure why, but hey, that's what the dev did), and the entire button code is as follows:
<li><a href="{$mybb->settings['bburl']}/portal.php"><i class="fa fa-globe"></i> {$lang->toplinks_portal}</a></li>

Again, thanks in advance, I'm not sure why this is happening, especially only as a user. I'm fairly new to mybb, so I'm not sure.

NOTE: As of right now, the only custom code was style in css.
That's weird. You can PM me a temporary admin account to check what's wrong.
(01-01-2016, 02:56 AM)Destroy666 Wrote: [ -> ]That's weird. You can PM me a temporary admin account to check what's wrong.

PM'd with all the stuff, thanks again for the help.
So, as I said, the links in the mentioned template are wrong:
			<ul class="menu top_links">
				<li><a href="{$mybb->settings['homeurl']}forum/portal.php"><i class="fa fa-home"></i> {$lang->toplinks_portal}</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/"><i class="fa fa-comments"></i> Forums</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/search.php"><i class="fa fa-search"></i> {$lang->toplinks_search}</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/memberlist.php"><i class="fa fa-users"></i> Members</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/calendar.php"><i class="fa fa-calendar-check-o"></i> {$lang->toplinks_calendar}</a></li>
				<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help"><i class="fa fa-question-circle"></i> {$lang->toplinks_help}</a></li>
			</ul>
Only the help link is correct.
(01-01-2016, 04:09 AM)Destroy666 Wrote: [ -> ]So, as I said, the links in the mentioned template are wrong:
			<ul class="menu top_links">
				<li><a href="{$mybb->settings['homeurl']}forum/portal.php"><i class="fa fa-home"></i> {$lang->toplinks_portal}</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/"><i class="fa fa-comments"></i> Forums</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/search.php"><i class="fa fa-search"></i> {$lang->toplinks_search}</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/memberlist.php"><i class="fa fa-users"></i> Members</a></li>
				<li><a href="{$mybb->settings['homeurl']}forum/calendar.php"><i class="fa fa-calendar-check-o"></i> {$lang->toplinks_calendar}</a></li>
				<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help"><i class="fa fa-question-circle"></i> {$lang->toplinks_help}</a></li>
			</ul>
Only the help link is correct.

So the files that designate them one per file are the wrong ones to edit? Are these in the index.php?
Which files? You edit templates in ACP -> Templates & Style -> Templates -> [your theme's templateset]
http://docs.mybb.com/1.8/development/themes/templates/
Pages: 1 2