Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 17th, 2017, 12:22am


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
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Modify 'Hot Thread' Post Count  (Read 4005 times)
Richard
Executive Member


member is offline

Avatar




Homepage PM


Posts: 11512
xx Modify 'Hot Thread' Post Count
« Thread started on: Sep 16th, 2004, 3:31pm »

<script>
//Created by Dave of Conforums Support
//http://support.conforums.com
function setpostcount(){
var hcount = 15 // posts for 'hotthread'
var vhcount = 30 // posts for 'veryhotthread'
var TR = document.getElementsByTagName('TR')
for(iTR=0; iTR<TR.length; iTR++){
for(iTD=0; iTD<TR[iTR].cells.length; iTD++){
if(TR[iTR].cells[iTD].width=="14%"){
var pcount = parseInt(TR[iTR].cells[iTD+1].getElementsByTagName('Font')[0].innerHTML)
if(pcount >= hcount && pcount < vhcount)
TR[iTR].cells[0].getElementsByTagName('IMG')[0].src="http://207.44.144.11/boardimages/hotthread.gif"
if(pcount < hcount)
TR[iTR].cells[0].getElementsByTagName('IMG')[0].src="http://207.44.144.11/boardimages/thread.gif"
if(pcount>= vhcount)
TR[iTR].cells[0].getElementsByTagName('IMG')[0].src="http://207.44.144.11/boardimages/veryhotthread.gif"
}}}}
if(location.href.match(/action=/)){
} else {
setpostcount()
}
</script>


Modify the numbers as needed.
They are currently set to default. Place in Board Footers

Where you have the number in green this is the amount posts needed for the thread to become 'hot'.

Where you have the number in red this is the amount of posts needed for the thread to become 'very hot'



User Image this is the 'hot' image, if you want to change it, or you have your own custom 'hot' image, change the text in orange to your 'hot' image URL.

User Image this is the default 'thread' image. If you want to change it, or you have your own custom 'thread' image, change the text in bold to your 'thread' image URL.

User Image this is the 'very hot' very hot image, again, if you want to change it, or you have your own custom 'very hot' image, change the text in blue to your 'very hot' image URL.



Questions or comments, please post here
« Last Edit: Sep 16th, 2004, 4:17pm by Richard » User IP Logged

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

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls