Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic Tagger From Message Content and Title Details »»
Automatic Tagger From Message Content and Title
Version: 4.4.0, by NLP-er NLP-er is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 01-23-2010 Last Update: Never Installs: 1052
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

VERSION 4.4.0 RELEASED - prepare for real revolution in tags!

What this mod do:
Each time new message arrives (as totally new or reply) this mod will automatically add tags according to message content, title and existing tags in forum. It will also automatically add new tags to old messages.

NOTE: at this moment it adds tags only to threads, but in next releases it will support also other taggable content
This is version for vB4 of this great mod: Tagger for vB3.8

In details:
It will add only tags which already exists in your forum if it will be included in your post title or content.

It works simple - if title or content includes tag word, then tag will be added to this thread.
Simple and fast. And also have lot of sophisticated functionalities - see below

In more details :
I.e. if you already have in forum such tags as autohypnosis, hypnosis, nlp, and submodalities. Now someone will write post like this (as reply or new thread):

Title: Hello NLP fans
Content: I like to use autohypnosis!

So this mod will automatically add for thread where post is written such tags: autohypnosis, nlp

nlp - cause it is in title; autohypnosis - cause it is in content

hypnosis is included in word autohypnosis, but this mod is smart enough to see that there is no separate word hypnosis neither in title nor in content - so it is not added
submodalities and any other existing tag is not added here, cause it is not included either in content or title of new post.

In more details with sophisticated functionalities :
Also this mod will add tags propositions for each word existing in post title which is not a tag yet. So for this example 2 tags propositions will be added: hello and fans.
You can approve tags propositions manually or set quarantine time after which propositions will automaticaly change to tags.

This mod allows you to define related words for each tag. It means that now tag word don't have to be included in post - it is enough if any of related words is included to add tag :up:
I.e. if you have tag cat then you can define for it related words like: cats,kitty,kitties,lion,tiger. Now if any of those words appears in post then tag cat will be added

This is really great if you want have tag added no matter does word will be used singular or plural, or in which time it will be or maybe in your language you have to inflect words. Like in Polish we have: krowa, krowy, krowie, krową - for same word krowa. Now no matter how is inflected tag word in post and no matter in which language is your forum - this mod will appropriately add this tag!

You can also use this functionality to define tag packs. I.e. I want that every time when someone is writing about hypnosis or trans, booth hypnosis and trans tags to be added. In such case I simply define trans as related word for hypnosis tag and hypnosis as related word for trans tag

This mod also allows you to set default tags for forum. So each new and old thread in forum will be tagged by those tags It could be very useful - for example I have forum with good news and I want each thread in this forum to be tagged by newspaper, and news - so I simply write it in forum configuration and mod cares about everything! Is it great or just amazing?

Also with this mod You can just click one link in menu and it will add tags to all already existing threads. So If you was happy that now all new posts will be properly tagged, I have great news for you - now all threads will be properly tagged - even old one

Also every day this mod will automatically check does some new tags appears and in such case it will add new tags to all already existing threads which includes this keyword in content or title. So now not only all threads will be properly tagged for moment when you use functionality described above. It will keep all tags in all threads up to date continuously



Features:
  • Automatically adds tags to new posts/threads according to content, title and already existing tags in forum.
  • Allows you to set default tags for forum and will create those tags if don't exists
  • Tags related words functionality
  • Automatically creates tags propositions according to posts titles for words which are not tags yet
  • Configurable creation tags proposition (on/off)
  • Configurable quarantine time for tags propositions - after this time propositins will be automatically changed to tags (can be dissabled)
  • Allows manually approve and disapprove tags propositions
  • Respects tag min and max length settings when creates tags propositions
  • Configurable set of ignored words during tags propositions creation
  • Allows you to create tags propositions from all posts titles
  • You can configure this mod to work only for new threads, or for each post - even replies.
  • Sophisticated keyword searching (will not add as tags words included in other words)
  • Configurable words separators for sophisticated searching
  • Automatically adds new tags to old threads (daily)
  • Allows you to add tags to all threads
  • Allows you to clear all tags associations to threads
  • Gives you alias to Tags form, so you can easy manage them
  • Gives you alias to Forum Manager form, so you can easily set default tags for forum
  • Creates new tags if defined ad default tags for forum and not exists
  • Allows you to add new tag and related words in one step.
  • You can configure, to how many threads should be added tags, per one page of execution of "Add tags to all threads" task
  • Respects Maximum Tags per Thread setting
  • Gives you alias to set native vBulletin Maximum Tags per Thread setting in one menu with other settings of this mod
  • Version checking supported
And commercial :
It is very useful for everyone who wants to keep an eye on tags, and doesn't want just each word from title automatically added.

So with this mod you know that only valuable tags are automatically added.

In some languages (like mine - Polish) same word is different according to whole sentence - i.e. in English is just cow and cows - in Polish we have: krowa, krowy, krowie, krową... And I didn't want all of those to make garbage of my tags, so I was not able to mod which was just adding every word which appears in title - it was too weak for me. I really wan to have only valuable tags ant that’s why I created this mod
Also with this mod thanks to related words functionality I'm sure that tag will be added no matter in which person, time or quantity the tag word is used in post! And also allows me to create groups of related tags!

When I wrote post I just to add tags myself, but also had to do this for other users who just add post and doesn't care about tags.
You know that? Now this mod will do it for you and also you will forget about tags writing, because after some time in most forums new tags are very rare, and mostly are used tags which already exist.

It was very important for me to have such solution and I want to share Enjoy!

Version History:
4.4.0 Version supporting vB4
Earlier For earlier version history see here: Tagger for vB3.8

Installation:
1. Download
zip file from here (download last release - see index at the end of file name - nothing more - other files are only history)
2. Upload
to your forum directory everything what is included in upload directory
3. Import
in vB Admin CP -> Plugins & Products -> Manage Products -> Add/Import Product -> Choose product file, set Allow Overwrite to yes and click Import
4. Click : "Mark as Installed" Thanks!
5. (Optional) Customize settings
in Admin CP -> Thread Tagger -> Options
6. (Optional) Define default tags for forums
in Admin CP -> Thread Tagger -> Forum Manager choose forum and find Automatic Thread Tagger From Post Content and Title settings (see screenshots)
7. (Optional) Define tag related words
see Thread Tagger menu. Can be done in any time and in parts.
8. (Optional) Clear all tags assotiations
see Thread Tagger menu.
9. (Optional) Add tags to old threads
Admin CP -> Thread Tagger -> Add Tags To All Threads (NOTE: if you want to do this it is advised to make clean-up in your tags, especially if you had other - the old tag adder which was adding every word from title and probably already made a garbage in your tags)

Download Now

File Type: zip autotaggerfromcontentandtitle440.zip (16.9 KB, 6018 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Naijasite

Comments
  #452  
Old 01-18-2015, 12:01 AM
MistViper MistViper is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh... I've been dragging them into the forum folder under public_html... If this is the mistake I'm so stupid haha Thanks Ozzy. <3
Reply With Quote
  #453  
Old 01-18-2015, 12:04 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well if your vB files are in a forum folder, then that is where you need to load the files to, the same place all your vBulletin files are.
Reply With Quote
  #454  
Old 04-03-2015, 04:28 AM
mdawg's Avatar
mdawg mdawg is offline
 
Join Date: Mar 2009
Location: United States
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about making this for vb 5 - vb5 is the wave of the future!

I was stuck in vb3 for years but now that I've upgraded to vb5 over all I am glad I made the move.
Reply With Quote
  #455  
Old 05-01-2015, 10:25 AM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

below is the stop list format

Quote:
a,about,above,across,after,again,against,all,almos t,alone,along,already,also,although,always,among,a n,and,another,any,anybody,anyone,anything,anywhere ,are,area,areas,around,as,ask,asked,asking,asks,at ,away,b,back,backed,backing,backs,be,became,becaus e,become,becomes,been,before,began,behind,being,be ings,best,better,between,big,both,but,by,c,came,ca n,cannot,case,cases,certain,certainly,clear,clearl y,come,could,d,did,differ,different,differently,do ,does,done,down,down,downed,downing,downs,during,e ,each,early,either,end,ended,ending,ends,enough,ev en,evenly,ever,every,everybody,everyone,everything ,everywhere,f,face,faces,fact,facts,far,felt,few,f ind,finds,first,for,four,from,full,fully,further,f urthered,furthering,furthers,g,gave,general,genera lly,get,gets,give,given,gives,go,going,good,goods, got,great,greater,greatest,group,grouped,grouping, groups,h,had,has,have,having,he,her,here,herself,h igh,high,high,higher,highest,him,himself,his,how,h owever,i,if,important,in,interest,interested,inter esting,interests,into,is,it,its,itself,j,just,k,ke ep,keeps,kind,knew,know,known,knows,l,large,largel y,last,later,latest,least,less,let,lets,like,likel y,long,longer,longest,m,made,make,making,man,many, may,me,member,members,men,might,more,most,mostly,m r,mrs,much,must,my,myself,n,necessary,need,needed, needing,needs,never,new,new,newer,newest,next,no,n obody,non,noone,not,nothing,now,nowhere,number,num bers,o,of,off,often,old,older,oldest,on,once,one,o nly,open,opened,opening,opens,or,order,ordered,ord ering,orders,other,others,our,out,over,p,part,part ed,parting,parts,per,perhaps,place,places,point,po inted,pointing,points,possible,present,presented,p resenting,presents,problem,problems,put,puts,q,qui te,r,rather,really,right,right,room,rooms,s,said,s ame,saw,say,says,second,seconds,see,seem,seemed,se eming,seems,sees,several,shall,she,should,show,sho wed,showing,shows,side,sides,since,small,smaller,s mallest,so,some,somebody,someone,something,somewhe re,state,states,still,still,such,sure,t,take,taken ,than,that,the,their,them,then,there,therefore,the se,they,thing,things,think,thinks,this,those,thoug h,thought,thoughts,three,through,thus,to,today,tog ether,too,took,toward,turn,turned,turning,turns,tw o,u,under,until,up,upon,us,use,used,uses,v,very,w, want,wanted,wanting,wants,was,way,ways,we,well,wel ls,went,were,what,when,where,whether,which,while,w ho,whole,whose,why,will,with,within,without,work,w orked,working,works,would,x,y,year,years,yet,you,y oung,younger,youngest,your,yours,z
Reply With Quote
  #456  
Old 10-08-2015, 08:26 AM
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Location: Karachi, Pakistan
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am facing db error after enable it
Reply With Quote
  #457  
Old 10-08-2015, 09:15 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to post the full error, no one can guess the error you got.
Reply With Quote
  #458  
Old 10-15-2015, 08:09 AM
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Location: Karachi, Pakistan
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
You need to post the full error, no one can guess the error you got.
Ok Ozzy i'll post the error soon
Reply With Quote
  #459  
Old 08-07-2016, 01:41 AM
Talk Hard Talk Hard is offline
 
Join Date: Jul 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My forum has 600,000 posts and I keep getting this.

504 Gateway Time-out

nginx/1.4.1

Want all the old stuff tagged. Is is running still in the background? Or does it start where it left off from the timeout.?

Unreal on new threads. you are a mad scientist
Reply With Quote
  #460  
Old 05-12-2017, 02:30 AM
mdawg's Avatar
mdawg mdawg is offline
 
Join Date: Mar 2009
Location: United States
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod will not work with vb 4.2.5 IF running php 7. It will work under PhP 5.6

If you try to make an advanced reply while running this mod, or post a brand new thread, while running PhP 7, you will get an error such as this:

Call to undefined function split() on line 85 in /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php
#0 /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php(113): csvToArray('forum, made, po...')
#1 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809) : eval()'d code(3): addTags(Array, Array)
#2 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809): eval()
#3 /home/*****/public_html/*****.com/forums/newreply.php(451): build_new_post('reply', Array, Array, Array, Array, Array)
#4 {main}

NOW - the strange thing is, after you get the above errors, which appear on a new browser window, the advanced reply or new thread IS posted, just the process is interrupted by this error message.

BUT: running in PhP 5.6, the autotagger does add the "Tags for this Thread."
Running in PhP 7, NO tags are added.
Reply With Quote
  #461  
Old 05-15-2017, 08:39 PM
Rhodium Rhodium is offline
 
Join Date: Apr 2016
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mdawg View Post
This mod will not work with vb 4.2.5 IF running php 7. It will work under PhP 5.6


If you try to make an advanced reply while running this mod, or post a brand new thread, while running PhP 7, you will get an error such as this:

Call to undefined function split() on line 85 in /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php
#0 /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php(113): csvToArray('forum, made, po...')
#1 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809) : eval()'d code(3): addTags(Array, Array)
#2 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809): eval()
#3 /home/*****/public_html/*****.com/forums/newreply.php(451): build_new_post('reply', Array, Array, Array, Array, Array)
#4 {main}

NOW - the strange thing is, after you get the above errors, which appear on a new browser window, the advanced reply or new thread IS posted, just the process is interrupted by this error message.

BUT: running in PhP 5.6, the autotagger does add the "Tags for this Thread."
Running in PhP 7, NO tags are added.
Try changing in functions_autotaggerfromcontentandtitle.php

(line 85)
Code:
      return implode(',', $csv);
to

Code:
      return explode(',', $csv);
and

(line 13)
Code:
  return implode(' ', $text);
to

Code:
  return explode(' ', $text);
Attached Files
File Type: php functions_autotaggerfromcontentandtitle.php (11.1 KB, 13 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05884 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete