Go Back   Computer Forums > Welcome To Computer Forums .org > Site Admin, News and Feedback
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-16-2009, 10:07 PM   #1
Wizard of Wires
 
setishock's Avatar
 
Join Date: Feb 2005
Location: Not sure
Posts: 10,031
Default Return to top of page link

David,
Some of the threads in your forum get really long and it would be nice to have a TOP link parked under the previous / next links at the bottom of the thread page. So here ya go.

This line of code has been tested by me and is currently in use at www.AnimeAppeal.com. To see this code in action go open a long thread such as one of the picture threads and go all the way to the bottom of the page. Click > top < to get back to the top of the page. Pretty handy, huh?
Buzz has a top link in use at www.computervitals.com but I am not certain if it's the same code.

Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
Navigate to your themes SHOWTHREAD template. In the search field put: nextoldest and click: find. That will get you to the section of code you are going to edit.
Add the blue code making the class whatever you want except > button. Button is a reserved var name for VB. Or you can just leave it like you see it here. Reason mine is named topbutt2 is there is the first code line in the footer template named topbutt. Topbutt means top button.
Code:
<!-- next / previous links -->
	<br />
	<div class="smallfont" align="center">
		<strong>&laquo;</strong>
			<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest" rel="nofollow">$vbphrase[prev_thread]</a>
			| <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest" rel="nofollow">$vbphrase[next_thread]</a>
                               		<strong>&raquo;</strong>
                             <div class="topbutt2" align="center">  <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a></div>
	</div>
<!-- / next / previous links -->
After you add this code click: save and reload. Check a thread to be sure it works.
__________________

setishock is offline   Reply With Quote
Old 03-16-2009, 10:13 PM   #2
Golden Master
 
01001010's Avatar
 
Join Date: Oct 2005
Posts: 7,888
Default Re: Return to top of page link

There's already a link that does that. It's in the toolbar below the blue background on the bottom of the page.

Contact Us - Computer Forums - Archive - Top
__________________

__________________
Stop the genocide now.
↳ www.savedarfur.org

Send comments, suggestions and criticisms.
↳ 01001010listens@gmail.com
01001010 is offline   Reply With Quote
Old 03-16-2009, 11:48 PM   #3
Wizard of Wires
 
setishock's Avatar
 
Join Date: Feb 2005
Location: Not sure
Posts: 10,031
Default Re: Return to top of page link

Yeah and it's white on a lite back ground and for the most part blends in.
This parks the top link up under the << Previous Thread | Next Thread >> links where it's more visable.
setishock is offline   Reply With Quote
Old 03-17-2009, 09:14 PM   #4
Fully Optimized
 
Holysky's Avatar
 
Join Date: Oct 2008
Posts: 3,692
Default Re: Return to top of page link

Quote:
Originally Posted by 01001010 View Post
There's already a link that does that. It's in the toolbar below the blue background on the bottom of the page.

Contact Us - Computer Forums - Archive - Top
you always seem to try and prove people wrong
__________________
Let's get this party started, I'm sick of begging you You make me dead inside which I give to you
Let's get this party started, You make me feel inside I want to be the one to make myself sane
Holysky is offline   Reply With Quote
Old 03-17-2009, 09:39 PM   #5
Golden Master
 
freestyler105's Avatar
 
Join Date: Sep 2006
Posts: 7,883
Default Re: Return to top of page link

Quote:
Originally Posted by Holysky View Post
you always seem to try and prove people wrong
Well he's right...maybe if those links were changed to black?
__________________
C2D E6600 | 4GB DDR2-800 | 9800GTX+ | Asus P5B-E | 150GB Raptor | 320GB 7200.10 | 750W Xigmatek PSU
freestyler105 is offline   Reply With Quote
Old 03-17-2009, 09:42 PM   #6
Golden Master
 
01001010's Avatar
 
Join Date: Oct 2005
Posts: 7,888
Default Re: Return to top of page link

Quote:
Originally Posted by Holysky View Post
you always seem to try and prove people wrong
If you have a problem with me, take it through PM.
__________________
Stop the genocide now.
↳ www.savedarfur.org

Send comments, suggestions and criticisms.
↳ 01001010listens@gmail.com
01001010 is offline   Reply With Quote
Old 03-17-2009, 09:50 PM   #7
Daemon Poster
 
nevermind1534's Avatar
 
Join Date: Oct 2008
Posts: 754
Default Re: Return to top of page link

Wow, I never noticed that. It's barely visible.
__________________
Your PC Forums - yourpcforums.org
nevermind1534 is offline   Reply With Quote
Old 03-17-2009, 09:57 PM   #8
Fully Optimized
 
Holysky's Avatar
 
Join Date: Oct 2008
Posts: 3,692
Default Re: Return to top of page link

Quote:
Originally Posted by 01001010 View Post
If you have a problem with me, take it through PM.
Dang you didnt have to snap at me. I am not trying to start anything it just seems like you do........
__________________
Let's get this party started, I'm sick of begging you You make me dead inside which I give to you
Let's get this party started, You make me feel inside I want to be the one to make myself sane
Holysky is offline   Reply With Quote
Old 03-17-2009, 10:37 PM   #9
Omnipotent One
 
Atomic Rooster's Avatar
 
Join Date: Apr 2006
Location: USA
Posts: 11,161
Send a message via AIM to Atomic Rooster Send a message via Yahoo to Atomic Rooster
Default Re: Return to top of page link

Quote:
Originally Posted by nevermind1534 View Post
Wow, I never noticed that. It's barely visible.
+1

No kidding. . . It took many looks at the bottom of the page for me to find that. I never knew that was there until this thread.
Atomic Rooster is offline   Reply With Quote
Old 03-17-2009, 11:38 PM   #10
Daemon Poster
 
PokerDegenerate's Avatar
 
Join Date: Dec 2008
Posts: 1,465
Default Re: Return to top of page link

me either I just click the mouse wheel and slide it up...
__________________

__________________
Raidmax Smilodon Extreme Black Case -|-AMD Phenom II x4 955 BE @ 3829.50 Mhz (18.5 x 207, vcore 1.424, NB 2600 mhz, HT link 2200 mhz) -|- Xigmatek Dark Knight S1283V -|- Gigabyte MA790XT-UD4P Mobo -|- G. Skill 6Gb (3 x 2Gb) DDR3 1333 RAM 7-7-7-18-2t -|- WD Caviar 7200 RPM 1 TB HDD -|- OCZ GameXtreme 700W -|- Radeon 4870 1Gb @ 780/1050 -|- Asus VW202NR 20" wide-screen -|- Windows 7 Professional 64 Bit -|- Saitek Cyborg Keyboard -|- Razer Lachesis Mouse
PokerDegenerate is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:04 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0