vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Tags Required (https://vborg.vbsupport.ru/showthread.php?t=263396)

Pedro Abelino 05-09-2011 10:00 PM

Tags Required
 
1 Attachment(s)
This mod, show a alert box when someone try to create a thread without put tags.

Just search on clientscript/vbulletin_textedit.js

Code:

vB_Text_Editor.prototype.prepare_submit = function(subjecttext, minchars)
{
    var returnValue;

and below add:
Code:

    if (document.vbform.taglist.value == "") {
        alert("Tags Required please add some tags");
        return false;
    }

Thats all

:D

TBforums 05-10-2011 01:42 PM

I think installing the mod that automatically inserts the correct tags would be more suitable instead of forcing members to manually insert tags. It could get annoying for your members.

Videx 05-13-2011 06:55 PM

Annoying is the word! My members would just quickly learn to type a space or a nonsense phrase in there, so what I would end up with would be worse than no tags at all.

kalilo81 01-13-2013 12:26 AM

I need this
can I exclude some forums?

slinky 10-03-2013 09:29 AM

It's too bad that this no longer works. I believe the text editor was changed after this and works differently.

pablodip 08-04-2014 01:18 AM

vb 4.2.2?

ozzy47 08-04-2014 01:21 AM

Doubtful, the editor changed, after this mod was posted.

ozzy47 08-04-2014 11:29 PM

For anyone wishing to use this sort of mod, I did one here:

vB4.x https://vborg.vbsupport.ru/showthread.php?t=313456

vB3.8.x https://vborg.vbsupport.ru/showthread.php?t=313455

vB3.7.x https://vborg.vbsupport.ru/showthread.php?t=313454

vB3.6.x https://vborg.vbsupport.ru/showthread.php?t=313453


All times are GMT. The time now is 05:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete