Can you not just drop these from the template? I haven't checked but I thought almost everything was optional via templates. I'm sure you could also do a work around using phpinclude (which means you not buggering source code).
I'm trying to do quite a lot of stuff from phpinclude, which if you know what variables are available to you, can be pretty useful. I'm still trying to find out if I can get the 'name' of the $styleid available to use in phpinclude (which would be dam useful!!!!).
Say you didn't want to use a different replacement set, or template set for you character profiles: Maybe you could just set a new style set for that forum which uses the same temp/rep set.
Call it something like "CharaterProfile" if you had this as a variable to reference in phpinclude you could do something like:
if ($styleid[name]?? == "CharaterProfile")
{
$Varible_for_Edit_GIF = $styleid[name] . "edit.gif";
}
(First you may need to pass the styleid to submit.php - but you can do this via appending &styleid=X in the template - or you could just append your own varibiable - which if present runs another script in phpinclude etc etc)
or something along those lines. If you get away from useing the 'replacement sets' to alter 'replacement variable' and set them from phpinclude you have a lot more flexibility. You can run switch() statements relating to forum: name, number, styleid etc etc then create you replaceables as variable to drop into templates.
Hope this may help you in what you are after - or maybe I'm on the wrong track.
PS - Anyone know with variable holds or how I could get hold of the NAME of styleid in phpinclude I'd be really greatful.
Cheers
|