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 ] Turning Blogging on/off
Topic Started: Jan 16 2015, 03:38 PM (198 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
Private
Is it possible to turn off and on blogging for some members? I plan on putting an item in my forum shop, that says "Blog Access". Is it possible to have a profile field only admin edit, that allows this? Can all members be default off?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Best you can do with JavaScript is hide/remove the content, but if a user were to disable JavaScript they could bypass it.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
It doesn't matter. Is anyone willing to code it? o_o
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Should every aspect of blogs be hidden by default, or just the settings that enable you to start a blog?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Just the settings that enable you to start a blog.
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() {
$('div.meta_menu li:has(a[href*="/home/?c=39"]), #blog_settings').hide();
$('#blog_settings').after('<table cellspacing="0" id="blog-error_box"><thead><tr><th>Error:</th></tr></thead><tbody><tr class="generic"><td>Blog settings are not available for your account</td></tr></tbody></table>');

var SFMember = [MEMBER_ID, MEMBER_ID, MEMBER_ID];

for (i = 0; i < SFMember.length; i++) {
if ($.zb.stat.mid === SFMember[i]) {
$('div.meta_menu li:has(a[href*="/home/?c=39"]), #blog_settings').show();
$('#blog-error_box').hide();
}
}
});
</script>
Change MEMBER_ID as necessary to the members user ID that you wish to allow the use of Blog Settings. You can insert as few or as many member ID's as you like.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Thanks! :D Mods can close this
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

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