Posted on: 03/01/05 04:21pm
By: ByteEnable
<a href="http://www.somewhere.com>Some Where</a>
$parms = explode (':', $parms[0]); // START NEW CODE if ( $parms[2] == '' ) { $p_parms1 = $parms[1]; } else { $p_parms1 = $parms[1] . ':' . $parms[2]; } // END NEW CODE $newtag = array ( 'module' => $module, 'tag' => $moduletag, 'tagstr' => $tag, 'startpos' => $start_pos, 'length' => $taglength, 'parm1' => $p_parms1, // Replace with new variable 'parm2' => $label );
$autolinkModules = array ('story' => 'geeklog','oslink' => 'geeklog','event' => 'geeklog');
if ($autotag['module'] == 'geeklog') { $url = ''; $linktext = $autotag['parm2']; // START NEW CODE if ($autotag['tag'] == 'oslink') { $autotag['parm1'] = COM_applyFilter ($autotag['parm1']); $content = str_replace($autotag['tagstr'],'<a href="' . $autotag['parm1'] .'">' . $linktext . '</a>',$content); } // END NEW CODE
Posted on: 03/01/05 06:34pm
By: drshakagee
[oslink:www.somewhere.com Some Where]
Posted on: 03/01/05 06:42pm
By: ByteEnable
Posted on: 03/01/05 06:50pm
By: drshakagee
Posted on: 08/20/05 01:27am
By: Flernk
<a href="">href="http://www.feb28.com">http://www.feb28.com</a> Testing</a>
$parms = explode (':', $parms[0]); // START NEW CODE if ( $parms[2] == '' ) { $p_parms1 = $parms[1]; } else { $p_parms1 = $parms[1] . ':' . $parms[2]; } // END NEW CODE $newtag = array ( 'module' => $module, 'tag' => $moduletag, 'tagstr' => $tag, 'startpos' => $start_pos, 'length' => $taglength, 'parm1' => $p_parms1, // Replace with new variable 'parm2' => $label ); $tags[] = $newtag; } else { /* Error tags do not match - return with no changes */ return $content . $LANG32['32']; } $prev_offset = $offset; $offset = $end_pos; } else { $prev_offset = $end_pos; $end_pos = $strlen; $offset = $strlen; } } } // If we have found 1 or more AutoLink tag if (count ($tags) > 0) { // Found the [tag] - Now process them all foreach ($tags as $autotag) { $function = 'plugin_autotags_' . $autotag['module']; if ($autotag['module'] == 'geeklog') { $url = ''; $linktext = $autotag['parm2']; // START NEW CODE if ($autotag['tag'] == 'go') { $autotag['parm1'] = COM_applyFilter ($autotag['parm1']); $content = str_replace($autotag['tagstr'],'<a href="' . $autotag['parm1'] .'">' . $linktext . '</a>',$content); } // END NEW CODE
Posted on: 08/20/05 02:28am
By: Flernk