PDA

View Full Version : Show Thread Enhancements - Navbar At Bottom of Threads


DontWannaName
11 Mar 2009, 05:01
Hello all,

I thought I would post this quick edit since it seems to work for me. This basically adds the navbar below the post button. I havent tested this a lot and cant guarantee it will work for everyone but its worth a shot.

1. Go to styles and templates > styles manager

On your current theme, go to the drop down menu on the right and scroll down to edit template.

2. On the left side there should be a single column that is a giant scrollbar. Scroll down to Show Thread Template and double click, then SHOWTHREAD should appear and double click that.

3. Now you should be in the editor area. Scroll down about 1/3, you are looking for <!-- / controls below postbits --> Above that should be a </table> tag.

4. After the table tag, add this code:
<tr>
<td class="alt1">
<!-- breadcrumb -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="bottom">
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / breadcrumb -->
</td>
</tr>

5. Click save and you should now see the navbar below the post reply icon.

If you would like it somewhere else, just play around with moving that code around in SHOWTHREAD. You can add it after post reply too by finding the post reply code and adding it after.

Im no coder so please dont expect much from me as far as support. I couldn't find anything like this exactly, all I saw was navbits that made a new table which were ugly. To see mine please visit my forums at http://topnotchclan.com/forums/index.php and click any of the available threads.

Also, if your navbar gets really long, I cant guarantee that it will look good still but it should just make another line.

Update 3/14/09 - Updated Code with valdet's

kawe
11 Mar 2009, 05:42
can u give me a complete tutorial :D
i dont know what u mean sir

DontWannaName
11 Mar 2009, 05:44
Go into the admin panel, there is a tab on the left for styles and templates click that then click styles manager, then follow it from there.

itsheinz
11 Mar 2009, 06:19
seems interesting^^how to add more links?
Installed,thanks for this...a lot... saves finger^^

DontWannaName
11 Mar 2009, 06:44
Add more links? You can add a link before like for a portal or to go back to the mainsite by editing more code. Im not quite sure if you want to edit this code or your navbit code though. Demo is my forums link.

valdet
11 Mar 2009, 09:54
I'm afraid your code is broken

<!-- BreadCrumbs -->
<td align="$stylevar[left]">
<div class="bcrumbs">
<td class="smallfont">
<a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><strong>$vboptions[bbtitle] Forum Index</a>$navbits[breadcrumb]</strong> </div>
<!-- / BreadCrumbs -->

You are not closing those two data cells, and you also need to add a separate class "bcrumbs" to your CSS as per your code.





Here is a cleaner looking code


<tr>
<td class="alt1">
<!-- breadcrumb -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="bottom">
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / breadcrumb -->
</td>
</tr>Val.

agitated
11 Mar 2009, 18:02
This works on 3.8.1 and is simple to install.
http://www.vbulletin.org/forum/showthread.php?t=125790

Jasem
11 Mar 2009, 19:04
Good work, thank you

DontWannaName
11 Mar 2009, 21:51
Ok I will try that, as I said, im no coder but I the code seemed to work fine.


That one adds a table and looks ugly compared to this edit. This adds just the navbits by itself below the post reply button.

DontWannaName
11 Mar 2009, 22:09
Ok so your code seems to add more space between the post reply and the quick reply area whereas mine adds less space. Despite the difference in code such as the forum home link, they are pretty similar. I would want something that takes up the least space though if you know how to do that with your code. Maybe changing valign to top will make it higher?

Here are the 2 compared, different topics but same area.

K4GAP
11 Mar 2009, 22:11
By having this on my forums I can now do away with the same thing as is in the area around the navbar. Correct? Ok, how can I accomplish that?

DontWannaName
11 Mar 2009, 22:25
Do away with what area around the navbar? The old plugin from 3.6 adds this in a table that looks bad, is that what you are talking about? or another variation of this?

K4GAP
12 Mar 2009, 16:45
Never mind I figured it out.

valdet
23 Mar 2009, 10:09
Thanks for my mention.

Installed :)

TimberFloorAu
23 Mar 2009, 13:24
Mine is like this:


<tr>
<td class="alt1">
<!-- breadcrumb -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td>
<fieldset class="fieldset"><legend>British Expats Breadcrumbs</legend>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="bottom">
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
</table> </fieldset>
</td>
</tr>
</table>
<!-- / breadcrumb -->
</td>
</tr>



Works GREAT ! :up:

GONUMBER6
30 Jun 2012, 21:40
Would love to see this mod for vb 4.0

Frosti
04 Jul 2012, 06:15
What I would like to see is a COPY of the NAVBAR at the top including the gifs and inside a Category box ... at the bottom.

Any chance for that?

Frosti
04 Jul 2012, 15:48
What I would like to see is a COPY of the NAVBAR at the top including the gifs and inside a Category box ... at the bottom.

Any chance for that?



HERE YOU GO: This is the code to have it in a box and including the same way it is at the top of the page. see attachment (use both codes one right after the other)


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>

</table>