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 ] Like topics in certain forums
Topic Started: Aug 13 2012, 03:04 PM (230 Views)
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Board Address: Not open yet
Board Software: Zetaboards
Description: Okay well, the like & dislike code is a code I'm interested in but I would like it to only apply to certain forum's since I run an RP board and I'm trying to add a Facebook type system. So basically is there a way to make this code only work in certain forums?

Code link:
http://resources.zetaboards.com/topic/5102190/
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
function addForum(forumID) {
if (!$('#nav a[href*="/forum/' + forumID + '"]').length) $('td.c_footicons a[onclick*="loadLikeData"]').remove();
}

addForum('FORUM_ID');
</script>
Place that below the code, it will remove the Like and Dislike buttons from all forums you don't enable it for. Edit the capitalized text as necessary and you may repeat that line to enable it for more forums. If you want to disable it for specific forums instead of enable it, remove the exclamation mark from the if statement.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Seems to work fine actually, thanks Cory
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
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