[geeklog-devel] HACK request for CVS
Joe Mucchiello
joe at ThrowingDice.com
Wed Sep 19 01:32:27 EDT 2007
Can this be done?
Add a parameter to PLG_replaceTags:
function PLG_replaceTags($content, $plugin = '', $extra = '')
And later:
$newtag = array (
'module' => $module,
'tag' => $moduletag,
'tagstr' => $tag,
'startpos' => $start_pos,
'length' => $taglength,
'parm1' => str_replace (']', '', $tagid),
'parm2' => $label,
'extra' => $extra
Finally, go to the 10 or so core calls to PLG_replaceTags and add the
extra parameter as appropriate:
PLG_replaceTags($story_text, '', Array('source' => 'story',
'id' => $sid));
PLG_replaceTags($comment, '', Array('source' => 'comment', 'id'
=> $cid));
PLG_replaceTags($content, '', Array('source' => 'staticpage',
'id' => $sp_id));
PLG_replaceTags($blockcontent, '', Array('source' => 'block',
'id' => $bid));
PLG_replaceTags($description, '', Array('source' => 'calendar',
'id' => $eid));
Any chance that can happen?
----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com
More information about the geeklog-devel
mailing list