Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Automatic Thread Tagger for vB4.x Details »»
Automatic Thread Tagger for vB4.x
Version: 1.20, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.0 Rating:
Released: 12-14-2010 Last Update: Never Installs: 296
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

Automatic Thread Tagger
This is the vB4 conversation of the original by Phalynx (with permission)

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
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.

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

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

Text are taken from the original thread:
https://vborg.vbsupport.ru/showthread.php?t=201156

Thanks to Phalynx

Download Now

File Type: zip autotagging.zip (19.2 KB, 2600 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
pablodip

Comments
  #92  
Old 10-10-2013, 09:52 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

How to fix.

Open the file, includes/functions_autotagger.php on line 191, in that file find the following:

Code:
$excludedForums = split('\|', $vbulletin->options['autotag_exclude_forums']);
Replace with:
Code:
$excludedForums = explode('\|', $vbulletin->options['autotag_exclude_forums']);
Find:
Code:
$excludedUsers = split('\|', $vbulletin->options['autotag_exclude_users']);
Replace it with this:

Code:
$excludedUsers = explode('\|', $vbulletin->options['autotag_exclude_users']);
Reply With Quote
2 благодарности(ей) от:
rootsxrocks, sadiq6210
  #93  
Old 10-28-2013, 09:00 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this errors in 4.2.2 / php5.4

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 15

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 23

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 32

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 33
Reply With Quote
  #94  
Old 11-29-2013, 11:35 PM
mooncreek mooncreek is offline
 
Join Date: Feb 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting same errors. Would appreciate update for 4.2.2

Noticed that when editing posts, errors do not allow post to load with edits.
Reply With Quote
  #95  
Old 11-30-2013, 05:09 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Sadig6210, @Mooncreek:

Please read the modification's thread before posting. @Ozzy47 graciously posted several fixes in post #91, https://vborg.vbsupport.ru/showpost.php?p=2451721&postcount=91.

The author has not been online since 2011.
Reply With Quote
  #96  
Old 01-14-2014, 10:44 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
i got an Error that the split function is deprecated.
File is includes/functions_autotagger.php Line 394
PHP Code:
$parts split("'=>'"$filterReplaceItems[$x]); 
Can i replace all split to explode?

I ask Phalynx for Permission and Coroner for Coding in 2010 for that Addon.
Reply With Quote
Благодарность от:
rootsxrocks
  #97  
Old 02-03-2014, 07:07 AM
rootsxrocks rootsxrocks is offline
 
Join Date: Aug 2009
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

How to fix.

Open the file, includes/functions_autotagger.php on line 191, in that file find the following:

Code:
$excludedForums = split('\|', $vbulletin->options['autotag_exclude_forums']);
Replace with:
Code:
$excludedForums = explode('\|', $vbulletin->options['autotag_exclude_forums']);
Find:
Code:
$excludedUsers = split('\|', $vbulletin->options['autotag_exclude_users']);
Replace it with this:

Code:
$excludedUsers = explode('\|', $vbulletin->options['autotag_exclude_users']);
I just wanted to add I had done this edit without success and turned the mod off till I could get back to it , but just went back and changed several more instances of the split to explode and it appears to be working.
It was hard to catch the errors shown before the page changed. I ignored other lines that included this $subjectTopreg_split(kens = '/\s(?=([^"]*"[^"]*"[^"]*)*$|[^"]*$)/', $title, -1, PREG_SPLIT_NO_EMPTY);

Other lines changed include but are not limited to
line 338
line 421
line 389
line 375
line 394
Reply With Quote
  #98  
Old 02-06-2014, 11:35 AM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exclude from Forums are not Working.
I have a lot of ID´s in the Settings, but the Forums are all Tagged.
Maybe a User or Coder can Fix it?
Reply With Quote
  #99  
Old 02-13-2014, 09:37 AM
ITDarasgah's Avatar
ITDarasgah ITDarasgah is offline
 
Join Date: Mar 2009
Location: Pakistan
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have done
https://vborg.vbsupport.ru/showpost....1&postcount=91
but still found
https://vborg.vbsupport.ru/showpost....3&postcount=92

any idea?
Reply With Quote
  #100  
Old 02-13-2014, 05:06 PM
rootsxrocks rootsxrocks is offline
 
Join Date: Aug 2009
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrD View Post
Exclude from Forums are not Working.
I have a lot of ID?s in the Settings, but the Forums are all Tagged.
Maybe a User or Coder can Fix it?
I was able to exclude 1 forum delete all tags and re run and it worked fine and did not retag all the weather threads
Reply With Quote
  #101  
Old 02-13-2014, 05:15 PM
rootsxrocks rootsxrocks is offline
 
Join Date: Aug 2009
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
I got this errors in 4.2.2 / php5.4
this is the lines as they are in my file im running PHP Version 5.4.24 and it seems to be working without errors but i may have just missed them.



Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 15
PHP Code:
  if (intval($thread['threadid']) == 0
Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 23
PHP Code:
    WHERE t.contentid=".$thread['threadid']." AND autotag=
Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 32
PHP Code:
$vbulletin->db->query_write("DELETE FROM " TABLE_PREFIX "tagcontent WHERE autotag=1 AND contentid=" $thread['threadid']); 
Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 33
PHP Code:
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "thread SET autoskip=0 WHERE threadid=" $thread['threadid']); 
Reply With Quote
Reply

Thread Tools

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 11:51 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.06503 seconds
  • Memory Usage 2,357KB
  • Queries Executed 29 (?)
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_php
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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