php forum
php mysql forum
php mysql smarty
 
Topic Options
#144875 - 03/01/02 04:27 PM [6.2x] Image Limit 2.2 [ Finished ]
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
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 *
* http://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=33;t=000059 *
******************************************************************************

Download.txt

Download.mhk

Top
#144876 - 03/01/02 05:26 PM Re: [6.2x] Image Limit 2.2 [ Finished ]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
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

Top
#144877 - 03/01/02 08:00 PM Re: [6.2x] Image Limit 2.2 [ Finished ]
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
you sure can if you want to Zackary.

Top
#144878 - 03/02/02 09:37 AM Re: [6.2x] Image Limit 2.2 [ Finished ]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Removed my MHK download link, since CK's is newer.

~Z

Top
#144879 - 03/02/02 10:30 AM Re: [6.2x] Image Limit 2.2 [ Finished ]
LK Offline
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" wink

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
#144880 - 03/02/02 03:24 PM Re: [6.2x] Image Limit 2.2 [ Finished ]
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
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?

Top
#144881 - 03/04/02 10:45 AM Re: [6.2x] Image Limit 2.2 [ Finished ]
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
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
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#144882 - 03/04/02 12:11 PM Re: [6.2x] Image Limit 2.2 [ Finished ]
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
well that is a good point LK i did not think of that so i took it out.

Top


Who's Online
0 registered (), 27 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
Today at 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
Yesterday at 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks