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

Reply
 
Thread Tools
AMP Quick Auto Tagger Details »»
AMP Quick Auto Tagger
Version: 2.0.1, by testbot testbot is offline
Developer Last Online: Nov 2018 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.0 Rating:
Released: 02-09-2010 Last Update: 02-18-2011 Installs: 325
Uses Plugins Auto-Templates
Additional Files Translations Is in Beta Stage  
No support by the author.

*Please mark installed, rate, and nominate!*

AMP Quick Auto Tagger
(Online tested on 4.01 and 4.1.2)

New in version 2.0.1!
The ability to remove all numbers
The ability to add other languages (this has not been tested very well because I am not bi-lingual)
CRON JOB TO ADD TAGS TO ALL THREADS OR PAST THREADS!
Automatically removes the default VB Badword tags and bad search tags (Remember to remove the default example keywords after installation).
Added Goodwods - These words are added to every tag during post and cron.

Description
After a user types a title this modification will automatically take keywords from the thread title and add them as tags with no database queries or modifications

This is designed to be faster due to it's simplicity. It takes the title, runs it against the badword filter, cleans it up using regex and then adds it to the tag field instantly. The user has the option to add or remove tags before they submit the thread.

Installation / Upgrade
IF UPDATING REMOVE PREVIOUS VERSION FIRST. If you have a large number of "Bad Words" save them before uninstalling.
Download and extract AMP Auto Tagger_2.0.1.zip
Upload all files in UPLOAD folder to the root of the forum
Import the product product-amp_tagger_2.0.1.xml
Enable and configure AdminCP>Options>AMP Auto Tagger

To Do (Future Releases)
[S]Make better regex. (DONE!)
Create Cron Job. (DONE!)[/S]
Add better support for multi-language.

Tip
Don't add two letter words to the badword filter. The auto tagger already limits the tags to three characters or more. Not only is it pointless but I also get strange results when having only two letter words.
If you enable 'CRON: Purge ALL Tags' only enable it once, run the scheduled task/cron and then disable it. Otherwise, it will delete and readd all tags every time the cron runs and your forum will take a performance hit.

Demo
You can create threads in the following forum to test it out. Sorry but you have to create an account to post on our board.
http://forum.ampprod.com/forumdispla...To-and-Support

Version History
1.0.0 (02/09/2010) - First Release
1.0.1 (02/10/2010) - Fix IE Bug
2.0.0 (02/17/2011) - Added Cron to tag old threads, updated regex, added goodwords, updated option settings to remove numbers and add languages.
2.0.1 (02/18/2010) - Fixed vbflush in cron and admincp badwords

Download Now

File Type: zip AMP Auto Tagger_2.0.1.zip (6.7 KB, 1433 views)

Screenshots

File Type: jpg NewThreadTaggs.jpg (146.8 KB, 0 views)
File Type: png amp_autotagger_cp.png (120.0 KB, 0 views)

Show Your Support

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

Comments
  #62  
Old 03-25-2010, 09:19 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i believe the following is what strips non english words from tags. if anyone knows how to translate it that would be great.

Code:
var subject = document.vbform.subject.value.replace(/[^a-zA-Z 0-9]+/gi,"");
subject = subject.replace(/(\b(\w{1,2})\b(\s|$))|(\b(\w{19,})\b(\s|$))/g,"");
var newtaglist = filterText(subject);
newtaglist = trim(newtaglist);
newtaglist = newtaglist.replace(/\s+/g," ");
document.vbform.taglist.value = newtaglist.replace(/ /gi,",");
Reply With Quote
  #63  
Old 03-26-2010, 08:17 AM
dippetas dippetas is offline
 
Join Date: Feb 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by testbot View Post
i believe the following is what strips non english words from tags. if anyone knows how to translate it that would be great.

Code:
var subject = document.vbform.subject.value.replace(/[^a-zA-Z 0-9]+/gi,"");
subject = subject.replace(/(\b(\w{1,2})\b(\s|$))|(\b(\w{19,})\b(\s|$))/g,"");
var newtaglist = filterText(subject);
newtaglist = trim(newtaglist);
newtaglist = newtaglist.replace(/\s+/g," ");
document.vbform.taglist.value = newtaglist.replace(/ /gi,",");
i think that i need only to change the regular expression command in greek is that right?, it should be something like that
Code:
var subject = document.vbform.subject.value.replace(/[^α-ωΑ-Ω 0-9]+/gi,"");
is that right?
do i have to change anything else?
Reply With Quote
  #64  
Old 03-26-2010, 01:03 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dippetas View Post
i think that i need only to change the regular expression command in greek is that right?, it should be something like that
Code:
var subject = document.vbform.subject.value.replace(/[^α-ωΑ-Ω 0-9]+/gi,"");
is that right?
do i have to change anything else?
i think so. the rest really just removes spaces and stuff. give it a try and let me know how it works.

i'll be updating this soon because there's still a few slight bugs. if that works i'll incorporate that into the code.
Reply With Quote
  #65  
Old 03-26-2010, 07:59 PM
dippetas dippetas is offline
 
Join Date: Feb 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by testbot View Post
i think so. the rest really just removes spaces and stuff. give it a try and let me know how it works.

i'll be updating this soon because there's still a few slight bugs. if that works i'll incorporate that into the code.
unfortunately this didn't work at all, but i will give it a try in order to fix it
Reply With Quote
  #66  
Old 03-28-2010, 04:57 AM
Professional2's Avatar
Professional2 Professional2 is offline
 
Join Date: Nov 2009
Location: 1/2 Of the World
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a lot of topic,does it add tags for them?
Reply With Quote
  #67  
Old 03-28-2010, 08:06 AM
dippetas dippetas is offline
 
Join Date: Feb 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Professional2 View Post
i have a lot of topic,does it add tags for them?
if you are referring to me, no it doesn't add at all tags at my threads because the reg exp is only for Latin words and non Unicode. I've tried some solutions with Unicode but nothing.

i'm using this site in order to create and test the reg exp for greek http://www.regexplanet.com/simple/index.html

@testbot
i'm pretty close to solve it only i have a problem it strips spaces and can't place "," for the tag words here is the code
Code:
 	var subject = document.vbform.subject.value.replace(/[^[a-zA-Z0-9_\\u00A1-\\uFFFF]+/gi,"");
Reply With Quote
  #68  
Old 03-28-2010, 09:23 AM
dippetas dippetas is offline
 
Join Date: Feb 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by testbot View Post
i think so. the rest really just removes spaces and stuff. give it a try and let me know how it works.

i'll be updating this soon because there's still a few slight bugs. if that works i'll incorporate that into the code.
Fixed, it adds Greek tags and english
here is the solution :
Code:
	
function updateTagger(){
				var subject = document.vbform.subject.value.replace(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"");
				subject = subject.replace(/(\b(\w{1,2})\b(\s|$))|(\b(\w{19,})\b(\s|$))/g,"");
				var newtaglist = filterText(subject);
				newtaglist = trim(newtaglist);
				newtaglist = newtaglist.replace(/\s+/g," ");
				document.vbform.taglist.value = newtaglist.replace(/ /gi,",");
and here is the fixed RegExp
Code:
(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"")


This is the attached file for unicode (including greek) and english languages
Attached Files
File Type: xml product-amp_tagger101.xml (5.6 KB, 20 views)
Reply With Quote
  #69  
Old 04-07-2010, 07:36 AM
ffak ffak is offline
 
Join Date: Aug 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by testbot View Post
i think i might release the updater for older threads as a separate product. right now, part of this mods appeal is that there's absolutely no database changes, it's fast and simple. the updater will require database changes and a file to uplodad.
Thanks for your mod.
Do you think you'll release some updater for old threads?
Reply With Quote
  #70  
Old 04-07-2010, 06:31 PM
Furcal15 Furcal15 is offline
 
Join Date: Apr 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ffak View Post
Thanks for your mod.
Do you think you'll release some updater for old threads?

I'm also interested in the old threads being automatically updated. Is it possible?
Reply With Quote
  #71  
Old 04-07-2010, 09:01 PM
arena's Avatar
arena arena is offline
 
Join Date: Oct 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dippetas View Post
Fixed, it adds Greek tags and english
here is the solution :
Code:
    
function updateTagger(){
                var subject = document.vbform.subject.value.replace(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"");
                subject = subject.replace(/(\b(\w{1,2})\b(\s|$))|(\b(\w{19,})\b(\s|$))/g,"");
                var newtaglist = filterText(subject);
                newtaglist = trim(newtaglist);
                newtaglist = newtaglist.replace(/\s+/g," ");
                document.vbform.taglist.value = newtaglist.replace(/ /gi,",");
and here is the fixed RegExp
Code:
(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"")


This is the attached file for unicode (including greek) and english languages
Please Turkish language help? ? ? Ş ş Ğ ğ ı ? ? ? ?
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:22 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.07102 seconds
  • Memory Usage 2,357KB
  • 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
  • (9)bbcode_code
  • (8)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
  • (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
  • (4)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