Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 18th, 2018, 06:39am

Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Dynamic Drive

The Staff

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Go to the Last Post  (Read 2734 times)
Executive Member

member is offline


Homepage PM

Posts: 11512
xx Go to the Last Post
« Thread started on: Mar 28th, 2005, 6:53pm »

This code will insert a link while inside a forum for all topics, clicking this link will scroll automatically to the last post inside that thread, it works in mozilla too.
To see the effects of this code Click Here

Insert into all board footers:
<script type='text/javascript'>
/* ----------------------------------------- *\
Go To Last Post In Threads
Created By Zero Tolerance
Copyright 2005 Inferno Productions
All Rights Reserved
\* ----------------------------------------- */

Bold = document.getElementsByTagName('b')
TD   = document.getElementsByTagName('td')

		if(Bold[b].innerHTML.match(/Reply #(\d+) on:/)){
		Reply = RegExp.$1
		Bold[b].innerHTML = Bold[b].innerHTML + '<a name="post'+Reply+'"></a>'

		if(TD[t].className=="windowbg2" && TD[t].width=="20%" && !location.href.match(/action=display/i)){
		Reply = TD[t-2].childNodes[0].innerHTML
		page = Math.floor(Reply / 15)
		page = (page * 15)
		Thread = TD[t-4].getElementsByTagName('a')[0].href
		LastPost = Thread+'&start='+page+'#post'+Reply
		Build = '<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td>'+TD[t].innerHTML+'</td>'
		Build += '<td align="right"><b><a href="'+LastPost+'" title="Go To Last Post "></a></b></td></tr></table>'
		TD[t].innerHTML = Build

The code is copyrighted by Inferno Productions, all rights reserved. It may not be redistributed in part or whole without permission, nor may the copyright be altered/removed.

Submitted by Zero Tolerance

« Last Edit: Jul 4th, 2006, 01:57am by Garet » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls