vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Mini Navbar: Breadcrumb at the bottom of a thread (https://vborg.vbsupport.ru/showthread.php?t=98485)

randominity 10-14-2005 10:00 PM

Mini Navbar: Breadcrumb at the bottom of a thread
 
Description
There's no quick way to jump back to a forum when you've reached the bottom of a thread, so this adds a breadcrumb to the bottom of a thread.

Install / Upgrade
Download the attached XML file, and import it at
Admin Control Panel > Plugins & Products > Manage Products > Add/Import Product

Remember to "Allow Overwrite" if you are upgrading.

Mod Info
0 - Queries
0 - Phrases
2 - Plugins
1 - Template
0 - Template Edits


v1.0.4
After snooping around for a little bit on these forums, I found a neat way to avoid template edits. Big thanks to PaulM and his method of doing this ^^.
Now this mod no longer requires a template modification!
I have removed the non-inline display method, so now it will only be "inline"
v1.0.3
Initial vB 3.6.x version


Please click "Install" if you have installed this mod! Thanks!

Boofo 10-15-2005 06:07 PM

You might want to cache the template. ;)

randominity 10-15-2005 06:28 PM

Doh, how would I go about that using plugins?

Would I add something like $globaltemplates[] = 'navbar_mini';
at showthread_start?

Snake 10-15-2005 06:52 PM

Not a bad hack, thanks. :)

Sooner95 10-15-2005 06:56 PM

you know, this is a good idea... Nice job. I like hacks that make sense.

Sooner95 10-15-2005 06:59 PM

imported it, but it didnt do anything...I'm no coder, so can't really help you with what your missing tho...

version2 10-15-2005 10:31 PM

Quote:

Originally Posted by Sooner95
imported it, but it didnt do anything...I'm no coder, so can't really help you with what your missing tho...

I installed the product and I don't see any new navbar down at the bottom, either.

karrerax 10-15-2005 10:36 PM

Quote:

Originally Posted by version2
I installed the product and I don't see any new navbar down at the bottom, either.

same problem

randominity 10-15-2005 11:15 PM

Oops forgot there needs to be another template edit!

Code:

----------------
open SHOWTHREAD:
----------------

+------
| FIND:
+------
        <if condition="$show['pagenav'] OR $show['inlinemod']">
                <td align="$stylevar[right]">$pagenav
+-----------
| ABOVE ADD:
+-----------
        <td style="align: $stylevar[left]; vertical-align: top;">$navbar_mini</td>
       
-------------------
end template edits
-------------------

Btw for those who have already installed you should reinstall this new .xml because it *should* cache the added template.

Boofo 10-15-2005 11:42 PM

Quote:

Originally Posted by randominity
Doh, how would I go about that using plugins?

Would I add something like $globaltemplates[] = 'navbar_mini';
at showthread_start?

Hook: cache_templates

PHP Code:

if(THIS_SCRIPT == 'showthread')
{
  
$globaltemplates array_merge($globaltemplates, array('navbar_mini'));


;)


All times are GMT. The time now is 02:04 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.01194 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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