PDA

View Full Version : Limit sigs to one image


roundhost
05-29-2005, 10:12 AM
Hi there,

I would like to limit sigs to one image but i dont want a huge hack with loads of features i dont need in order to do so...how could i do this?

Regards,
RoundHost

Andreas
06-02-2005, 10:10 PM
Almost the same modification as here (https://vborg.vbsupport.ru/showpost.php?p=660908&postcount=2):

In profile.php find

if ($vboptions['maximages'] != 0)


ABOVE that ADD

if (fetch_character_count($signature, '[img') > 1)
{
$preview = 'true';
$errors[] = 'Sorry, but you are not allowed to use more then 1 image in your signature';
}