Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Tagging v 1.1

422422 Developer MVP
edited December 2011 in Vanilla 2.0 - 2.2

Looking for any threads on this, and difficult to find them, relating to the plugin itself. Also checked @Mark 's profile, and its not listed in there.

My question is: validation.

In class.tagging.php

line: 247
$Sender->Validation->AddValidationResult('Tags', 'You must specify at least one tag.');

Where can we enforce this, cannot do it in admin. Plus threads validate with no Tags. I wish to only allow theeads to be posted with MIN 2 tags added.

line: 253

$Sender->Validation->AddValidationResult('Tags', '@'.sprintf(T('You can only specify up to %s tags.'), $NumTagsMax));

Struggling to find where these can be set.
I note on line: 244
$NumTagsMax = C('Plugin.Tagging.Max', 5);

can we set this to Min ? and declare 2 ? also..

$NumTagsMax = C('Plugin.Tagging.Max', 5);
$NumTagsMin = C('Plugin.Tagging.Min', 2);

422 Real Estate Australia , now open Check it out

Sign In or Register to comment.