


$EMBB_widths = array(''Mistainu wrote:someone reply with a YES?
#
#-----[ OPEN ]---------------------------------------
#
open templates/subSilver/bbcode.tpl
#
#-----[ FIND ]---------------------------------------
#
<!-- BEGIN wiki --><a href="http://en.wikipedia.org/wiki/{QUERY}" target="_blank">{STRING}</a><!-- END wiki -->
#
#-----[ REPLACE WITH ]-------------------------------
#
<!-- BEGIN wiki --><a href="http://en.wikipedia.org/wiki/{QUERY}" target="_blank" class="postlink">{STRING}</a><!-- END wiki -->
in bbcode.php add...
$bbcode_tpl['wiki'] = str_replace('{STRING}', '\\1', $bbcode_tpl['wiki']);
// [wiki]string for wiki[/wiki] code..
$patterns[] = "#\[wiki\](.*?)\[/wiki\]#si";
$replacements[] = $bbcode_tpl['wiki'];
in bbcode.tpl add...
<!-- BEGIN wiki --><a href="http://en.wikipedia.org/wiki/{STRING}" target="_blank" class="postlink">{STRING}</a><!-- END wiki -->http://en.wikipedia.org/wiki/strawberry+fields+foreverhttp://en.wikipedia.org/wiki/strawberry_fields_forever$bbcode_tpl['wiki'] = str_replace('{QUERY}', "' . urlencode(str_replace('\\\"', '\"', '\\1')) . '", $bbcode_tpl['wiki']);$bbcode_tpl['wiki'] = str_replace('{QUERY}', "' . urlencode(str_replace(' ', '_', str_replace('\\\"', '\"', '\\1'))) . '", $bbcode_tpl['wiki']);
Return to [2.0.x] MOD Database Releases
Users browsing this forum: No registered users and 7 guests