The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
AMP Quick Auto Tagger Details »» | |||||||||||||||||||||||||||||||
*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
Screenshots
Show Your Support
|
Благодарность от: | ||
nacaruncr |
Comments |
#62
|
|||
|
|||
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,","); |
#63
|
|||
|
|||
Quote:
Code:
var subject = document.vbform.subject.value.replace(/[^α-ωΑ-Ω 0-9]+/gi,""); do i have to change anything else? |
#64
|
|||
|
|||
Quote:
i'll be updating this soon because there's still a few slight bugs. if that works i'll incorporate that into the code. |
#65
|
|||
|
|||
unfortunately this didn't work at all, but i will give it a try in order to fix it
|
#66
|
||||
|
||||
i have a lot of topic,does it add tags for them?
|
#67
|
|||
|
|||
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,""); |
#68
|
|||
|
|||
Quote:
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,","); Code:
(/[^[a-zA-Z0-9_\\u0020-\\uFFFF]+/gi,"") This is the attached file for unicode (including greek) and english languages |
#69
|
|||
|
|||
Quote:
Do you think you'll release some updater for old threads? |
#70
|
|||
|
|||
Quote:
I'm also interested in the old threads being automatically updated. Is it possible? |
#71
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|