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:
Locked Topic
[ C ] Change "Posts" in post detail; to something else.
Topic Started: Feb 21 2010, 07:08 PM (370 Views)
Canimia
Member Avatar
Parachute? This is obviously a Hot Air Balloon!
[ *  *  * ]
Board Address: z7.invisionfree.com/CityofStrays
Type of Request: Simple Script
Description: I would like to change the word "Posts" in the post details to something else. Also, if it can be changed in the users' profiles, that would be cool, too. :D Thank you!
Offline Profile Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Try this:

Code:
 
<script type="text/javascript">
//<![CDATA[
$("dl.user_info dt:contains(Posts)").html('NEW POST NAME');
//]]>
</script>


EDIT: Nevermind missed the fact that it's Invisionfree, again >< .
Edited by Viral, Feb 21 2010, 07:35 PM.
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

InvisionFree, Viral. Try this instead:
Code:
 
<script type='text/javascript'>
var new_posts = "Submissions";

if (location.href.indexOf('showtopic') !== -1) {
var b = document.getElementsByTagName('span'), c = b.length;
while (c--) {
if (b[c].className === 'postdetails') {
b[c].innerHTML = b[c].innerHTML.replace(/Posts: ([\d,]+)/, new_posts + ': $1');
}
}
} else if (location.href.indexOf('showuser') !== -1) {
var b = document.getElementsByTagName('td'), c = b.length;
while (c--) {
if (b[c].innerHTML.indexOf('Posts') !== -1) {
b[c].innerHTML = b[c].innerHTML.replace('Posts', new_posts);
}
}
}
</script>
Place it in the footers of your board template. Change the word Submissions to whatever you want it to say. :)
Offline Profile Goto Top
 
Canimia
Member Avatar
Parachute? This is obviously a Hot Air Balloon!
[ *  *  * ]
That's perfect! Thank you so much for your help. :D
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
Completed!

Your code request has been completed.

Thank you for using our Member Request system here at Zathyus Networks Resources! If you have any questions regarding this topic, feel free to PM the code creator or post a new topic in the request forum. :)

Have a nice day!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic