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 forum
jes269
New
I am new to Vanilla (I have past experience with vBulletin and xenForo) and am attempting to integrate the Bootstrap theme into my site template. I think the easiest way to do this, since my template requires PHP, is to use the Universal Forum Embed Code. Does this sound right? If so, how can I do this and still keep my forum at /community/? i.e. there's already an index.php in that directory, so where do I put my new PHP file that includes the template and the embed code? Thank you.
0
Comments
Yes, embedding is the easiest way, but if you have full control over the site, you may wanna consider modifying your default.master.tpl to match the rest of your site instead.
You cannot embed from the same place your forum is located.
If your embedded forum should be reachable under /community/, youhave to move the actual forum to a different location.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
There's no way to modifying defaul.master.tpl and having any sort of dynamic PHP, right?
There is, you can use smarty functions and variables.
These are the functions that are available:
https://github.com/vanilla/vanilla/tree/2.1/library/vendors/SmartyPlugins
But you can even build your own:
http://vanillaforums.org/discussion/27767/how-to-create-custom-smarty-functions
Basic control structures in smarty:
http://www.smarty.net/docsv2/en/language.function.if.tpl
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS