Okay, I see. Is there anyway I can edit the raw versions of the templates through plugins?
--------------- Added [DATE]1212182629[/DATE] at [TIME]1212182629[/TIME] ---------------
Oh wait, can't I use something like this in the plugin code?
PHP Code:
if (($vbulletin->THIS_SCRIPT == 'showthread' OR $vbulletin->THIS_SCRIPT == 'showpost') AND $vbulletin->$post[field6]) // I have no clue if that would be right
{
$vbulletin->cachedtemplates['postbit'] = str_replace('$post[age]</div>', '$post[age]</div> <div class=\"postbit\">$vbphrase[gender]: <img src=\"$stylevar[imgdir_misc]/$post[field6].gif\" alt=\"$post[field6]\" />', $vbulletin->cachedtemplates['postbit']);
}
else if ($vbulletin->THIS_SCRIPT == 'memberlist') // again, no idea if that is even possible
{
if ($vbulletin->$userinfo[field6]) // be gentle
{
$vbulletin->cachedtemplates['memberlist_resultsbit'] = str_replace('$userinfo[usertitle]</div>', '$userinfo[usertitle]</div> <div class=\"smallfont\">$vbphrase[gender] <img src=\"$stylevar[imgdir_misc]/$userinfo[field6].gif\" alt=\"$userinfo[field6]\" /></div>', $vbulletin->cachedtemplates['memberlist_resultsbit']);
}
}
I know that must look horrible and completely incorrect, but could I use
something like that (if the code and variables were right)?