Quote:
Originally Posted by gedsta
Hello Logician
Could you please help with a small query?
I am using Everywhere Sidebar Mod and have followed these instructions.
Open your custom template search for
{vb:raw navbar}
add below
{vb:raw sidebaropen}
search for
{vb:raw footer}
add above
{vb:raw sidebarext}
save
But I am stuck at this part,
3. Open custom page php file and before the render line "$templater->render();" add
$templater->register('sidebarext', $sidebarext);
$templater->register('sidebaropen', $sidebaropen);
assuming you are using $templater as variable change it as required
save and upload you php file
Any pointers?
Thanks.
|
I haven't tested it but I believe what you need to do is to edit "view.php", find:
PHP Code:
print_output($templater->render());
and before that add:
PHP Code:
$templater->register('sidebarext', $sidebarext);
$templater->register('sidebaropen', $sidebaropen);
In view.php, there are several of these lines so you should do that change for each of them.
Also please note that integrating that hack with webtemplates can be tricky as webtemplates is more sophisticated than other simple vb hacks. It can use several designs (themes, HTML parsing, PHP parsing, VB code parsing) etc. so trying to add a sidebar there might not always work, it can break layout in certain scenarios. If you encounter such a problem, you need to get a designer to fix these layout problems for you.
So give it shot but don't expect miracles.