Board Logo

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


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: Thread Subject Prefix  (Read 4041 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2070
xx Thread Subject Prefix
« Thread started on: Aug 19th, 2006, 03:13am »

This code will allow you to add a prefix to the thread subject of stickied subjects, locked subjects and stickylock subjects.
Preview

Board Footers
Edit Red
Cross-Browser



<script type="text/javascript">
<!--

/*
Lock, sticky and locked sticky thread prefix
Coded By Zando
*/

function ooo(source,text){
var tdz=document.getElementsByTagName("td")
for(z=0;z<tdz.length;z++){
if(tdz[z].width.match(/48%/) && tdz[z].className.match(/windowbg/) && tdz[z-1].width=="4%" && tdz[z-1].className.match(/windowbg2/)){
var pic=tdz[z-2].getElementsByTagName("img")[0]
if(pic.src.match(source)){
var des=tdz[z].getElementsByTagName("font")[0].innerHTML
tdz[z].innerHTML="<font size='2'>"+text+" "+des
}}}}

ooo("locked.gif","Locked:"); //Delete this line if you do not want a locked prefix
ooo("sticky.gif","Sticky:"); //Delete this line if you do not want a sticky prefix
ooo("stickylock.gif","Sticky Lock:"); //Delete this line if you do not want a sticky lock prefix

//-->
</script>




In the line
ooo("locked.gif","Locked:");
you must replace
locked.gif
with the URL of the locked image (once again, just the last part of the URL)
You must replace the
Locked:
with the prefix that will appear before a locked subject.

You must do the same with the other two lines.
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