MyBB Community Forums

Full Version: How to add a BACK button to the top of the forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'd like to be able to add either a back button or a link at the top of the forum page.

Yes, I know the browser has one and the board has a link at the bottom but it seems my users cannot use those !!!

Ian
Use the following code in your header template;
<a href="javascript:history.go(-1)">Go Back</a>
--- please do not post multiple threads for the same issue ; earlier : http://community.mybb.com/thread-111589.html ---
I did post it then could find the post to monitor it. Sorry !

Where in the header would I put this ?

My header is the default one -

<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 />
<li><a href="javascript:history.go(-1)">Go Back</a></li>
add above before below code & save the template
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
Great. Thanks
Why do you need a back button? a back button is on your browser(s).
(2012-01-13, 05:31 PM)Ian Robinson Wrote: [ -> ]Yes, I know the browser has one and the board has a link at the bottom but it seems my users cannot use those !!!

(2012-01-13, 09:55 PM)John J. Wrote: [ -> ]Why do you need a back button? a back button is on your browser(s).
Apparently it just is necessary. Wink
(2012-01-14, 07:04 AM)GamerVoid Wrote: [ -> ]
(2012-01-13, 05:31 PM)Ian Robinson Wrote: [ -> ]Yes, I know the browser has one and the board has a link at the bottom but it seems my users cannot use those !!!

(2012-01-13, 09:55 PM)John J. Wrote: [ -> ]Why do you need a back button? a back button is on your browser(s).
Apparently it just is necessary. Wink
The forum flows from our web site where navigation is clear and obvious. What is not obvious to users is that they have "left" our website into a different style of system and since adding the forum the "only" ctritisism I've received is that the back option is not obvious. Thanks to all the help here I have managed to make the whole of the title image at the top of the forum a big back button. Thanks all.