Welcome Guest [Log In] [Register]
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:
Multiquote (on) Multiquote (off)
Add Reply
Limiting number of images posted?
Topic Started: Jul 24 2014, 11:40 AM (327 Views)
sneakyfreaky
Member
[ *  * ]
Is there a way to set it just two as appose to the defaulted 5?

Offline Profile Quote Post Goto Top
 
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Go to ACP

Click on Board Settings at the top of the page. When that loads, click on Topics & Posts.

Midway down that page, look for:

Maximum images per post

It has a slider where you can choose how many images you want to allow to be used.
Offline Profile Quote Post Goto Top
 
sneakyfreaky
Member
[ *  * ]
Skyon Archer
Jul 24 2014, 12:04 PM
Go to ACP

Click on Board Settings at the top of the page. When that loads, click on Topics & Posts.

Midway down that page, look for:

Maximum images per post

It has a slider where you can choose how many images you want to allow to be used.






Oh I'm aware of that. I wanted to know if I can made it less then the defaulted 5 on Zetaboards? I want to limit to less then 5 if possible. Thanks.
Edited by sneakyfreaky, Jul 24 2014, 12:17 PM.
Offline Profile Quote Post 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">
$('#c_postbtn button').click(function(e) {
var amount = MAX_AMOUNT;
if ($('#c_post-text').val().split('[/img]').length - 1 > amount) {
e.preventDefault();
alert('You may only have up to ' + amount + ' images per-post');
}
});
</script>
Change MAX_AMOUNT to the maximum number of images you wish to allow.
Offline Profile Quote Post Goto Top
 
sneakyfreaky
Member
[ *  * ]
Cory
Jul 31 2014, 02:11 PM
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$('#c_postbtn button').click(function(e) {
var amount = MAX_AMOUNT;
if ($('#c_post-text').val().split('[/img]').length - 1 > amount) {
e.preventDefault();
alert('You may only have up to ' + amount + ' images per-post');
}
});
</script>
Change MAX_AMOUNT to the maximum number of images you wish to allow.








I tested it Cory and unfortunately it doesn't seem to work. Any further assistance with this code to make it work, would be appreciated. Thank you again :)
Edited by sneakyfreaky, Aug 4 2014, 12:48 AM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
What did you change MAX_AMOUNT to?
Offline Profile Quote Post Goto Top
 
sneakyfreaky
Member
[ *  * ]
Cory
Aug 12 2014, 09:25 PM
What did you change MAX_AMOUNT to?



2.



Edited by sneakyfreaky, Aug 13 2014, 01:38 AM.
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply