Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2000
Posts: 837
Member
Member
Offline
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

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
So, you want me to put together an MHK for this one too CK? wink

Nice way to integrate it with another nice hack btw. smile

~Z

Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
you sure can if you want to Zackary.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Removed my MHK download link, since CK's is newer.

~Z

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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" wink

Anyway, it's a nice hack, I think 8 is low!

Sponsored Links
Joined: Jul 2000
Posts: 837
Member
Member
Offline
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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. smile

Other than that, it's fine, I think smile

Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
well that is a good point LK i did not think of that so i took it out.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)