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 ] A code to completely disable post count
Topic Started: Feb 22 2015, 05:06 PM (353 Views)
TESTINTHIS
Member
[ * ]
I need a code to completely disable post count. Not just keep them all at 0, but not show them anywhere at all. Not on users' posts or profile or anywhere at all.

I searched for a code to do this but I wasn't able to find it.

If anyone could find a way to do this it would be appreciated.

Thank you!! :)
Offline Profile Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Untested, but it should work. Add it below the board.

Code:
 
<script type="text/javascript">
$("dt:contains(Posts)").each(function(){$(this).add($(this).next()).hide();});
</script>


EDIT: `hide` instead of `remove` as its shorter, quicker and allows codes which rely on post count to still function...
Edited by Viral, Feb 22 2015, 07:29 PM.
Offline Profile Goto Top
 
TESTINTHIS
Member
[ * ]
Thanks so much! :) That code worked, the post count is hidden!

That did everything I wanted it to do so that would resolve my issue! Thanks again, Viral!
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
A more elegant solution
Code:
 
$("dt:contains(Posts)").hide().next().hide();
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
This works as well:
Code:
 
$('dt:contains(Posts)').next('dd').andSelf().hide();
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic