MyBB Community Forums

Full Version: [request] Portal link on Forum index page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

How can I insert a link to the portal (portal.php) into the Forum index page ?

When I open "portal.php" there are a link to Forums, but in Forum index page there aren't link to Portal !...

Many thanks.
Open your "header" template

Find

					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a></li>

Add
	<li><a href="{$mybb->settings['bburl']}/portal.php">Portal</a></li>
Thanks,

But this adds the link into the top navbar...

I should add it only in the breadcrumb navigation as follows:
In the portal page I see :
- Forums / Portal (Forums link is active)
I would made same stuff in the index page:
- Portal / Forums (with portal link active).

I hope you understand...

In the "index.php" file, I've added the following lines:
$lang->load("portal");
add_breadcrumb($lang->nav_portal, "portal.php");

This adds the link Portal but it's not active !
I get this:
Forums / Portal (only the link Forums is active)
and I would have:
Portal / Forums (with portal link active)
(or in reverse order, no matter...)

Many thanks in advance
spyto Wrote:How can I insert a link to the portal (portal.php) into the Forum index page ?

spyto Wrote:Thanks,

But this adds the link into the top navbar...
I should add it only in the breadcrumb navigation as follows:
...

That's what you asked ...


And having Forums / Portal in your index breadcrumb is messing up the breadcrumb =/
Isn't it normal if you have Forums / Portal in your portal.php, that only Forums is active ... You are at Portal and can return to Forums.

Edit

If you want it active and in the breadcrumb, the only solution i think is adding an empty breadcrumb ... the only "problem" is, it will show up like Forums / Portal /

$lang->load("portal");
add_breadcrumb($lang->nav_portal, "portal.php");
add_breadcrumb("", "");
Quote:Isn't it normal if you have Forums / Portal in your portal.php, that only Forums is active ... You are at Portal and can return to Forums.
I have it, without modifying anything in the file ! I use 1.2.7 version.

You think right: adding an empty breadcrumb makes the link active.
But it remains a trailing '/' as you wrote.
And, therefore, it's only valid for the index page.

I believe that I will rather put a link into the header, so it will be available over all pages !

I thought that it was easy (when using portal.php) to include a link to the portal along the standard forum breadcrumb navigation line !... but this case was not planned by the authors...

Thanks a lot for your answer