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 ] Guest block script for submenu
Topic Started: May 4 2012, 03:41 AM (269 Views)
Trinity76
Member Avatar
Member
[ *  * ]
Board Address: Private
Board Software: Zetaboards
Description: I would like to block guests from viewing blogs and board feed WITHOUT having to remove the links in my submenu with a script as I'm doing now. In other words, have the links function as the Members and Calendar links do when guests have to log in to post.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
(function ($) {
if (!$('#top_menu').length) {
var html = '<table cellspacing="0" id="error_box" style="margin: 10px 0"><thead><tr><th>Error:</th></tr></thead><tbody><tr class="generic"><td>Access Denied</td></tr></tbody></table>';

$('#blog').replaceWith(html);
$('#board_feed').parent('div.topic').replaceWith(html);
}
})(jQuery);
</script>
Offline Profile Goto Top
 
Trinity76
Member Avatar
Member
[ *  * ]
That works perfectly for the Board Feed, but I can still see the blogs.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Can I see a link to your board? Via PM will be fine.
Offline Profile Goto Top
 
Nivexonix
Member Avatar
Love
[ *  *  *  *  *  *  * ]
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