Changeset 158
- Timestamp:
- 01/03/08 13:36:59 (5 years ago)
- Location:
- taggingreloaded
- Files:
-
- 1 added
- 10 modified
-
files/icon/tagging16.png (modified) (previous)
-
files/icon/tagging24.png (modified) (previous)
-
files/icon/tagging32.png (modified) (previous)
-
files/icon/tagging48.png (modified) (previous)
-
files/icon/tagging64.png (modified) (previous)
-
files/icon/tagging96.png (modified) (previous)
-
files/lib/util/TaggingReloadedUtil.class.php (modified) (3 diffs)
-
install.sql (modified) (1 diff)
-
optionals/de.easy-coding.wbb.taggingreloaded/files/lib/acp/action/UpdateTaggingReloadedAction.class.php (modified) (1 diff)
-
package.xml (modified) (4 diffs)
-
update.sql (added)
Legend:
- Unmodified
- Added
- Removed
-
taggingreloaded/files/lib/util/TaggingReloadedUtil.class.php
r110 r158 10 10 class TaggingReloadedUtil { 11 11 protected static $stopwordList; 12 protected static $systemTaggerUserID = 0; // unsigned int 12 13 13 14 /** … … 70 71 71 72 // find words beginning with capitals 72 // TODO: does this make any sense? just germany hasuses big capitals!? what about the umlauts?73 preg_match_all('/([A-Z] \w+)/e', $text, $words);73 // TODO: does this make any sense? just germany uses big capitals!? what about the umlauts? 74 preg_match_all('/([A-Z][\wÀöÌÃÃÃÃ]+)/e', $text, $words); 74 75 75 76 // lower them … … 114 115 if(count($tags) == 0) return; 115 116 116 $userID = $userID === null ? WCF::getUser()->userID : -1;117 $userID = $userID === null ? WCF::getUser()->userID : self::$systemTaggerUserID; 117 118 118 119 // INSERT tags -
taggingreloaded/install.sql
r102 r158 3 3 taggingID int(10) unsigned NOT NULL, 4 4 userID int(10) unsigned NOT NULL, 5 tag varchar(96) NOT NULL DEFAULT '',5 tag varchar(96) collate utf8_bin NOT NULL DEFAULT '', 6 6 weight smallint(2) unsigned NOT NULL, 7 PRIMARY KEY (taggingID, userID, tag) 8 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 7 PRIMARY KEY (taggingID, userID, tag), 8 INDEX tag (tag) 9 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin; 9 10 10 11 DROP TABLE IF EXISTS wcf1_taggingreloaded_stopwords; -
taggingreloaded/optionals/de.easy-coding.wbb.taggingreloaded/files/lib/acp/action/UpdateTaggingReloadedAction.class.php
r126 r158 59 59 public function execute() { 60 60 parent::execute(); 61 62 if($this->loop == 0) { 63 // dead connections? 64 $sql = "DELETE FROM wbb".WBB_N."_taggingreloaded, 65 wcf".WCF_N."_taggingreloaded 66 USING wbb".WBB_N."_taggingreloaded 67 NATURAL LEFT JOIN wcf".WCF_N."_taggingreloaded 68 WHERE ISNULL(postID)"; 69 WCF::getDB()->sendQuery($sql); 70 } 61 71 62 72 $text = ''; -
taggingreloaded/package.xml
r107 r158 5 5 <packagename>Tagging Reloaded</packagename> 6 6 <packagedescription>Tagging Reloaded does not mean just tagging. It's much more!</packagedescription> 7 <version>0.5. 0</version>7 <version>0.5.1</version> 8 8 <date>DATE</date> 9 9 <plugin>com.woltlab.wcf</plugin> … … 38 38 </instructions> 39 39 40 <instructions type="update" fromversion="0.5.0"> 41 <files>files.tar</files> 42 <sql>update.sql</sql> 43 </instructions> 44 40 45 <instructions type="update" fromversion="0.4.3"> 41 46 <files>files.tar</files> 47 <sql>update.sql</sql> 42 48 </instructions> 43 49 … … 45 51 <files>files.tar</files> 46 52 <templates>templates.tar</templates> 53 <sql>update.sql</sql> 47 54 <languages languagecode="de">de.xml</languages> 48 55 <languages languagecode="de-informal">de-informal.xml</languages> … … 54 61 <files>files.tar</files> 55 62 <templates>templates.tar</templates> 63 <sql>update.sql</sql> 56 64 <languages languagecode="de">de.xml</languages> 57 65 <languages languagecode="de-informal">de-informal.xml</languages>
