 |
 |
 |
 |
#144879 - 03/02/02 10:30 AM
Re: [6.2x] Image Limit 2.2 [ Finished ]
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
My suggestions: - Make the CP Modaddon part NAME => "Image Limit".
- Either:
1. Instead of: </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if ($smilie_count > $max_smilies) { &StandardHTML("$vars_wordlets_err{excess_images} $vars_modifications{image_limit}."); }</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Use: </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> if ($smilie_count > $max_smilies) { &StandardHTML("$vars_wordlets_mods{excess_images} $vars_modifications{image_limit}."); }</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">And then add a new Modification Wordlet 'excess_images', or: 2. Add a new RegField to cp_modaddon.cgi with that 'Wordlet'. For example: </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> [ "RegField", "Number of images allowed per post", "image_limit", "yes", "2", "2", "This is the allowed limit of images in one post.", "$vars_modifications{image_limit}" ], [ "RegField", "Wordlet™ for users that passed the images limit", "image_wordlet", "yes", "2", "2", "", "$vars_modifications{image_wordlet}" ] </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">And before: $vars_modifications{image_wordlet} = "We cannot..............." unless $vars_modifications{image_wordlet}; - You said "cp_modaddon.pl"
Anyway, it's a nice hack, I think 8 is low!
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|