vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Automatic Thread Tagger (https://vborg.vbsupport.ru/showthread.php?t=185495)

Phalynx 07-15-2008 10:00 PM

Automatic Thread Tagger
 
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

citeman 07-16-2008 01:37 PM

Yippee.. first download!

jupiter5 07-16-2008 01:40 PM

Good job. Thank you.

digitalnorte 07-16-2008 01:45 PM

First testing !
Installed and testing, thank you Phalynx !! ;)

Edit: No first :( But happy to test it.

barroca 07-16-2008 01:56 PM

hello and thanks!
you change [improve] Mr Eyes code? Have some news?
tks a lot

Phalynx 07-16-2008 01:58 PM

I hope I improved it :)

See History at the bottom.

bxbigt 07-16-2008 02:40 PM

Thank looking good :D

Charlie98902 07-16-2008 02:45 PM

I have been watching the original thread :p Thanks for the update.

yahoooh 07-16-2008 02:52 PM

under testing

karlm 07-16-2008 03:24 PM

Giving it a test.

yahoooh 07-16-2008 03:31 PM

auto tag for existing thread not respect the badwords tag option in vbulletin
any fix

Charlie98902 07-16-2008 03:33 PM

Quote:

Originally Posted by Phalynx
Automatic Tagging of existing threads
You can tag existing threads via maintenance. 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.

To do this it is in the update counters towards the bottom of that. :D

karlm 07-16-2008 03:34 PM

EDIT: Solved - I'd uploaded to wrong folder - duh.

Charlie98902 07-16-2008 03:36 PM

I did mine via cpanel and allowed over write. Try that.

abrecher 07-16-2008 04:12 PM

Fantastic!!! Thank you VERY VERY much for releasing this updated version. It's really awesome to be able to tag all of our old untagged threads as well.

karlm 07-16-2008 04:26 PM

Quote:

Automatic Tagging of existing threads
You can tag existing threads via maintenance. 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.
I can't find this setting... help please :D

BTW: this looks like a very promising product. Great work and thanks for bringing it to the community.

Charlie98902 07-16-2008 04:52 PM

Click in the admin panel update counters, from there scroll to the bottom and there you'll see the tag other existing threads.

yahoooh 07-16-2008 05:17 PM

i found bug
my site in arabic ,
when u use word: السوق
it will be in the tag:الشوق
by replacing one letter so it cause
different words from the origin word,
this occurs with some few words

karlm 07-16-2008 06:35 PM

Quote:

Originally Posted by Charlie98902 (Post 1577003)
Click in the admin panel update counters, from there scroll to the bottom and there you'll see the tag other existing threads.

thank you :)```

dedexes 07-16-2008 06:53 PM

Thank you very much. good job

flipstyle 07-16-2008 07:16 PM

Thanks so much for keeping things up to date :) installed.

JadedSouls 07-16-2008 07:52 PM

Installed but I get this when I run maintenance:

Auto Tag Threads
Processing: 2

Fatal error: Call to undefined function split_tag_list() in /home/jadedso/public_html/forum/includes/functions_autotagger.php on line 45

alessai 07-16-2008 08:22 PM

installed but it will be better to have an option to decide what words to be tagged depending on the numbers of letters (i know this can be chosen from the tags options but the addon will consider words like "and" and other words from 3 letters, users aren't stuiped to put words like that)

Lea Verou 07-16-2008 08:28 PM

Suggestion for a really good automatic tagger:
Calculate how many words with more than X characters have been mentioned in more than Y% of the posts and add them as tags.
I can't think of a way to do that without being a performance hog though :(

redlabour 07-16-2008 09:45 PM

Hi, thanks. :)

But:

The excluded Words and Filter / Replacement Characters are ignored. I have tried it several Times now after deleting all old Tags.

Quote:

des, neuen, automatische, forums, and, neue, politikstubede, ?bersicht, und, oder, auf, der, die, das, mit, einer, eine, dem, des
All of them are still tagged.

Quote:

'jesus christus'=>'jesus'
't?rkische'=>'t?rkei'
't?rkisch'=>'t?rkei'
't?rken'=>'t?rkei'
Not one of them is correctly replaced.

And the Hack is ignoring the Blocklist of Tagging from the normal vBulletin Tag-Options. :(

Pocket Aces 07-16-2008 10:55 PM

Hope to see option for forum inclusion in next update. By the way, if the thread title is edited, would it update the tags?

Selene 07-16-2008 11:18 PM

When I run the Auto tag in my maintenance, I get the following error:

Auto Tag Threads
Processing: 1

Fatal error: Call to undefined function split_tag_list() in /my forum path/forums/includes/functions_autotagger.php on line 45

Charlie98902 07-16-2008 11:50 PM

Quote:

Originally Posted by Pocket Aces (Post 1577275)
Hope to see option for forum inclusion in next update. By the way, if the thread title is edited, would it update the tags?

It still is per forum I thought? Yes Just checked.

under VB Options
Quote:

Enter the forum IDs to exclude from auto tagging.

These should be delimited with the | character. For example "2|4|10". Do not use quotes.

FRANKTHETANK 2 07-17-2008 02:01 AM

I get this error when i run the maintenance tool can you tell me why

Auto Tag Threads
Processing: 2

Fatal error: Call to undefined function split_tag_list() in /home/------/public_html/forum/includes/functions_autotagger.php on line 45

Selene 07-17-2008 02:22 AM

^ I got the same error. Let's see if the coder can fix this issue.

Charlie98902 07-17-2008 02:32 AM

Has to be a custom style or mods used. I don't get such an error.

needaltuna 07-17-2008 02:41 AM

Will this improve search engine rankings?

charles abiola 07-17-2008 03:58 AM

Good job. Work fine.

Hornstar 07-17-2008 06:21 AM

Yeah looking more stable. good work. Thanks.

redlabour 07-17-2008 06:28 AM

Quote:

Originally Posted by Charlie98902 (Post 1577373)
Has to be a custom style or mods used. I don't get such an error.

No Custom Style and no Mod that can affect the Tags.

Phalynx 07-17-2008 07:01 AM

Regarding this error:
Quote:

Fatal error: Call to undefined function split_tag_list() in /forum/includes/functions_autotagger.php on line 45
The function "split_tag_list" has been introduced in vBulletin 3.7.1 - Either you upgrade to 3.7.1/3.7.2 or I will do a workaround.


Quote:

Originally Posted by yahoooh (Post 1577026)
when u use word: السوق
it will be in the tag:الشوق
by replacing one letter so it cause
different words from the origin word,
this occurs with some few words

Please clear the "Filter / Replacement Characters" and rerun recount. Does it still occur?


Quote:

Originally Posted by Michelle (Post 1577187)
Suggestion for a really good automatic tagger:
Calculate how many words with more than X characters have been mentioned in more than Y% of the posts and add them as tags.
I can't think of a way to do that without being a performance hog though :(

Yes, parsing the whole posting would be a big performance issue. Beside that, I doubt there be will good things. You would need to maintain a big database of no-go words like "of", "we", "be", etc... - and this for every language.


Quote:

Originally Posted by redlabour (Post 1577229)
The excluded Words and Filter / Replacement Characters are ignored. I have tried it several Times now after deleting all old Tags.

Cannot confirm that, working on three live boards perfectly.

Quote:

Originally Posted by yahoooh (Post 1576932)
auto tag for existing thread not respect the badwords tag option in vbulletin

Quote:

Originally Posted by redlabour (Post 1577229)
And the Hack is ignoring the Blocklist of Tagging from the normal vBulletin Tag-Options. :(

Will implement this.


Quote:

Originally Posted by Pocket Aces (Post 1577275)
Hope to see option for forum inclusion in next update. By the way, if the thread title is edited, would it update the tags?

To get support, you will need to click "Mark as Installed".

KURTZ 07-17-2008 07:28 AM

*Kurtz checks the developing ... :D

Phalynx 07-17-2008 07:30 AM

Christian, you are jumping on almost all hacks I see - you have too much time :p

KevinL 07-17-2008 07:32 AM

This question was asked in the other thread...

Quote:

Do we need to use the manual code edit still showed here if we use RSS feeds?
Do we still have to do this to include the RSS feeds?

Thanks :)

KURTZ 07-17-2008 07:34 AM

yes Marius, i spend my holidays on vb.org ... :S


All times are GMT. The time now is 03:56 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.01687 seconds
  • Memory Usage 1,832KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete