Post by SubDevo on Sept 3, 2009 23:42:01 GMT -8
Replace/Remove Any Titles by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.
This small, flexible code allows you to replace any text that is bold with just about anything!
Replace your chosen text with another word, image, variable or HTML!
This code looks for text inside of bold tags not font tags.
So just about any words you see that are bold on your forum can be replaced with this code.
Examples of "normal" words/titles you can replace:
Forum Name, Topics, Posts, Started by, Replies, Views, Last Post, Subject,
Sub-Boards, Author, Users Online, Active Users In The Past 24 Hours.
Now these are "special".
Quick Reply, Info Center, Forum Statistics
For any of these, if you set the replacement to "",
it will remove/hide that row. Nice... Or, you can just rename them.
You can also replace the titles with just about any HTML!
This means you can use tables, images and embed codes (video, flash and widgets)!
Enjoy!!!
SubDevo
Variable Description:
Do not touch the lines in Red! Do not remove or put any additional text on those lines!
Edit the Maroon portions:
var n=[
["Topics","Threads"],
["Posts","Posts"]
];
Enter the EXACT word to replace in the first part. It IS case sensitive.
Enter the replacement in the second part.
Add more lines by copying and pasting the previous line.
Make sure there is a comma at the end of each line except for the last one.
Notice the LAST line in the list, does NOT have a comma at the end.
Extras!
Replace text with an image:
"<img src='URL TO IMAGE' border='0' />"
Tip: Replace your board/category/Info Center/Quick Reply titles with an image using this method!
Replace with text and color/style it:
"<span style='color: #FF0000;'>Threads</span>"
If you know CSS, you can put just about any style tag in here!
Replace with a "variable".
Make sure there are NO quotes around a variable name.
Example:
["-ME-",pb_displayname]
Put "-ME-" in a post/custom title/signature, put bold tags around it.
When your post is viewed, it will be replaced by the name of the member who is viewing it!
Imagine a signature like... "Hey [b]-ME-[/b]! Click my Freaking Signature!".
Location: Global Footer
<script type="text/javascript">
/* Replace/Remove Any Titles by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var n=[
["Topics","Threads"],
["Posts","Posts"]
];
if(!(/headersfooters/.test(pb_action)||document.postForm)){
var tn=document.getElementsByTagName("b"),i,n,x=-1;
while(tn[++x]){i=-1;
while(n[++i]){if(tn[x].innerHTML==n[0]){tn[x].innerHTML=n[1];break;}}
}}
</script>
EDIT1:
Made the code a little smaller...
Tested in IE, FF, Opera, Safari and Chrome.
This small, flexible code allows you to replace any text that is bold with just about anything!
Replace your chosen text with another word, image, variable or HTML!
This code looks for text inside of bold tags not font tags.
So just about any words you see that are bold on your forum can be replaced with this code.
Examples of "normal" words/titles you can replace:
Forum Name, Topics, Posts, Started by, Replies, Views, Last Post, Subject,
Sub-Boards, Author, Users Online, Active Users In The Past 24 Hours.
Now these are "special".
Quick Reply, Info Center, Forum Statistics
For any of these, if you set the replacement to "",
it will remove/hide that row. Nice... Or, you can just rename them.
You can also replace the titles with just about any HTML!
This means you can use tables, images and embed codes (video, flash and widgets)!
Enjoy!!!
SubDevo
Variable Description:
Do not touch the lines in Red! Do not remove or put any additional text on those lines!
Edit the Maroon portions:
var n=[
["Topics","Threads"],
["Posts","Posts"]
];
Enter the EXACT word to replace in the first part. It IS case sensitive.
Enter the replacement in the second part.
Add more lines by copying and pasting the previous line.
Make sure there is a comma at the end of each line except for the last one.
Notice the LAST line in the list, does NOT have a comma at the end.
Extras!
Replace text with an image:
"<img src='URL TO IMAGE' border='0' />"
Tip: Replace your board/category/Info Center/Quick Reply titles with an image using this method!
Replace with text and color/style it:
"<span style='color: #FF0000;'>Threads</span>"
If you know CSS, you can put just about any style tag in here!
Replace with a "variable".
Make sure there are NO quotes around a variable name.
Example:
["-ME-",pb_displayname]
Put "-ME-" in a post/custom title/signature, put bold tags around it.
When your post is viewed, it will be replaced by the name of the member who is viewing it!
Imagine a signature like... "Hey [b]-ME-[/b]! Click my Freaking Signature!".
Location: Global Footer
<script type="text/javascript">
/* Replace/Remove Any Titles by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var n=[
["Topics","Threads"],
["Posts","Posts"]
];
if(!(/headersfooters/.test(pb_action)||document.postForm)){
var tn=document.getElementsByTagName("b"),i,n,x=-1;
while(tn[++x]){i=-1;
while(n[++i]){if(tn[x].innerHTML==n[0]){tn[x].innerHTML=n[1];break;}}
}}
</script>
EDIT1:
Made the code a little smaller...