vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Navbar At Bottom of Threads (https://vborg.vbsupport.ru/showthread.php?t=207976)

DontWannaName 03-10-2009 10:00 PM

Navbar At Bottom of Threads
 
1 Attachment(s)
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
Code:

<!-- / controls below postbits -->
Above that should be a </table> tag.

4. After the table tag, add this code:
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 03-11-2009 03:42 AM

can u give me a complete tutorial :D
i dont know what u mean sir

DontWannaName 03-11-2009 03:44 AM

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 03-11-2009 04:19 AM

seems interesting^^how to add more links?
Installed,thanks for this...a lot... saves finger^^

DontWannaName 03-11-2009 04:44 AM

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 03-11-2009 07:54 AM

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


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 03-11-2009 04:02 PM

This works on 3.8.1 and is simple to install.
https://vborg.vbsupport.ru/showthread.php?t=125790

Jasem 03-11-2009 05:04 PM

Good work, thank you

DontWannaName 03-11-2009 07:51 PM

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 03-11-2009 08:09 PM

1 Attachment(s)
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.


All times are GMT. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01638 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete