MyBB Community Forums

Full Version: Custom Template not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I created a custom template for my theme using the ACP. I called it portal_donate and I put in the markup for my paypal donate button.

So I go to my portal template which has the following:
<div class="portal_sidebar">
  {$latestthreads}
  {$stats}
</div>

And I change it to:
<div class="portal_sidebar">
  {$latestthreads}
  {$stats}
  {$portal_donate}
</div>

But nothing showed up when I reloaded the portal. So then I changed it to:
<div class="portal_sidebar">
  {$latestthreads}
  {$stats}
  {$donate}
</div>

But still, nothing shows up. I tried clearing my browser's cache. I rebuilt the default template cache.

I don't know what else to do. Can someone help me?


[edit]
The portal_latestthreads and the portal_stats templates DO show correctly.
That's not how the template system works.

Those are variables set by the core,
https://github.com/mybb/docs.mybb.com/bl...#structure
At the bottom.
see also replies here