MyBB Community Forums

Full Version: Add "Portal" to Nav Bar and redirect instead of Forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, I want to utilize my Portal, and such.
So how can I add my the Portal link to the nav bar?
I also want people to view my Portal first everytime they
enter the forum.

Im new to MyBB so here's my forum.
http://onlivenation.3ftp.org
In your header template, find:
<ul id="nav">

Add after:
<li><a href="portal.php">Portal</a></li>

Add this to your .htaccess file:
DirectoryIndex portal.php index.php index.html
Quote:<ul id="nav">

This is probably not the right place to post this, but ,,,

I started with mybb 1.6.7 after installing it I realized that the portal.php didn't show up on my index page,
In the header template I can't find the above line. Yesterday I upgraded to mybb 1.6.8 and the above still didn't show in my template header

I probably did something wrong during the install but was able to fix the problem by inserting the following under
<div class="menu">
				<ul>

<li><a href="{$mybb->settings['bburl']}/portal.php">{$lang->toplinks_portal}</a></li>
I now have a link on every page to the portal

I do have a question, what did I do wrong, or is this a bug in the script??

Greets
Cleo http://Cleos-meaning.info
Portal page is by default hidden. For some reason and doesnt show up anywhere in the header menu. Unless you add it yourself. As far as i know that is (wasnt there for me either so)
(2012-05-30, 11:45 AM)Cleo Wrote: [ -> ]I started with mybb 1.6.7 after installing it I realized that the portal.php didn't show up on my index page,
In the header template I can't find the above line. Yesterday I upgraded to mybb 1.6.8 and the above still didn't show in my template header

I probably did something wrong during the install but was able to fix the problem by inserting the following...

That's fine, your theme is just designed differently to the OP's.
Hi Alan

This is the default header template
<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
			<div class="menu">
				<ul>
                                       
					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			<br />

I'm ether blind or I'm missing something, but I don't see anything that suggests there is a portal. I do see that the welcome block has been hidden, but that doesn't suggest there is a portal.
In the admin cp (Portal settings) there is nothing there that could turn the portal on or of.
But,,,, like I said, I fixed this by adding a line and it works

greets
The portal is just there, you don't need to turn anything on. It's located at ./portal.php
Yest I know that, but the visitors to the forum don't know, Like I said, there is nothing in the idex page that suggests there is a portal
I know there isn't, that's why you need to add the link...

...if there was already something there you wouldn't need to add anything. Undecided
Now we understand each other, thats what Ive been trying to say, If you want your visitors to have a choice, you have to ad the button yourself.

What I can't understand is, is this a choice the developers of mybb made, or is this something they just forgot to do

Cleo