vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Replacement 'GO' button (https://vborg.vbsupport.ru/showthread.php?t=243492)

jonty 05-27-2010 10:00 PM

Replacement 'GO' button
 
1 Attachment(s)
Members wanting the (showthread) 'Go' button back?

I never used it myself, but our members use it to jump back to the forum that the thread is on.
Now that the forumjump has changed, the 'Go' button has been removed.

So, to create a replacement button that jumps back to the forum the current thread is in:

In the SHOWTHREAD template, find
Code:

<div id="pagination_bottom" class="pagination_bottom">
        <vb:if condition="$show['pagenav']">
                {vb:raw pagenav}
        </vb:if>
                {vb:raw forumjump}
        </div>
</div>

and replace with:
Code:

<a href="{vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}" class="button" style="float:{vb:stylevar right}; font-size:11px; margin:10px;"><b>{vb:rawphrase go}</b> Back to forum</a>

<div id="pagination_bottom" class="pagination_bottom">
        <vb:if condition="$show['pagenav']">
                {vb:raw pagenav}
        </vb:if>
                {vb:raw forumjump}
        </div>
</div>


jonty 05-28-2010 06:54 PM

*reserved* :up:

COL NIL SATIS 05-30-2010 03:28 PM

will try this later...tagged !!

markwein 05-30-2010 09:43 PM

Installed. works great. it's one of the biggest requests my users have had since I upgraded to 4.0.

Thanks!

jonty 06-03-2010 08:46 PM

Quote:

Originally Posted by markwein (Post 2045739)
Installed. works great. it's one of the biggest requests my users have had since I upgraded to 4.0.

Thanks!

You're welcome Mark - it's only one line but it makes such a difference :cool:

COL NIL SATIS 06-07-2010 10:22 AM

works great....thanks Jonty

FighterO'Foo 06-07-2010 07:19 PM

Brilliant stuff. Been looking to sort this out for ages. I installed it, but made a few changes to it to make it look a little smarter:

http://img28.imageshack.us/img28/1630/gobackgrab.jpg

Same template, just put it here instead:

Code:

<div id="pagination_bottom" class="pagination_bottom">
        <vb:if condition="$show['pagenav']">
                {vb:raw pagenav}
        </vb:if>
                {vb:raw forumjump}
        </div>
</div>

<a href="{vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}" class="button" style="float:{vb:stylevar right}; font-size:11px; margin-bottom:5px; padding:3.33333px 6.66667px;"><b>{vb:rawphrase go}</b> back to forum</a>


Gero50 08-01-2010 04:13 AM

It wont find the code when I search for it. Can you help please.

jacobsen1 09-16-2010 08:06 PM

damn, been +++++ing about this since December 2009 (4.0.0) and just upgraded to 4.0.7 assuming it was one of the fixes.... :mad:

installed. :cool:


All times are GMT. The time now is 04: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.00954 seconds
  • Memory Usage 1,727KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete