PDA

View Full Version : Back to Top.


Brad
06-13-2002, 06:50 PM
Very easy and fast template mod, what this dose is allow you to put a link in your postbit, when click the user will pop back to the top of the page.

frist edit postbit


find

<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{ imagesfolder }/quote.gif" border="0" alt="Reply w/Quote"></a>


Below that add

<a href="showthread.php?s=$session[sessionhash]&threadid=$post[threadid]#top"><img src="{ imagesfolder }/icon_go_up.gif" border="0" alt="Back to Top"></a>

remember to remove the spaces in { imagesfolder }

upload the attached image to the images folder and you done. :bunny:

Boofo
06-13-2002, 06:58 PM
Or you could just do this if you wanted a text link and wanted to use javascript. :)

<b><a href="javascript:self.scrollTo(0,0);"><font color="#EEEEFF">Back to Top</a></b></font>

Chris M
06-13-2002, 07:54 PM
Or you could use even simpler HTML...

In showthread add :

<a name="top"></a> wherever you want...

In postbit add :

<a href="#top"><img src="{ imagesfolder }/on.gif" alt="Back to Top"></a>
(Remember to remove the spaces in { imagesfolder })

Satan

Atian
06-13-2002, 11:03 PM
pretty nice,i still have these problem..it seems that before the images a > appearsmive check my $postibt but nothing worng with it,heres a pic

Brad
06-13-2002, 11:12 PM
somehow you put a > in front of the image somehwere, just remove it.