View Full Version : Require Tags to post ?
BigSlick
09-19-2009, 05:19 AM
Any possible way to require Tags be added by the OP before a post is submitted when starting a thread ?
Lynne
09-19-2009, 03:05 PM
In default vbulletin? No, there is no option to do this. I think you may have to write a plugin to check the field and if it is empty, give an error.
James Birkett
09-19-2009, 03:23 PM
Hook: newthread_start
PHP Code:
if(isset($_POST['sbutton']) && empty($_POST['taglist'])){
print "You must enter a tag in order to post your thread";
die();
}
bartek24m
01-29-2010, 11:48 AM
Hook: newthread_start
PHP Code:
if(isset($_POST['sbutton']) && empty($_POST['taglist'])){
print "You must enter a tag in order to post your thread";
die();
}
\
thank you !
how to do it with standard page layout ?
Lynne
01-29-2010, 01:35 PM
how to do it with standard page layout ?
What do you mean? Did you try the plugin he wrote? What was the result?
Digital Jedi
01-30-2010, 09:59 PM
There should be a mod around here that adds tags to thread automatically.
bartek24m
01-31-2010, 02:29 PM
\
thank you !
how to do it with standard page layout ?
i mean, show error with forum template error page.
when i add product i see information like that:
https://vborg.vbsupport.ru/external/2010/01/4.png
I would like to change white background in such way:
https://vborg.vbsupport.ru/external/2010/01/5.png
I think it's better
Lynne
01-31-2010, 03:03 PM
If you want it to show like in the second image, you would need to add the error to the $errors array. Do a search in your files for it (probably in functions_newpost.php) and you should find where the array gets built and pick a hook around there to use to add to it.
bartek24m
01-31-2010, 07:03 PM
i try to find out some solution but i affraid it's to difficult for me
could you show me how to replace the code in product to get any of error after do submit
Lynne
01-31-2010, 07:17 PM
If you need someone to write the code for you, you will have to post in the Modification Requests forum (either paid or unpaid).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.