Post by SubDevo on Sept 3, 2009 2:58:50 GMT -5
Replace/Remove Any Titles by SubDevo
Tested in IE, FF, Opera and Safari
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! Now, I haven't tried it, but I'm sure you could also use embed tags. That means sound and video! Let me know if you try this!
Enjoy!!!
SubDevo
Variable Description:
Do not touch the lines in Red! Do not remove or put any additional text on those lines!
Edit the Yellow 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' alt='Quick Reply' />"
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!".
Still don't know what I mean? Scroll down and look at MY signature!
Location: Global Footer
Tested in IE, FF, Opera and Safari
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! Now, I haven't tried it, but I'm sure you could also use embed tags. That means sound and video! Let me know if you try this!
Enjoy!!!
SubDevo
Variable Description:
Do not touch the lines in Red! Do not remove or put any additional text on those lines!
Edit the Yellow 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' alt='Quick Reply' />"
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!".
Still don't know what I mean? Scroll down and look at MY signature!
Location: Global Footer
<script type="text/javascript">
<!--
/* Replace/Remove Any Titles by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */
var n=[
["Topics","Threads"],
["Posts","Posts"]
];
var tn=document.getElementsByTagName("b");
if(!(location.href.match(/headersfooters/)||document.postForm)){
for(x=0;x<tn.length;x++){
for(i=0;i<n.length;i++){if(tn[x].innerHTML==n[i][0]){tn[x].innerHTML=n[i][1];break;}}
}}
//-->
</script>