The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||||||
*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 |
#72
|
||||
|
||||
![]() Quote:
![]() |
#73
|
|||
|
|||
![]()
ok, i'll try to make that happen for the next release. i see it's importaint to everyone.
|
#74
|
|||
|
|||
![]()
For those like me who are having problems with non english words.
I solved the problem this way, for the Portuguese language: Plugin AMP Auto Tagger: Code:
if ($vbulletin->options['amp_auto_tagger_enabled'] && THIS_SCRIPT == 'newthread'){ $taggerbadwords = str_replace(" ","",$vbulletin->options["amptaggerbadwords"]); $taggerbadwords = str_replace(",","\b|",$vbulletin->options["amptaggerbadwords"]); //$taggerbadwords = str_replace(" ","\b|",$vbulletin->options["badwords"]); $tagscript = '<script type="text/javascript"> function removeAccents(strAccents){ strAccents = strAccents.split(""); strAccentsOut = new Array(); strAccentsLen = strAccents.length; var accents = "??????????????????????????????????????????????????????????????"; var accentsOut = ["A","A","A","A","A","A","a","a","a","a","a","a","O","O","O","O","O","O","O" ,"o","o","o","o","o","o","E","E","E","E","e","e","e","e","e","C","c","D","I" ,"I","I","I","i","i","i","i","U","U","U","U","u","u","u","u","N","n","S","s" ,"Y","y","y","Z","z"]; for (var y = 0; y < strAccentsLen; y++) { if (accents.indexOf(strAccents[y]) != -1) { strAccentsOut[y] = accentsOut[accents.indexOf(strAccents[y])]; } else strAccentsOut[y] = strAccents[y]; } strAccentsOut = strAccentsOut.join(""); return strAccentsOut; } function filterText(sText) { var reBadWords = /'.$taggerbadwords.'\b/gi; return sText.replace(reBadWords, ""); } function ltrim(str){ return str.replace(/^[ ]+/, ""); } function rtrim(str){ return str.replace(/[ ]+$/, ""); } function trim(str){ return ltrim(rtrim(str)); } function updateTagger(){ var subject = document.vbform.subject.value.replace(/[^a-zA-Z 0-9??????????????????????????????????????????????????????????????]+/gi,""); subject = removeAccents(subject); subject = subject.replace(/(\b(\w{1,3})\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,","); } </script>'; $tagscript2 = 'onBlur="updateTagger()"'; $search = 'name="subject" id="subject"'; $replace = 'name="subject" id="subject" '.$tagscript2; $vbulletin->templatecache['newthread'] = str_replace($search, $replace, $vbulletin->templatecache['newthread']); $search = '<form class="vbform block"'; $replace = $tagscript.'<form class="vbform block"'; $vbulletin->templatecache['newthread'] = str_replace($search, $replace, $vbulletin->templatecache['newthread']); } nstlx |
#75
|
|||
|
|||
![]()
i'll give it a go, but i don't promise anything
|
#76
|
|||
|
|||
![]()
I think that i have found a solution i'm gonna give it to you, but i need you to test it for me. Here is the RegExp for Turkish Language. This is that you have to replace in the xml product, and also you should change your encoding to ISO 8859-9
Code:
(/[^A-Z^a-z^0-9^şŞıİ??????Ğğ\s]+/gi,"") Code:
(/[^A-Za-z 0-9_\\0000-\\00FF]+/gi,"") EDIT: please re-download new file, test it and let me know |
#77
|
||||
|
||||
![]()
Dear dippetas not working
|
#78
|
||||
|
||||
![]()
hi
i fix it for Arabic language & translate it it working very good for me in VB v. 4.0.3 plzzzzzzzz add the product to 1st post in origenal post for Demo alra7ba user : vBulletin pss : 123456 thanxx agen ![]() |
#79
|
|||
|
|||
![]()
Brilliant!!!!
Installed and working on 4.0.3!!! Was worried when the 3.8 version was not going to be upgraded so MANY thanks for doing your own testbot! many many thanks! |
#80
|
|||
|
|||
![]()
Hi Testbot,
Is there anyway you can make the plugin not include the forbidden words in the tags period? Right now my users are getting confused when it says that a tag can't be used as most of them have no idea what a tag is in the first place ![]() So it's stopping a lot of users posting ![]() |
#81
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|