|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
DESCRIPTION: Let admin set the limit of images allowed in a post. ****************************************************************************** * REQUIREMENTS: Please install Mod CP Addon hack prior to install * * get Mod CP Addon from * * https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=33;t=000059 * ****************************************************************************** Download.txt Download.mhk
|
|
|
|
Joined: Mar 2001
Posts: 644
Member
|
Member
Joined: Mar 2001
Posts: 644 |
So, you want me to put together an MHK for this one too CK? Nice way to integrate it with another nice hack btw. ~Z
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
you sure can if you want to Zackary.
|
|
|
|
Joined: Mar 2001
Posts: 644
Member
|
Member
Joined: Mar 2001
Posts: 644 |
Removed my MHK download link, since CK's is newer.
~Z
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
My suggestions: - Make the CP Modaddon part NAME => "Image Limit".
- Either:
1. Instead of: quote: if ($smilie_count > $max_smilies) { &StandardHTML("$vars_wordlets_err{excess_images} $vars_modifications{image_limit}."); }
Use: quote: if ($smilie_count > $max_smilies) { &StandardHTML("$vars_wordlets_mods{excess_images} $vars_modifications{image_limit}."); }
And then add a new Modification Wordlet 'excess_images', or: 2. Add a new RegField to cp_modaddon.cgi with that 'Wordlet'. For example: quote: [ "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}" ]
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!
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
ok LK i made them changes but now i got a wordlet that is not being used do you think i should tell them to take it out or just let it be?
oh yeah can you edit your post to make it smaller thanks?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
No, no need to remove it from Error Wordlets... It might make people upload an old Wordlet file without the translation because that's what they have on the HDD. Other than that, it's fine, I think 
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
well that is a good point LK i did not think of that so i took it out.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|