vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - AMP Quick Auto Tagger (https://vborg.vbsupport.ru/showthread.php?t=235469)

testbot 02-09-2010 10:00 PM

AMP Quick Auto Tagger
 
1 Attachment(s)
*Please mark installed, rate, and nominate!* :D

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

testbot 02-10-2010 03:12 AM

Currently only supports English... sorry

Remember to enable it in the Admin Panel.

Oh yea, please mark installed if you like it and plan on using it. :D

Current Suggested AMP Tagger Bad Words:
Code:

according,able,about,above,accordingly,across,actually,after,afterwards,again,against,aint,all,allow,allows,almost,alone,along,already,also,although,always,among,amongst,amoungst,amount,and,another,any,anybody,anyhow,anyone,anything,anyway,anyways,anywhere,apart,appear,appreciate,appropriate,are,arent,around,aside,ask,asking,associated,available,away,awfully,back,became,because,become,becomes,becoming,been,before,beforehand,behind,being,believe,below,beside,besides,best,better,between,beyond,bill,both,bottom,brief,but,call,came,can,cannot,cant,cause,causes,certain,certainly,changes,clearly,cmon,com,come,comes,computer,con,concerning,consequently,consider,considering,contain,containing,contains,corresponding,could,couldnt,course,cry,currently,day,definitely,describe,described,despite,detail,did,didnt,different,does,doesnt,doing,done,dont,down,downwards,due,during,each,edu,eight,either,eleven,else,elsewhere,empty,enough,entirely,especially,etc,even,ever,every,everybody,everyone,everything,everywhere,exactly,example,except,far,few,fifteen,fifth,fify,fill,find,fire,first,five,followed,following,follows,for,former,formerly,forth,forty,found,four,from,front,full,further,furthermore,get,gets,getting,give,given,gives,goes,going,gone,got,gotten,greetings,guy,had,hadnt,happens,hardly,has,hasnt,have,havent,having,hello,help,hence,her,here,hereafter,hereby,herein,heres,hereupon,hers,herself,hes,hey,him,himself,his,hither,hopefully,how,howbeit,however,hundred,ignored,ill,immediate,inasmuch,inc,indeed,indicate,indicated,indicates,inner,insofar,instead,interest,into,inward,isnt,ist,itd,itll,its,itself,ive,just,keep,keeps,kept,know,known,knows,last,lately,later,latter,latterly,least,less,lest,let,lets,like,liked,likely,little,look,looking,looks,ltd,made,mainly,many,may,maybe,mean,meanwhile,merely,might,mill,mine,more,moreover,most,mostly,move,much,must,myself,name,namely,near,nearly,necessary,need,needs,neither,never,nevertheless,new,next,nine,nobody,non,none,noone,nor,normally,not,nothing,novel,now,nowhere,obviously,off,often,okay,old,once,one,ones,only,onto,originally,other,others,otherwise,ought,our,ours,ourselves,out,outside,over,overall,own,part,particular,particularly,per,perhaps,placed,please,plus,possible,posted,presumably,probably,provides,put,que,quite,quote,rather,really,reasonably,regarding,regardless,regards,relatively,respectively,right,said,same,saw,say,saying,says,second,secondly,see,seeing,seem,seemed,seeming,seems,seen,self,selves,sensible,sent,serious,seriously,seven,several,shall,she,should,shouldnt,show,side,since,sincere,six,sixty,some,somebody,somehow,someone,something,sometime,sometimes,somewhat,somewhere,soon,sorry,specified,specify,specifying,still,sub,such,sup,sure,system,take,taken,tell,ten,tends,than,thank,thanks,thanx,that,thats,the,their,theirs,them,themselves,then,thence,there,thereafter,thereby,therefore,therein,theres,thereupon,these,they,theyd,theyll,theyre,theyve,thick,thin,think,third,this,thorough,thoroughly,those,though,three,through,throughout,thru,thus,together,too,took,top,toward,towards,tried,tries,truly,try,trying,twelve,twenty,twice,two,under,unfortunately,unless,unlikely,until,unto,upon,use,used,useful,uses,using,usually,value,various,very,via,viz,want,wants,was,wasnt,way,wed,welcome,well,went,were,werent,weve,what,whatever,whats,when,whence,whenever,where,whereafter,whereas,whereby,wherein,wheres,whereupon,wherever,whether,which,while,whither,who,whoever,whole,whom,whos,whose,why,will,willing,wish,with,within,without,wonder,wont,would,wouldnt,yes,yet,you,youd,youll,your,youre,yours,yourself,yourselves,youve,zero

valendono 02-10-2010 06:33 AM

nice !

CRDeveloper 02-10-2010 06:45 AM

Nice, Will this mod update older threads?

tunerclub.net 02-10-2010 07:12 AM

Quote:

Originally Posted by ToxXxicas (Post 1978915)
Nice, Will this mod update older threads?

dosent look like it, shame

InsomniacP 02-10-2010 07:14 AM

Oh great I have been waiting for one of these! good job...

testbot 02-10-2010 07:14 AM

Quote:

Originally Posted by ToxXxicas (Post 1978915)
Nice, Will this mod update older threads?

sorry but no it won't. i'm debating creating a cron for scheduled tasks in future releases though.

rajubd 02-10-2010 08:50 AM

not working

Arsh 02-10-2010 09:23 AM

rajubd - did you turn it on from admin panel?

to the devolper - thanks! Installed.

could you quickly tell me what these are and weather I really need to do them?:

Make better regex.
Create Cron Job

djbaxter 02-10-2010 09:29 AM

Quote:

Originally Posted by Arsh (Post 1978979)
could you quickly tell me what these are and weather I really need to do them?:

Make better regex.
Create Cron Job

That's not for you. That's the coder's "To Do" list. :)

princeedward 02-10-2010 10:50 AM

great and thanks.... ;)

hassshasss 02-10-2010 01:25 PM

How can we fix this problem with Turkish characters?

:confused: ş ? ğ ? ? İ ? Ş Ğ ?

exsample: şimdi ?alışma zamanı
results: imdi,alma,zaman

rajubd 02-10-2010 02:09 PM

Quote:

Originally Posted by Arsh (Post 1978979)
rajubd - did you turn it on from admin panel?

to the devolper - thanks! Installed.

could you quickly tell me what these are and weather I really need to do them?:

Make better regex.
Create Cron Job

i have another thread tagger i disable it then install this also set on from option still not working.

testbot 02-10-2010 04:14 PM

Quote:

Originally Posted by hassshasss (Post 1979098)
How can we fix this problem with Turkish characters?

:confused: ş ? ğ ? ? İ ? Ş Ğ ?

exsample: şimdi ?alışma zamanı
results: imdi,alma,zaman

I'm sorry, I've never coded for anything other than English. I will definitely look into this for you though.

I think that the regex/javascipt sees those as special characters and removes them.

Quote:

Originally Posted by rajubd (Post 1979139)
i have another thread tagger i disable it then install this also set on from option still not working.

I believe it's conflicting with some other plugin/product or template change. Is it enabled now? If so I will logon to your board and see if i can see what's the problem.

Extra PC 02-10-2010 04:51 PM

installed and enabled but not working nothing happend and no tags appears on tag bar...

rajubd 02-10-2010 04:59 PM

Quote:

Originally Posted by testbot (Post 1979225)
I'm sorry, I've never coded for anything other than English. I will definitely look into this for you though.

I think that the regex/javascipt sees those as special characters and removes them.



I believe it's conflicting with some other plugin/product or template change. Is it enabled now? If so I will logon to your board and see if i can see what's the problem.

just enable it see now

user name : test
pass : 123456

testbot 02-10-2010 05:01 PM

Quote:

Originally Posted by Extra PC (Post 1979261)
installed and enabled but not working nothing happend and no tags appears on tag bar...

are the subjects in english?

do you have any mods installed that might conflict with this?

testbot 02-10-2010 05:01 PM

Quote:

Originally Posted by rajubd (Post 1979268)
just enable it see now

user name : test
pass : 123456

ok, checking now

testbot 02-10-2010 05:06 PM

Quote:

Originally Posted by rajubd (Post 1979268)
just enable it see now

user name : test
pass : 123456

ok, i tried it and it's working in FireFox but it seems there's a bug in Internet Explorer.

stupid internet explorer always an issue hahaha

i'm working on it now and i'll upload the new version in a few minutes.

Extra PC 02-10-2010 05:07 PM

i try arabic and english subject but same

i have anothe tag mod but i disabled before install ur mod ...

Extra PC 02-10-2010 05:08 PM

Quote:

Originally Posted by testbot (Post 1979276)
ok, i tried it and it's working in FireFox but it seems there's a bug in Internet Explorer.

stupid internet explorer always an issue hahaha

i'm working on it now and i'll upload the new version in a few minutes.

AHA maybe my problem same

wait ur fix it

rajubd 02-10-2010 05:12 PM

Quote:

Originally Posted by testbot (Post 1979276)
ok, i tried it and it's working in FireFox but it seems there's a bug in Internet Explorer.

stupid internet explorer always an issue hahaha

i'm working on it now and i'll upload the new version in a few minutes.

ok thanks also test it in opera please

testbot 02-10-2010 05:37 PM

ok, all set. fixed IE bug and tested with opera. :D

rajubd 02-10-2010 05:49 PM

thanks now working + nominated

testbot 02-10-2010 05:58 PM

great! thank you!

Bergler 02-11-2010 04:16 AM

Great mod, installed on both my sites, looking forward to those updates!! Nominated! :D The only Problem I can see, like for istance, a three letter word, if not in the list! How will members get around that if they need "lets" in their title and its not in the list??

Arsh 02-11-2010 06:34 AM

Quote:

Originally Posted by djbaxter (Post 1978982)
That's not for you. That's the coder's "To Do" list. :)

Ah.. thanks!

Arsh 02-11-2010 06:35 AM

How come I'm getting this error in mail? Is it related to this hack?

PHP Code:

Invalid SQL:

               
SELECT 
                   count
(*) as maxre
               FROM vb_tagthread
               GROUP BY tagid
               ORDER BY maxre DESC
               LIMIT 0
,1;

MySQL Error   Table 'xxxxxx.vb_tagthread' doesn't exist 


oddmud 02-11-2010 03:13 PM

It works, I need a larger list of words not to use I guess. It's pretty simple.

I would like someone to make a tagger where we can set the tags we want, that works.

testbot 02-11-2010 04:45 PM

Quote:

Originally Posted by Bergler (Post 1979726)
Great mod, installed on both my sites, looking forward to those updates!! Nominated! :D The only Problem I can see, like for istance, a three letter word, if not in the list! How will members get around that if they need "lets" in their title and its not in the list??

the title isn't effected at all. you can type anything you want really. basically it's like taking the title, copying it to the tag list and then filter out the badwords from the tagbox.

Quote:

Originally Posted by Arsh (Post 1979781)
How come I'm getting this error in mail? Is it related to this hack?

PHP Code:

Invalid SQL:

               
SELECT 
                   count
(*) as maxre
               FROM vb_tagthread
               GROUP BY tagid
               ORDER BY maxre DESC
               LIMIT 0
,1;

MySQL Error   Table 'xxxxxx.vb_tagthread' doesn't exist 


not at all. this add-on uses only javascript and doesn't make any database changes. when do you get that error? did you have another tag mod installed that made database changes?

Quote:

Originally Posted by oddmud (Post 1980042)
It works, I need a larger list of words not to use I guess. It's pretty simple.

I would like someone to make a tagger where we can set the tags we want, that works.

what do you mean, you would like to have a list of words that are added to every thread?

or a list of words that if the title matches it adds them to the tag box?

oddmud 02-11-2010 05:26 PM

Quote:

Originally Posted by testbot (Post 1980112)
what do you mean, you would like to have a list of words that are added to every thread?

or a list of words that if the title matches it adds them to the tag box?

IE: I can set the tags, instead of setting the non-tags to leave out.

So if I only wanted it to pick up 30 words or so for tagging purposes it would.

I hope that's clear, it is in my head. :P

murekhalir 02-11-2010 05:57 PM

how does this differ from:

https://vborg.vbsupport.ru/showthread.php?t=234026

testbot 02-12-2010 12:40 AM

Quote:

Originally Posted by oddmud (Post 1980132)
IE: I can set the tags, instead of setting the non-tags to leave out.

So if I only wanted it to pick up 30 words or so for tagging purposes it would.

I hope that's clear, it is in my head. :P

that would be pretty easy to add to the next release. i think i'll check out the one below and see if it's better though before i start really developing it past beta. no reason to waste everyone's time if something better is already out there.

Quote:

Originally Posted by murekhalir (Post 1980151)

i couldn't find any tagger for 4.0 and i kept asking in the old tagger threads if there would be any vb4 releases and nobody answered. i got tired of waiting so i made my own.

i guess the major difference is that there's no database changes and it's really fast.

i'll check that one out and if it works well i'll take this down. i would rather not support something that already exists.

murekhalir 02-12-2010 06:13 AM

Didn't mean to kill your mod at all -i just have the first one installed, if yours is different then its all good~ Just wanted to know ;P

Extra PC 02-12-2010 07:41 AM

work with me but it's not support arabic

إكسترا l كرتون l جيمز l سوفت


thanx any way man

vexvegaz 02-12-2010 03:29 PM

there seems to be incompatibility issues with this mod and vbookie 4.0, when both vbookie and amp tagger are both enabled. the newpost page draws a blank.

any idea of a quick fix?

Arsh 02-13-2010 03:06 AM

Quote:

Originally Posted by testbot (Post 1980112)

not at all. this add-on uses only javascript and doesn't make any database changes. when do you get that error? did you have another tag mod installed that made database changes?

Nevermind I fixed it. Not related to the mod.

testbot 02-13-2010 06:05 PM

Quote:

Originally Posted by murekhalir (Post 1980151)

i've been testing that this weekend and don't see any tags in any threads. i'm not sure how that's suppose to work.

mitch84 02-14-2010 04:22 AM

installed, work fine, thx

testbot 02-15-2010 06:22 PM

Quote:

Originally Posted by Arsh (Post 1981157)
Nevermind I fixed it. Not related to the mod.

good to hear!

Quote:

Originally Posted by vexvegaz (Post 1980858)
there seems to be incompatibility issues with this mod and vbookie 4.0, when both vbookie and amp tagger are both enabled. the newpost page draws a blank.

any idea of a quick fix?

i haven't installed vbookie. do you know if it has any parse_template plugins? if you're not sure, i can install it and take a look.

Quote:

Originally Posted by Extra PC (Post 1980601)
work with me but it's not support arabic

إكسترا l كرتون l جيمز l سوفت


thanx any way man

i'm not sure how to use javascript regex & arabic. sorry :(

if anyone is good at porting to other languages i'm all for it.

Quote:

Originally Posted by murekhalir (Post 1980566)
Didn't mean to kill your mod at all -i just have the first one installed, if yours is different then its all good~ Just wanted to know ;P

ok, i've been messing with that other one for a few days now and i just can't get it to work as it's described.

that means i will keep this up and continue to develop it. i think since it's simple, fast and requires no database changes it's worth while to invest our time in.

Quote:

Originally Posted by oddmud (Post 1980132)
IE: I can set the tags, instead of setting the non-tags to leave out.

So if I only wanted it to pick up 30 words or so for tagging purposes it would.

I hope that's clear, it is in my head. :P

this is a great suggestion and i'll try to add it in the next release :D


All times are GMT. The time now is 01:03 PM.

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.01490 seconds
  • Memory Usage 1,860KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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