What was the point in making us register variables?
To me it is nothing but a pain in the rear end.
When you want to register a variable to pull in your template you have to register it in every template that is around yours.
For instance I am trying to use
I have to register it in my template and preregister 3 other templates to get it to show on the postbit_legacy template and it still don't want to show.
Why should it be that stupid. That is tons of extra code we shouldn't have to type.
I remember when you could just use
I don't mind typing
But for me to have to type
Code:
$templater->register('modcpdir', $modcpdir);
and
Code:
vB_Template::preRegister('showthread',array('modcpdir' => $modcpdir));
vB_Template::preRegister('postbit_legacy',array('modcpdir' => $modcpdir));
and so on for each template that wraps around mine.
Just to return $modcpdir is totally insane.