Previous Thread
Next Thread
Print Thread
Hop To
#163988 06/16/2004 5:49 PM
Joined: Jan 2004
Posts: 45
T
newbie
newbie
T Offline
Joined: Jan 2004
Posts: 45
I finally upgraded successfully to 6.7.1, but when I try to post more than 8 images, the post is rejected stating that no more than 8 images are allowed. In ubb_lib_posting.cgi, it has this:

Code
sub excess_smilies_check {
	my $smilie_count = () = $_[0] =~ /(<IMG.+?SRC)/gsi;
	if ($smilie_count > $vars_misc{'max_image_limit'}) {
		&StandardHTML("$vars_wordlets_err{excess_images}");
	} # end id
}    # end smilie check
I don't see a limit. Am I looking at the wrong file? I want the image maximum to be 15. This is probably answered elsewhwere, but I must be wording the search poorly, because I haven't found a post that helps. Thanks for any info.

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Charles isn't going to like me to give this answer <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> , but the most direct way to get this is to edit vars_misc manually.

q!max_image_limit! => q!8!,

change the 8 to 15


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
Actually, it's in ubb_lib.cgi, navaho

$vars_misc{'max_image_limit'} = 8; # hard coded

edit it there, and that should override the limit <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Joined: Jan 2004
Posts: 45
T
newbie
newbie
T Offline
Joined: Jan 2004
Posts: 45
Quote
$vars_misc{'max_image_limit'} = 8; # hard coded
So I add "=15"? Because right now there is no "=8" It is just: $vars_misc{'max_image_limit'})

Also, if I do add "=15" after the } do I use spaces as in your example and the semi colon? Thanks for your help David and Ron.

Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
Change the 8 to 15.

It's around line 102.

Joined: Jan 2004
Posts: 45
T
newbie
newbie
T Offline
Joined: Jan 2004
Posts: 45
Thanks very much, that did the trick. I saved the file "as is" first to guard against mishaps, then made a copy and changed the code and uploaded the copy. Thanks again <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
0 members (), 563 guests, and 80 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)