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
  #242  
Old 07-31-2008, 02:17 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
I just upgraded and ran the cron. Still nothing. It's not tagging the RSS feeds.
Run maintenance tools, auto tag threads. Cron is only for nightly run.
Also:
* 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.
Reply With Quote
  #243  
Old 07-31-2008, 02:43 PM
rsb8940 rsb8940 is offline
 
Join Date: Feb 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just applied/installed the upgrade to 1.1.0 (previously ran 1.0.1). Since then, I get this SQL Error:

-----------------

Invalid SQL:
SELECT
t.tagid
FROM tagthread as t
WHERE t.threadid= AND autotag=1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND autotag=1' at line 4
Error Number : 1064
Request Date : Thursday, July 31st 2008 @ 11:38:06 AM
Error Date : Thursday, July 31st 2008 @ 11:38:07 AM
Script : http://support.vpi-corp.com/forum/ne...streply&t=5127
Referrer : http://support.vpi-corp.com/forum/ne...quote=1&p=7308
IP Address : #### (masked)
Username : #### (masked)
Classname : vB_Database_MySQLi
MySQL Version :
Reply With Quote
  #244  
Old 07-31-2008, 02:53 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rsb8940 View Post
I just applied/installed the upgrade to 1.1.0 (previously ran 1.0.1). Since then, I get this SQL Error:

-----------------

Invalid SQL:
SELECT
t.tagid
FROM tagthread as t
WHERE t.threadid= AND autotag=1;
Strange. I'm catching now the missing threadid with an "intval". The ZIP has been silently updated, please replace the functions_autotagger.php
Reply With Quote
  #245  
Old 07-31-2008, 03:20 PM
MadK's Avatar
MadK MadK is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The special characters auto tags got messed up after the update. The plugin would read special characters, now it shows as: "aand#304lesand#304"

http://www.mafia-mp.com/forums/

Guest account:

Code:
Username: TestAccount
Password: testaccount123
Reply With Quote
  #246  
Old 07-31-2008, 03:30 PM
lstintxs100's Avatar
lstintxs100 lstintxs100 is offline
 
Join Date: Dec 2005
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will update later when I get a chance. Thanks for the wisdom and hard work.
Reply With Quote
  #247  
Old 07-31-2008, 04:03 PM
masterross's Avatar
masterross masterross is offline
 
Join Date: Nov 2005
Location: Bulgaria
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for update unfortunately AJAX doesnt work for me:
Code:
Line:466
Char:3
Code:0
Error:Object required
URL:http://www.my-forum.pl/newthread.php?do=newthread&f=116
And the line 466 is:

Code:
  vBAjax_ATT.onreadystatechange = m_State_ATT;
regards
Reply With Quote
  #248  
Old 07-31-2008, 04:48 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bug after Updating:

Code:
Datenbankfehler in vBulletin 3.7.2:

Invalid SQL:
UPDATE vb3_thread SET autoskip=2 WHERE threadid=11616;

MySQL-Fehler  : Unknown column 'autoskip' in 'field list'
Fehler-Nr.    : 1054
Fehler-Zeit   : Thursday, 31.07.2008 @ 19:44:18
Datum         : Thursday, 31.07.2008 @ 19:44:19
Skript        : http://www.politikstube.de/forum/newreply.php?do=postreply&t=11616
Referrer      : http://www.politikstube.de/forum/newreply.php?do=newreply&p=157876
IP-Adresse    : XXXXXXXX
Benutzername  : Kiara
Klassenname   : vB_Database_MySQLi
MySQL-Version :
at Delete Auto Tags.
Reply With Quote
  #249  
Old 07-31-2008, 07:18 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MadK View Post
The special characters auto tags got messed up after the update. The plugin would read special characters, now it shows as: "aand#304lesand#304"
Please keep in mind to replace the filter replacement '&'=>'and' with ' & '=>'and'

Quote:
Originally Posted by masterross View Post
Thanks for update unfortunately AJAX doesnt work for me:
Code:
Line:466
Char:3
Code:0
Error:Object required
URL:http://www.my-forum.pl/newthread.php?do=newthread&f=116
And the line 466 is:

Code:
  vBAjax_ATT.onreadystatechange = m_State_ATT;
regards
Which browser are you using?

Quote:
Originally Posted by redlabour View Post
Bug after Updating:

Code:
Datenbankfehler in vBulletin 3.7.2:

Invalid SQL:
UPDATE vb3_thread SET autoskip=2 WHERE threadid=11616;

MySQL-Fehler  : Unknown column 'autoskip' in 'field list'
Fehler-Nr.    : 1054
Fehler-Zeit   : Thursday, 31.07.2008 @ 19:44:18
Datum         : Thursday, 31.07.2008 @ 19:44:19
Skript        : http://www.politikstube.de/forum/newreply.php?do=postreply&t=11616
Referrer      : http://www.politikstube.de/forum/newreply.php?do=newreply&p=157876
IP-Adresse    : XXXXXXXX
Benutzername  : Kiara
Klassenname   : vB_Database_MySQLi
MySQL-Version :
at Delete Auto Tags.
Uninstall, install. Seems the installcode did not execute on upgrade.
Reply With Quote
  #250  
Old 07-31-2008, 08:23 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deleted tags, ran re-tag got this:

Code:
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 35 bytes) in /home/domains/domain_name/public_html/forums/includes/functions_autotagger.php on line 408
Had to decrease tag number to 500 in order to get it to work.
Reply With Quote
  #251  
Old 07-31-2008, 08:26 PM
drumbo's Avatar
drumbo drumbo is offline
 
Join Date: Aug 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I enable Disable Auto Tag if Tagged ;its still adding tags if the user has submitted tags with their post. :-(
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 08:55 AM.


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.08913 seconds
  • Memory Usage 2,332KB
  • 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
  • (8)bbcode_code
  • (5)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