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

Reply
 
Thread Tools
Automatic Thread Tagger Details »»
Automatic Thread Tagger
Version: 1.2.0, by Phalynx Phalynx is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 07-15-2008 Last Update: 01-08-2009 Installs: 841
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Automatic Thread Tagger


Description
When a user submits a new thread this modification will automatically take keywords from the thread title and use these as tags. You can use Automatic Thread Tagger to propose the user AJAX tags for his new thread, or it assigns new tags after saving the new thread. It can add the translated thread prefix to the tags.
Additionally, you can tag existing threads via maintenance and also scheduled tasks.

This modification is a successor to the terminated Automatic Thread Tagger by MrEyes:
https://vborg.vbsupport.ru/showthread.php?t=179927

As an example, if a user submits a thread with a title of:
"Fish Food for Cats!"

The thread will be automatically tagged with:

- Fish
- Food
- Cats

If the user also submits an actual tag of "Fish" this will not be duplicated. Any rules you have setup for tagging will be respected.
If you choose to do so this product will also automatically tag threads created by incoming RSS feeds.

Demo
I cannot show you the process of creation, but here is a list of tags generated by Auto Thread Tagger:
http://www.insideearth.net/tags.php?langid=5
http://www.insidesupcom.de/tags.php?langid=1


Automatic Tagging of existing threads
You can tag existing threads via maintenance or scheduled task/cron. They will be created with a special flag so they can be easily identified and deleted. Manual assigned tags are not touched. Maintenance is also working if Automatic Tagging is disabled via settings. Great if you want to test some settings. Automatic Tagging will take the date of the thread creation and also the userid of the creator. This process can be automated by running a scheduled job once a night.

Please keep in mind that tags that were proposed via AJAX are not tagged as auto tagged and therefore cannot be identified as such (and therefore not deleted automatically). If you want to retain the auto tagged flag you should disable AJAX and enable the tagging after the thread has been saved. As an alternative way you can also disable this and let new threads be tagged in the night from the scheduled job.


Installation / Upgrade
1. Upload all files from "upload" to your server, take care of the directory structure
2. Import "product-auto_thread_tagger110.xml" as a product, overwrite if it's already installed
3. Check settings
4. Run maintenance / Auto Tag Threads to tag existing threads (needed if you want to use the cron)

After install, and by default the modification is disabled, this will allow you to play around with configuration before switching it on.


Troubleshooting
If you report a bug please post the thread title that created it, without this I cannot test it and improve the language parsers.

* If no threads are tagged you will have to check the following:
- Is the modification enabled? Is the action you are testing enabled? (vBulletin tagging, whole auto thread tagger system, AJAX, new threads)
- Are the words you are using badwords or filtered out?

* Cron/Scheduled Task is not tagging all threads.
- The cron is limited to 500 (you can change this via settings) threads per run to avoid heavy impact on server. Make sure you run maintenance auto tagger before this to tag old threads. You can check the scheduled tasks log to see if it is running correctly.
Important: If a thread title does not meet minimum requirements to be included in tags (f.e. one word thread titles, too short words), it will be forever in this queue.

* I'm using polish, arabic, turkish, etc.. language and the tagger is not working like it should.
- If not already replaced, replace the filter replacement '&'=>'and' with ' & '=>'and' (a space before and after &)



Todo
What comes next? You decide. Tell me what you are missing and I'll look if it can be integrated.


Why thread title and not thread text?
Parsing the thread text for tags is an extremely unlikely addition as this would require some fairly heavy processing to ensure quality of tags.


What are Stopwords?
Stopwords is the name given to words which are filtered out prior to processing of tags.
The user Hostboard on vBulletin.org posted some resources regardings this:
https://vborg.vbsupport.ru/showpost....&postcount=380



History
1.2.0, 9th August 2008
- Fixed error with missing threadid's
- Fixed error with AJAX and prefix
- Fixed error with not indexing tags via cron
- Added polish, spain, english stopwords
- Compatibel with vBulletin 3.8

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #502  
Old 11-26-2008, 04:33 AM
Rik Brown's Avatar
Rik Brown Rik Brown is offline
 
Join Date: Nov 2005
Location: St. Louis, Missouri, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ddaybofb View Post
NVM Figured out how to get it work



I get this error when importing xml file:
"The following dependencies were not met:

1. This product is not compatible with version 3.8.0 Beta 3 of vBulletin. (Compatible starting with 3.7.0 / Incompatible with 3.7.99 and greater)"
I'm guessing that since I installed this before upgrading to the 3.8.0 beta, I'm not getting any such error message. All the same, its creating the all the tags fine as far as I can tell. I'm wondering if Phalynx put that error message in there as a precaution in case there were any changes to the vb database schema in successive releases of vb.

-- Rik
Reply With Quote
  #503  
Old 11-26-2008, 11:56 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

go into the xml and change the 3.7.99 to 3.8.1 and it should work OK.
Reply With Quote
  #504  
Old 11-28-2008, 11:21 AM
sherwood sherwood is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that does work to allow you to install it but there in no admincp options to change :S

any idea why?
Reply With Quote
  #505  
Old 11-29-2008, 04:48 PM
ericdesmontagne ericdesmontagne is offline
 
Join Date: Mar 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even if cron task is well activated, old discussions without any tag are not automatically tagged. Do you know why ?
Thankyou for your good job.
vB 3.7.4 PL1
Last version of Autotag
Reply With Quote
  #506  
Old 11-30-2008, 05:00 AM
ericdesmontagne ericdesmontagne is offline
 
Join Date: Mar 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, each autotag cron look like this :
117915 Auto Thread Tagger 2008-11-30 02:31:41 Auto Thread Tagger processed 0 threads.
Meanwhile, i have thousand thread not tagged...

Anybody have an idea ?
Reply With Quote
  #507  
Old 11-30-2008, 06:42 PM
sdavis2702 sdavis2702 is offline
 
Join Date: Apr 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet... thanks!
Reply With Quote
  #508  
Old 12-01-2008, 08:40 AM
dfc005 dfc005 is offline
 
Join Date: Mar 2008
Posts: 198
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phalynx View Post
Once again, the filters are run before the prefixes because of "I didn't thought someone would need to filter the predefined prefixes". I will change this in next bigger version.
Hey mate, has this been added yet?
Reply With Quote
  #509  
Old 12-02-2008, 03:32 PM
eh9 daddy eh9 daddy is offline
 
Join Date: Feb 2007
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericdesmontagne View Post
Well, each autotag cron look like this :
117915 Auto Thread Tagger 2008-11-30 02:31:41 Auto Thread Tagger processed 0 threads.
Meanwhile, i have thousand thread not tagged...

Anybody have an idea ?
i have the same problem on vb 3.8 b4
Reply With Quote
  #510  
Old 12-03-2008, 01:30 PM
paketeto paketeto is offline
 
Join Date: Nov 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The mod is perfect, i've just found a point to improve:

I have configured the mod to ad tags to the user tags (if any added), and i noticed that the replacement characters only works on the tags created by the mod, but no on the user's one (excuse my english).

For example:

I have a replacement character rule: 'ó'=>'o'
Users write in tags box: jamón
And then submits (with ajax off), and when seeing the created tags, the replacement characters went fine on automatic tags, but ignored for the user word, so "jamón" stils like "jamón", instead "jamon".

Is my fault or is something to do?

Thank you.
Reply With Quote
  #511  
Old 12-03-2008, 01:44 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eh9 daddy View Post
i have the same problem on vb 3.8 b4
Same here on vB 3.7.4

My log looks like this:

4191 Auto Thread Tagger 16:41, 03.12.2008 Auto Thread Tagger processed 0 threads.
4190 Auto Thread Tagger 16:37, 03.12.2008 Auto Thread Tagger processed 2 threads.



But there are many more threads without tags.


Edit:

I think I got it… The default value of taglist is not '0' or empty it is 'NULL' maybe that makes the difference.

So you should change the query in /cron/autotagger.php into this:
PHP Code:
    $threads $vbulletin->db->query_read("SELECT
        t.taglist,
        t.dateline,
        t.forumid,
        t.postuserid,
        t.title,
        t.threadid,
        t.prefixid
        FROM " 
TABLE_PREFIX "thread AS t
        WHERE t.taglist IS NULL AND autoskip=0
    "
); 
It results in:

4200 Auto Thread Tagger 16:54, 03.12.2008 Auto Thread Tagger processed 3273 threads.
4199 Auto Thread Tagger 16:54, 03.12.2008 Auto Thread Tagger processed 500 threads.
4198 Auto Thread Tagger 16:53, 03.12.2008 Auto Thread Tagger processed 500 threads.
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 04:28 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.05513 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete