MyBB Community Forums

Full Version: issue while loading custom templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, i got an issue i've got a Custom Template made inside Index Template and made the name of it as Index_WatchVideo, when i call that template inside index template using this command 
{$WatchVideo}

it doesn't load at all that happened after upgrading to the latest version of MyBB.
is there a solution ??
Quote:... that happened after upgrading to the latest version of MyBB
custom template does not load directly. it needs a plugin.
well i used to make it work without any issues before upgrading to 1.8.20 idk whether you got what i meant, but it's a template that got a little code as <map> and <img> it doesn't use php or something, 
that's how the index template looks like
[Image: Image-6.png]
and that's how the template looks like from the inside 
[Image: Image-7.png]
^ $WatchVideo variable should have been defined in index.php file of your earlier MyBB version !

[related details can be seen at replies here]

However,
I'd prefer using template conditionals plugin & load custom template at required location
ah i see i managed to do it, after adding this line
eval("\$WatchVideo = \"".$templates->get("index_WatchVideo")."\";"); 
in that thread Here, i guess i forgot to do it, since when i upgraded i replaced all the files even index.php.
thanks a lot