We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Replace Post Detail Text With Javascript; By Seth
Topic Started: Jan 25 2010, 08:09 AM (117 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Seth
Replace Post Detail Text With Javascript
 
Many of you have asked how to change, for example, "Posts:" to "Gold:", or "Members" to "Agents". This JavaScript code should be placed in your board footer.

Quote:
 
<script type="text/javascript" language="JavaScript">
<!--
function change(item,item2) {
var range = document.body.createTextRange();
range.collapse(true);
if (location.href.indexOf("action=") != -1 ) {
return false;
} else {
while (range.findText(item)) {
range.text=item2;
range.collapse(false);
}
}
}

change("original text","new text");

// -->
</script>

NOTE: This code may not work (or produce errors) on some web browsers and/or operating systems.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply