vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Back & Forward buttons below thread (https://vborg.vbsupport.ru/showthread.php?t=119365)

bashy 06-21-2006 10:00 PM

Back & Forward buttons below thread
 
Hi peeps

This is a very tiny bit of code that adds a back and forward button below the thread
These do the same as your browser does.

You can put the code where you like, I have it here.....

In your showthread template find
Code:

<if condition="$show['largereplybutton']"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
Add below
Code:

<!-- Foward & Back buttons Start -->                 
<center>
<input type="button" value="    Back    " onClick="history.go(-1)">
<input type="button" value="Forward" onCLick="history.go(1)">
</center>
<!-- Foward & Back buttons End-->

The reason for the spacing for the back button is so that both buttons are about
the same size......

Like i said, you can put this where you like, if anyone can knows of a better
way of coding this then please let me know? Im afraid this is the best i can do.
This is very simple and will take less than 2 mins from entering your admincp :)

I cant see why this wont work on all 3.5 and 3.6 versions, perhaps the older ones as well?

SCORPION1 06-22-2006 05:48 PM

first shout nice one bashy will give it a try m8 thanx :rolleyes:

Snake 06-23-2006 11:36 AM

I'll check this out later...

midirtrider 06-26-2006 11:15 PM

going to give it a try as well.

*clicks intall*

would be nice in diffrent colors though.. Im running the stock colors for VB 3.5.4
how can I recolor the buttons?

peterska2 06-26-2006 11:19 PM

the code looks like it uses the colors for your CSS buttons class



nice job bashy :)

RFViet 06-28-2006 08:31 PM

Looks nice


All times are GMT. The time now is 10:03 AM.

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.01096 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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