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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)