really need something like the "tools" mod here at the videohelp forum, i.e. when you type vdub you automatically get a link to vdub in the tools section. i've seen a few "lexicon" mods, but they don't seem to insert links to the entries into the main forum posts. thanks.
+ Reply to Thread
Results 1 to 3 of 3
-
-
smart_tags.zip
From: http://www.netclectic.com/index.php
You need to register for the forum to gain acess to it. It's a beta mod and doesn't work 100%, if the word your tagging appears in the URL it will break the URL.
Also you need to apply this fix to the mod file, replace the smart_tag_pass function in bbcode.php with this one. Otherwise it's case sensitive:
Code:function smart_tag_pass($message) { static $orig, $repl; if( !isset($orig) ) { global $db, $board_config; $orig = $repl = array(); $sql = 'SELECT * FROM ' . SMART_TAGS_TABLE; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain smart tags data", "", __LINE__, __FILE__, $sql); } $smart_tags = $db->sql_fetchrowset($result); if( count($smart_tags) ) { usort( $smart_tags, 'smart_tag_sort' ); } for ($i = 0; $i < count($smart_tags); $i++) { //$orig[] = '#\b(' . phpbb_preg_quote( $smart_tags[$i]['smart_tag'], "/") . ')\b#'; //$repl[] = '' . $smart_tags[$i]['smart_tag'] . ''; ; $orig[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote( $smart_tags[$i]['smart_tag'], '#')) . ')\b#i'; $repl[] = ' . ']' . $smart_tags[$i]['smart_tag'] . ''; } } if( count( $orig ) ) { $segments = preg_split( '#(<.+?>)|(\[url\].+?\[\/url\])|(\[img\].+?\[\/img\])|(\[code\].+?\[\/code\])|(\[email\].+?\[\/email\])|(\[acronym=.+?\].+?\[\/acronym\])|(\[.+?\].+?\[.+?\])#s' , $message, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); $message = ''; foreach( $segments as $seg ) { if( $seg[0] != '<' && $seg[0] != '[' ) { $message .= str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?)))*)\<))#sei', "preg_replace(\$orig, \$repl, '\\0')", '>' . $seg . '<'), 1, -1)); } else { $message .= $seg; } } } return $message; }
Similar Threads
-
MOD to DVD
By YCC in forum Newbie / General discussionsReplies: 6Last Post: 21st Feb 2010, 15:51 -
.MOD problems
By acdc20 in forum Video ConversionReplies: 4Last Post: 6th Jan 2010, 13:55 -
satstorm mod
By minidv2dvd in forum FeedbackReplies: 4Last Post: 13th Jun 2009, 04:05 -
Would it be possible to "killfile" in phpbb?
By Midzuki in forum FeedbackReplies: 1Last Post: 12th Dec 2007, 11:08