MyBB Community Forums

Full Version: navigation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am making a new lay-out for my forum in 1.6 (planning to update soon from 1.4 to 1.6).
On al my earlier version I deleted the navigation line on the index page. But I can't find it anymore how this was done. I belive it was in a php file.

Its the text line on what page the people are and then only on the first (index) page.
In the example here its the name My Forum, I belive it has something to do with navigation.

http://kellystart.com/fora/index.php
Did you delete it from the navigation template?
nav
<div class="navigation">
{$nav}{$activesep}{$activebit}
</div>
nav_bit
<a href="{$navbit['url']}">{$navbit['name']}</a>{$sep}
nav_bit_active
<span class="active">{$navbit['name']}</span>
nav_sep
 / 
nav_sep_active
 / 

This are the mybb default values for those. Only add this if those would be empty.


If you deleted the line form the header template:
Add this in the header template
 <navigation>
Below the following lines
....
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}

If you deleted it from the global.php file you are probably better off downloading the (appropriate mybb version again) and reuploading that file if you didnt change it to much.
Perhaps you did not understand me well or I did explain it well.
I do not wanne show it on the index page.
Only on the index page or on all pages if you want to delete the whole navigation bar delete <navigation> from the header template.

If you dont want to see it on the index.php page but on all the others. A php thing would indeed be easier with an if /else thing around navigation. Problem is templates dont allow php code.

Maybe adding <navigation> manualy to forum display templates. Dont do that :p tried it out and that results in a spam of like 7-8 of the same things below each other.

Sorry wish i could help you otherwise but only other thing i could think of is adding the php code in the global.php file around the array. Dont try this (havnt tested it at so) maybe some dev can assist you.

<?php
if ('http://' . $_SERVER['HTTP_HOST'] . '/' != 'http://kellystart.com/fora/index.php') {
   // Add our main parts to the navigation
    $navbits = array();
    $navbits[0]['name'] = $mybb->settings['bbname_orig'];
    $navbits[0]['url'] = $mybb->settings['bburl']."/index.php";
?>
In 2007 somebody explain in for me, but I think this post is deleted cannot find it anymore in al my posts.

Found it with Google
http://community.mybb.com/post-258908.html
But I am not sure if I can use it for 1.6
Ah nice now save that link to your favorites to never lose it again :p
Is this possible to do it one the same way for the portal page?
Somewhere else I found a way to remove the navigation bar out of the portal. This works for 50%.
http://pastebin.com/wYK0F9vR
All text is removed but the line portal is still there.

Example.
Before I add the code it was
My forum / Portal
Now it is
/ Portal

How do I remove this last line / Portal
(2012-04-11, 06:20 PM)spinning Wrote: [ -> ]Somewhere else I found a way to remove the navigation bar out of the portal. This works for 50%.
http://pastebin.com/wYK0F9vR
All text is removed but the line portal is still there.

Example.
Before I add the code it was
My forum / Portal
Now it is
/ Portal

How do I remove this last line / Portal

I did away with the navigation completely on index & portal by removing '<navigation>' from the header template and placing it in the forumdisplay template just below '{rules}' this means navigation only appears if you are viewing a forum I then used the menu to then navigate the rest of the site look at my site to see if this is of any use
This will give problems by updating some templates.
Pages: 1 2