Hi,
first of all I like to say thank you for this amazing Plugin. It is one of the best Wordpress-Plugins and definitely the best Gallery-Plugin out there.
I have two questions. The first is a quick-one. How can I limit the characters used in a textfield of a custom-field? I created a custom-field "Description" and I would like to limit the characters used here. I guess I must insert the limitation in bwbps-uploadform.php somewhere around line 1230, but I can`t get it to work.... .
The second qustion is about the limitation of uploads per user to a gallery. I've read your posting in the forum:
To accomplish this, you'd need to extend the galleries table to include a setting for max_images_byuser. 0 would = unlimited and be the default. Database extensions are done in admin/bwbps-init.php
Then, probably in the bwbps-uploadform.php file somewhere, you'd need to check if gallery['max_images_byuser'] > 0 then how many images does the user have uploaded for tht gallery? If >= gallery['max_images_byuser'] then put a message in the form "You have already uploaded your alloted limit of images to this gallery." Else, get the normal form.
Then in ajax_upload.php, you should do the check again and bomb out if they've hit the limit.
I like to use photosmash for a contest and it would be essentiell, that every contestant can only upload one image per gallery. Since I am not the greatest expert (actually I'm no expert at all) with php, this is a bit heavy for me. Does anyone maybe have tried this and has some more information/code on this?
Thank you very much!
resolved