Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
embed-friendly themes
Rajio
✭
I want to make an embed-friendly theme for my vanilla forum. I'm going to use the official embed-friendly theme as a skeleton and work around modifying that to suit my needs. Other than colour changes, the only layout mods I'll probably do would be to remove the sidebar (and integrate it to a horizontal format for better embedding) Looking at it now, I have one question.
What is this /views/default.master.tpl file all about? Perhaps with some explanation I can leverage it to my advantage.
What is this /views/default.master.tpl file all about? Perhaps with some explanation I can leverage it to my advantage.
0
Comments
/views/default.master.tpl is the master view for the theme. Every user-facing page (ie. not dashboard) uses it to draw the header and footer, and all content (panel, page content, etc) is placed within it. It uses a "tpl" extension because it uses smarty. If you want to start fresh with a PHP version instead of smarty, delete that file and copy in the php version from your /applications/dashboard/views/default.master.php
<script type="text/javascript"> var myp='/categories/testcat'; </script>
In remote.js I changed Line 132 (Version 1.8.3) to:
return 'http://' + host + path + concat + 'remote=' + encodeURIComponent(embedUrl)+'&p=' + myp;
So Vanilla jumps directly into the defined cat before. That seems to work.
One thing it's noticably missing is the site logo/title. I would like to edit the default.master.tpl file to have after line 7. obviously such that siteurl, title, and logourl are populated with the correct values. How would I accomplish this?