View Full Version : Images limited in signatures, but not posts
Smoothie
06-26-2002, 08:15 PM
Is there a way to limit the img tag to only one in the signature, but allow a different amount in posts. The img tag options in the admin cp only allow the same for both.
Xenon
06-26-2002, 08:26 PM
try that:
open newreply.php
and delete this code:
// check max images
if ($maximages!=0) {
$parsedmessage=bbcodeparse($message,$forumid,$allo wsmilie);
if (countchar($parsedmessage,"<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}
Smoothie
06-26-2002, 08:51 PM
This will eliminate the amount of images allowed in new reply, but what about editpost.php? And if I remove that code, controlling the amount of images using the img tag for signatures is still done in the admin cp? I know, not tested, but should work. ;)
Xenon
06-26-2002, 08:55 PM
controlling the ammount of sigimages is done in member.php
ok, you have to delete this code also in newthread.php and of course in editpost.php..
its always the same code to delete :)
of course: not tested, but should work. ;)
Smoothie
06-26-2002, 09:07 PM
controlling the ammount of sigimages is done in member.php I'm not sure I understand that. How would I allow just one img in signatures? I understand about deleting that code to remove the restrictions on images in posts.
Xenon
06-26-2002, 09:13 PM
well the ammount of images allowed can be set in the admin-cp.
but the signature is checked when a user edits his sig, and to do that he has to go to his user-cp, thats why the ammount of images in signature is checked in member.php
so if you want to allow 1 pic in the sig, got to your admincp set the amount of pictures allowed to one, then delete the checking code in newreply,newthread and editpost and bang thats what you want ;)
Smoothie
06-26-2002, 09:26 PM
Thanks Xenon! I'll give it a whirl.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.