Set a limit for the number of images in the signature
Set a limit for the number of images in the signature
Set a limit for the number of images in the signature |
This tutorial works for all the Forumotion versions, including the newest ModernBB and AwesomeBBBETA With this tutorial, we will be able to limit the number of images allowed in the signatures of our users, in order to avoid them to have an excessively long signature. If a user tries to save a signature having more images than allowed, this message will show up to him: ![]() 2. Javascript code: We will add the following code in ACP ![]() ![]() ![]()
We may edit the variables NUM_MAX_IMAGENES with the number of images allowed, and TEXTO_ERROR with the text that will return if more images than allowed are posted (we don't have to add the number of images allowed here as the script itself will do it automatically. 3. Customizing the returning error: We can also edit the style of the returning error. We will have to go to ACP ![]() ![]() ![]()
We can apply the CSS rules we want to the error_max_images identifier in order to customize the style of the error message. |
This tutorial was written by @JoEl-jr for the Spanish support forum of Forumotion and translated by @mpelmmc. |
mpelmmc- Helper
-
Posts : 1087
Reputation : 170
Language : English and Spanish

» Limit on Images in Signature
» Limit on the number of groups
» What is the Limit on the number of smilies i can upload ?
» How to limit number of posts per user a day?
» Limit Number of Dice Rolls
» Limit on the number of groups
» What is the Limit on the number of smilies i can upload ?
» How to limit number of posts per user a day?
» Limit Number of Dice Rolls
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum