From 8aec141d83ca4d3a9b132ab39949726611a942ff Mon Sep 17 00:00:00 2001 From: Miriam Ruiz Date: Tue, 14 Sep 2010 18:16:32 +0200 Subject: [PATCH] Fixed minor things and added missing file --- extensions/JQE/settings.php | 2 +- extensions/TagThis/library/CommonList.inc.php | 107 ++++++++++++++++++++++++ extensions/TagThis/library/Function.TagThis.php | 3 +- themes/miry/styles/default/vanilla.css | 4 +- 4 files changed, 111 insertions(+), 5 deletions(-) create mode 100644 extensions/TagThis/library/CommonList.inc.php diff --git a/extensions/JQE/settings.php b/extensions/JQE/settings.php index 4de2912..4aaaea8 100644 --- a/extensions/JQE/settings.php +++ b/extensions/JQE/settings.php @@ -3,7 +3,7 @@ $Context->SetDefinition('JQE', '(X)HTML'); //Secure xhtml tags and attribue. Might need to add some control on the value -$JQE_allowed_tags = array( 'a' => array('accesskey' => 1, 'class' => 1, 'href' => array('maxlen' => 100), 'tabindex' => 1, 'title' => 1, 'target' => 1), +$JQE_allowed_tags = array( 'a' => array('accesskey' => 1, 'class' => 1, 'href' => array('maxlen' => 200), 'tabindex' => 1, 'title' => 1, 'target' => 1), 'abbr' => array('class' => 1 , 'title' => 1), 'acronym' => array('class' => 1 , 'title' => 1), 'address' => array('class' => 1, 'title' => 1), diff --git a/extensions/TagThis/library/CommonList.inc.php b/extensions/TagThis/library/CommonList.inc.php new file mode 100644 index 0000000..43c8657 --- /dev/null +++ b/extensions/TagThis/library/CommonList.inc.php @@ -0,0 +1,107 @@ + \ No newline at end of file diff --git a/extensions/TagThis/library/Function.TagThis.php b/extensions/TagThis/library/Function.TagThis.php index d16bf72..c287b67 100644 --- a/extensions/TagThis/library/Function.TagThis.php +++ b/extensions/TagThis/library/Function.TagThis.php @@ -49,8 +49,7 @@ function GetTitleTags($title) $title = ereg_replace("[^A-Za-z0-9 ]", "", $title); //Found both these lists - one has a lot less than the other, but might be less harsh -// $commonWords = array('able', 'about', 'after', 'again', 'all', 'also', 'and', 'any', 'are', 'bad', 'been', 'before', 'being', 'between', 'but', 'came', 'can', 'cause', 'change', 'come', 'could', 'did', 'differ', 'different', 'does', 'don', 'down', 'each', 'end', 'even', 'every', 'far', 'few', 'for', 'form', 'found', 'four', 'from', 'get', 'good', 'great', 'had', 'has', 'have', 'her', 'here', 'him', 'his', 'how', 'into', 'its', 'just', 'keep', 'let', 'many', 'may', 'might', 'more', 'most', 'much', 'must', 'near', 'need', 'never', 'new', 'next', 'not', 'now', 'off', 'one', 'only', 'other', 'our', 'out', 'over', 'part', 'put', 'said', 'same', 'say', 'seem', 'set', 'should', 'side', 'some', 'still', 'such', 'take', 'than', 'that', 'the', 'their', 'them', 'then', 'there', 'these', 'they', 'thing', 'this', 'three', 'through', 'too', 'two', 'upon', 'use', 'very', 'was', 'way', 'went', 'were', 'what', 'when', 'where', 'which', 'while', 'who', 'will', 'with', 'would', 'you', 'your', ); - $commonWords = array('a','able','about','above','abroad','according','accordingly','across','actually','adj','after','afterwards','again','against','ago','ahead','aint','all','allow','allows','almost','alone','along','alongside','already','also','although','always','am','amid','amidst','among','amongst','an','and','another','any','anybody','anyhow','anyone','anything','anyway','anyways','anywhere','apart','appear','appreciate','appropriate','are','arent','around','as','as','aside','ask','asking','associated','at','available','away','awfully','b','back','backward','backwards','be','became','because','become','becomes','becoming','been','before','beforehand','begin','behind','being','believe','below','beside','besides','best','better','between','beyond','both','brief','but','by','c','came','can','cannot','cant','cant','caption','cause','causes','certain','certainly','changes','clearly','cmon','co','co.','com','come','comes','concerning','consequently','consider','considering','contain','containing','contains','corresponding','could','couldnt','course','cs','currently','d','dare','darent','definitely','described','despite','did','didnt','different','directly','do','does','doesnt','doing','done','dont','down','downwards','during','e','each','edu','eg','eight','eighty','either','else','elsewhere','end','ending','enough','entirely','especially','et','etc','even','ever','evermore','every','everybody','everyone','everything','everywhere','ex','exactly','example','except','f','fairly','far','farther','few','fewer','fifth','first','five','followed','following','follows','for','forever','former','formerly','forth','forward','found','four','from','further','furthermore','g','get','gets','getting','given','gives','go','goes','going','gone','got','gotten','greetings','h','had','hadnt','half','happens','hardly','has','hasnt','have','havent','having','he','hed','hell','hello','help','hence','her','here','hereafter','hereby','herein','heres','hereupon','hers','herself','hes','hi','him','himself','his','hither','hopefully','how','howbeit','however','hundred','i','id','ie','if','ignored','ill','im','immediate','in','inasmuch','inc','inc.','indeed','indicate','indicated','indicates','inner','inside','insofar','instead','into','inward','is','isnt','it','itd','itll','its','its','itself','ive','j','just','k','keep','keeps','kept','know','known','knows','l','last','lately','later','latter','latterly','least','less','lest','let','lets','like','liked','likely','likewise','little','look','looking','looks','low','lower','ltd','m','made','mainly','make','makes','many','may','maybe','maynt','me','mean','meantime','meanwhile','merely','might','mightnt','mine','minus','miss','more','moreover','most','mostly','mr','mrs','much','must','mustnt','my','myself','n','name','namely','nd','near','nearly','necessary','need','neednt','needs','neither','never','neverf','neverless','nevertheless','new','next','nine','ninety','no','nobody','non','none','nonetheless','noone','no-one','nor','normally','not','nothing','notwithstanding','novel','now','nowhere','o','obviously','of','off','often','oh','ok','okay','old','on','once','one','ones','ones','only','onto','opposite','or','other','others','otherwise','ought','oughtnt','our','ours','ourselves','out','outside','over','overall','own','p','particular','particularly','past','per','perhaps','placed','please','plus','possible','presumably','probably','provided','provides','q','que','quite','qv','r','rather','rd','re','really','reasonably','recent','recently','regarding','regardless','regards','relatively','respectively','right','round','s','said','same','saw','say','saying','says','second','secondly','see','seeing','seem','seemed','seeming','seems','seen','self','selves','sensible','sent','serious','seriously','seven','several','shall','shant','she','shed','shell','shes','should','shouldnt','since','six','so','some','somebody','someday','somehow','someone','something','sometime','sometimes','somewhat','somewhere','soon','sorry','specified','specify','specifying','still','sub','such','sup','sure','t','take','taken','taking','tell','tends','th','than','thank','thanks','thanx','that','thatll','thats','thats','thatve','the','their','theirs','them','themselves','then','thence','there','thereafter','thereby','thered','therefore','therein','therell','therere','theres','theres','thereupon','thereve','these','they','theyd','theyll','theyre','theyve','thing','things','think','third','thirty','this','thorough','thoroughly','those','though','three','through','throughout','thru','thus','till','to','together','too','took','toward','towards','tried','tries','truly','try','trying','ts','twice','two','u','un','under','underneath','undoing','unfortunately','unless','unlike','unlikely','until','unto','up','upon','upwards','us','use','used','useful','uses','using','usually','v','value','various','versus','very','via','viz','vs','w','want','wants','was','wasnt','way','we','wed','welcome','well','well','went','were','were','werent','weve','what','whatever','whatll','whats','whatve','when','whence','whenever','where','whereafter','whereas','whereby','wherein','wheres','whereupon','wherever','whether','which','whichever','while','whilst','whither','who','whod','whoever','whole','wholl','whom','whomever','whos','whose','why','will','willing','wish','with','within','without','wonder','wont','would','wouldnt','x','y','yes','yet','you','youd','youll','your','youre','yours','yourself','yourselves','youve','z','zero'); + include('CommonList.inc.php'); $tags = explode(" ", $title); diff --git a/themes/miry/styles/default/vanilla.css b/themes/miry/styles/default/vanilla.css index 1cbdd08..b4673b2 100644 --- a/themes/miry/styles/default/vanilla.css +++ b/themes/miry/styles/default/vanilla.css @@ -673,8 +673,8 @@ select option.InfoOption:before { #Comments blockquote { padding:8px 16px; margin:0 0 8px; - background-color: #E5EAF6; - border-left: 6px solid #ACBEDF; + background-color: #FAEFFF; + border-left: 6px solid #E4D6E3; color:#56568F; } #Comments blockquote blockquote { -- 2.11.4.GIT