MyBB Community Forums

Full Version: Flatty Theme navbar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I have website with Flatty Theme. And when i click navbar e.g Portal or Forums or Search. It will go to /forum/search.php

And alll my files are in the /public_html folder. So it should go like /search.php. And i want forum to be at /forum and then like portal at /

Thanks for help, this is my first mybb forum ever
Try check you config settings... Go Configuration -> Site Detail. Look to 'Board URL' and 'Home Page URL'...

In my case, in Board URL: http://www.mysite.com/forum and Homepage URL: http://www.mysite.com/. Maybe in your case have /forum.
Hi, I've already fixed this small mistake I've made. You can either wait for the next build which will be released very soon or change/fix it by yourself:

Quote:Go to Admin CP  >  Templates & Styles  >  Templates  >  Flatty Templates  >  Header Templates  >  header_welcomeblock_guest

  scroll down to line 38 and replace line 38-45 by the following small code:


<ul class="menu top_links">
	<li><a href="{$mybb->settings['bburl']}/portal.php"><i class="fa fa-home"></i> {$lang->toplinks_portal}</a></li>
	<li><a href="{$mybb->settings['bburl']}/index.php"><i class="fa fa-comments"></i> Forums</a></li>
	<li><a href="{$mybb->settings['bburl']}/search.php"><i class="fa fa-search"></i> {$lang->toplinks_search}</a></li>
	<li><a href="{$mybb->settings['bburl']}/memberlist.php"><i class="fa fa-users"></i> Members</a></li>
	<li><a href="{$mybb->settings['bburl']}/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>

Quote:Now go to Admin CP  >  Templates & Styles  >  Templates  >  Flatty Templates  >  Header Templates  >  header_welcomeblock_member

scroll down to line 45 and replace line 45-52 by the following small code:


<ul class="menu top_links">
	<li><a href="{$mybb->settings['bburl']}/portal.php"><i class="fa fa-home"></i> {$lang->toplinks_portal}</a></li>
	<li><a href="{$mybb->settings['bburl']}/index.php"><i class="fa fa-comments"></i> Forums</a></li>
	<li><a href="{$mybb->settings['bburl']}/search.php"><i class="fa fa-search"></i> {$lang->toplinks_search}</a></li>
	<li><a href="{$mybb->settings['bburl']}/memberlist.php"><i class="fa fa-users"></i> Members</a></li>
	<li><a href="{$mybb->settings['bburl']}/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>
One more thing, in which file is located all those Language words. Like {$lang->toplinks_portal}
(2015-12-29, 06:48 PM)DjPrison Wrote: [ -> ]One more thing, in which file is located all those Language words. Like {$lang->toplinks_portal}


global.lang.php (inc/languages/english/global.lang.php)

or

Admin CP  >  Configuration  >  Languages  >  English (American) (Options)  >  Edit Language Variables  >  global.lang.php