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 ] restricted bbcode image
Topic Started: Sep 25 2017, 09:59 PM (163 Views)
tisha79
Member
[ * ]
Board Address: (Link to your board) private
Board Software: (ZetaBoards or zIFBoards) ZB
Description: (What you want your code to do)

I want a code disable bbcode image from guests and still allow members to use bbcode image.
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">
if ($.zb.logged_in === false) {
$('table.posting').closest('form').submit(function(e) {
if ($('#c_post-text').val().indexOf('[img]') !== -1 || $('#c_post-text').val().indexOf('[IMG]') !== -1) {
e.preventDefault();
alert('Guests are not allowed to post images.');
}
});
}
</script>
Offline Profile Goto Top
 
tisha79
Member
[ * ]
Cory
Oct 12 2017, 06:00 PM
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if ($.zb.logged_in === false) {
$('table.posting').closest('form').submit(function(e) {
if ($('#c_post-text').val().indexOf('[img]') !== -1 || $('#c_post-text').val().indexOf('[IMG]') !== -1) {
e.preventDefault();
alert('Guests are not allowed to post images.');
}
});
}
</script>
Thank You!

👍
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

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