SlideShare a Scribd company logo
 
Vanilla Forums Theme Guide | Version 1.3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Topics Covered
 
Introduction 
Tool Box 
Choosing Your Theme 
Homepage Layout 
Homepage 
Layouts 
Customize HTML 
Basic HTML layout 
Understanding HTML Layout 
Breaking down and customizing the code 
The HTML head element 
The HTML body element 
The Head 
The Body 
Footer 
Understanding Template Tags 
Customizing CSS 
Move the location of body and panel 
Modifications in Bootstrap theme when you add a logo 
Remove Gender from  the registration form 
Q & A Plugin 
Ranks Plugin 
Modifying CSS for Roles 
Displaying Icons For Roles and Ranks 
Add CSS for Categories 
Pockets 
Getting Started With Pockets 
Adding A Pocket 
Advance Techniques with Pockets 
Conclusion 
Appendix 
 
2
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Introduction
Congratulations on your new community! We are excited to have you as a new customer.
The next step is to make your community look great. We have created the following guide
to help you customize the look and feel of your forum. We hope you find it helpful.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Tool Box
 
To assist you in modifying the base theme, you will want to use either Google Chrome or
Mozilla Firefox that have developer tools that let you inspect the site CSS and HTML. You can
also consider free add-ons such as Firebug.
Learn more about Google Chrome Dev Tools here and Mozilla Firefox Dev Tools here. 
4
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Choosing Your Theme
 
Your first step is to choose a theme or stay with the default theme. You can change your
theme under the Appearance section of the Dashboard.
Once clicked you will see the “Manage Themes” page
Think of the theme you are choosing as a base canvas. As you make changes to the HTML
or CSS, it will override this base canvas.
 
5
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Homepage Layout
Once you have settled on a layout, and before you start modifying your HTML you will want
to consider selecting a homepage layout, as this might impact your design. 
You have three things to consider when setting the home page and layout:
1. Homepage: what will people see when they land on your forum?
2. Discussion layout: how will discussions look?
3. Category layout: What kind of page layout will categories take?
6
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Homepage
The vast majority of forums will display either the recent discussions across all categories
or a list of categories as a home page. If you have migrated your large community to Vanilla
and things were divided by categories, you might want to continue this practice . The
“Discussions” view allows your visitors to view most recent discussions, regardless of
category. This is great for newer communities with less content and it gives members a
quick view of what’s new.
There is the activity view, which turns your forum more into a social network, and just shows
off the activity in your community. Almost like a mini social network.
Finally, there is the Best of view. This is a page that will begin to populate as you get content
on your site, so it may not appear to start. Note: this page does not populate if you are not
using the Reactions feature.
Layouts
Next is the layout for the discussion list and category pages, the table layout is something
your users might be familiar with, so it’s a great choice when migrating from another
platform. We also have a more modern layout, which is our original take on the old style
table-based layout. Once you have settled on the layout it’s time to customize the template.
Note: You can can always change your layout and home page selections at a later time if you
7
 
Vanilla Forums Theme Guide | Version 1.3
 
 
choose. This might require some CSS changes.
 
 
8
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Customize HTML
Now that you have all the other stuff out of the way, it’s now time to really have fun and start
customizing some HTML. Once you are ready, click the “Customize Theme” link under the
appearance menu in the Vanilla Forums dashboard.
This will open Vanilla’s version of a theme editor with two tabs. One for HTML and one for
CSS (we will focus on the CSS later).
9
 
Vanilla Forums Theme Guide | Version 1.3
 
 
In our editor we offer the ability to preview changes before they go live, and label revisions.
This makes it easy to rollback you theme to an earlier state if you choose. You can find
revision options.
Basic HTML layout
The easiest way to decipher the HTML for your forum is to break it down into parts:
Header, which includes the menu and your logo, Content, Panel, which is your sidebar, and
Footer (see diagram below)
10
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Understanding HTML Layout
 
Breaking down and customizing the code
To help make the code easier to understand, we will break down the code into sections
starting from the top.
The HTML head element
<head>
{asset name='Head'}
</head>
The head element is a container for other head specific elements. Elements inside can
include scripts, instruct the browser where to find style sheets, provide meta information
and more. The {asset name=’Head’} tag adds the following to the head section: <base>,
<link>, <meta>, <script>, <style>, and <title>.
*NOTE: DO NOT REMOVE this tag. There is no need to add any other elements to the
head in order for your forum to function or to customize your forum.
The HTML body element
The next line of code contains 2 variables
<body id="{$BodyID}" class="{$BodyClass}">
These 2 variables enable both the default CSS (Cascading Style Sheet) and custom CSS to
properly style the look and feel of your forum – We will cover the Edit Css tab in Part 2 of
this tutorial.
*NOTE: DO NOT REMOVE this tag.
11
 
Vanilla Forums Theme Guide | Version 1.3
 
 
The Head
Not to be confused with <head></head>. <div id=”Head”> is a unique identifier (id) to an
element (div) that styles the header of your forum, which contains your logo and menu. In
some themes, (Like Bootstrap) this might be represented by <div id=”Frame”> .
The Body
Not to be confused with <body></body>. <div id=”Body”> is a unique identifier (id) to an
element (div) that styles the body (content) of your forum, which contains your discussions
and panel (sidebar).
There are 2 important elements here: <div id=”Content”> and <div id=”Panel”>.
The <div id=”Content”> is wrapped around the {asset name=”Content”} tag which displays
your helper menu and discussion list. The <div id=”Content”> controls the look and feel (can
be modified in the CSS).
The <div id=”Panel”> is wrapped around the {asset name=”Panel”} tag and depending on the
theme includes the start a new discussion, categories list, bookmarked discussions and
more. Just like with the <div id=”Content”> the <div id=”Panel”> controls the look and feel
(can be modified in the CSS).
Footer
Finally, let’s take a look at the Foot. <div id=”Foot”> is a unique identifier (id) to an element
(div) that styles the footer of your forum, which contains the “Powered by Vanilla” link.
If you are looking to learn more about HTML tags, check out w3Schools.
 
 
 
 
12
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Understanding Template Tags
A template tag is a code that instructs Vanilla to “do” or “get” something. Our template
system uses a modified smarty system. Some template tags can have values added to them.
For example, the asset tag displays blocks of information, like your discussions or the side
panel.
{asset name="Content"}
{asset name="Panel"}
The following are some of the current tags available for use as you theme:
asset : The asset tag is used to display blocks of information, like your discussions or the
side panel. This tag must have a value associated with it in order to function correctly.
Example Usage:
{asset name="$value"}
Values
● Head – Displays Head data between the <head></head> HTML tags.
● Content – Displays Discussion data.
● Panel – Displays Panel data. For example; Categories, Bookmarked Discussions,
Start New Discussion Button.
● Foot – Loads functions hidden scripts tags and other custom code in order for Vanilla
to function correctly.
________________________________________________________________________________________________________
link: The link tag is used to simplify linking to different views in your forum. For example
you can write {link path= “discussions”} inside the href HTML tag instead of the full path.
This tag must have a value associated with it in order function correctly
Values
● dashboard/settings – links to your dashboard.
13
 
Vanilla Forums Theme Guide | Version 1.3
 
 
● discussions – links to discussions, the default landing page for your forum.
● activity – links to the activity field.
● messages/inbox – links to your inbox.
● profile – links to your profile page.
● signinout – will toggle between sign in and sign out.
Example Usage:
The below examples will create a link to your dashboard inside a list element.
<li><a href="{link path="dashboard/settings"}">Dashboard</a></li>
or to an external link like your blog
<a href="{link path="http://www.somesite.com/blog/"}">Blog</a>
________________________________________________________________________________________________________
literal : The literal tag is used to enclose content that you don’t want to be parsed by the
custom theme. For example you can use this to add Google Analytics javascript code.
Example Usage:
{literal}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxx-1’]);
_gaq.push(['_setDomainName', ‘somesite.com']);
…..
</script>
{/literal}
________________________________________________________________________________________________________
logo : The logo tag is used to display a custom logo which can be uploaded under banner in
the dashboard.
Example Usage: This will display your custom logo inside an H1 tag, or banner if an image is
present.
<h1>{logo}</h1>
14
 
Vanilla Forums Theme Guide | Version 1.3
 
 
________________________________________________________________________________________________________
searchbox : The searchbox tag is used to display the default search function.
Example usage:
<div id="Search">{searchbox}</div>
If you are using Advanced Search, you will want to use: {searchbox_advanced} in your theme.
BUT this can only be used after the Advanced Search plugin has been enabled.
________________________________________________________________________________________________________
breadcrumbs :The breadcrumbs tag is used to display navigation breadcrumbs
Example Usage:
{breadcrumbs}
________________________________________________________________________________________________________
if : This is a conditional tag . This tag must have a value associated with it in order to
function correctly. You can find the full documentation for the {if} tag at:
http://www.smarty.net/docsv2/en/language.function.if.tpl
Example Usage:
{if $value}
<li><a href="{link path=“specialink/moderator”}”>Special Link</a></li>
{/if}
or an if else conditional
{if $value}
<li><a href="{link path=“specialink/moderator”}”>Special Link</a></li>
{else if $value}
<li><a href="{link path=“specialink/guest”}”>Nothing Special</a></li>
{else}
<li><a href="{link path=“specialink/member”}”>Special Link 2</a></li>
{/if}
Values (here are only a few $value examples to get you started):
15
 
Vanilla Forums Theme Guide | Version 1.3
 
 
● Content viewable by people with Manage Roles:
CheckPermission('Garden.Settings.Manage')
● Content viewable by people with Admin Roles:
CheckPermission('Garden.AdminUser.Only')
● User is signed in : $User.SignedIn
● If homepage is set to Categories show content: InSection("CategoryList")
● If category named “general” show content: $Category.Name == "General"
● If in any of the sections defined in the array: {InSection(array([sections]))}
You can also see all of the data available to you with the {debug} tag. This will launch a
popup so you may have to unblock it in your browser. (Following example shows how you
get the syntax for category)
________________________________________________________________________________________________________
debug:
Smarty has a built in debug mode which Vanilla leverages and is useful for developing
themes with. Place {debug} in the section in the HTML it will trigger Smarty's built in
variable listing. This will show you all variables set at the current scope. You can use CTRL
+F to search the data.
*Note that this template tag should never be left enabled in a production environment. A
quick way is to comment it out with smarty *, so for example {*debug*}.
16
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Customizing CSS
 
Hand in hand with customizing HTML, comes modifying CSS. Vanilla offers you the
flexibility to add whatever CSS you want and really customize the look and feel of your
community. To access the CSS editor, you just click “customize theme” in the appearance
sidebar. Once there, click the “CSS” tab and you will be presented with the following screen:
 
Like with customizing HTML, you are able to get a preview of your changes and you are
also able to roll back revisions.
While we cannot give you a course on CSS, there are plenty of great CSS resources on the
web. Using the browser development tools will be invaluable in customizing your theme,
but to help you along, below are some common CSS tweaks you can make:
Move the location of body and panel
The below will help you move the sidebar from left to right.
/* Move the sidebar from the right to the left side */
#Content {
float: right;
}
#Panel {
float: left;
}
17
 
Vanilla Forums Theme Guide | Version 1.3
 
 
You might need to do some other tweaks depending on the theme. Below is an example on
how to move the panel in the Bootstrap theme.
#Panel {
float: right;
width: 300px;
}
#Body .ContentColumn {
margin: 0 320px 0 0;
}
#Body .ContentColumn {
margin-left: 0 !important;
}
Modifications in Bootstrap theme when you add a logo
If you add a Logo image in the Bootstrap theme, here is how to move links and show search
with Bootstrap theme. You will need to make navbar bigger so search will show too.
/*Bootstrap banner & search fix */
div.NavBar {
height:90px;
}
div#Frame {
margin-top:80px;
}
div.MeWrap {
margin-top:-10px;
}
18
 
Vanilla Forums Theme Guide | Version 1.3
 
 
To move the menu bar over, you will need to close the DIV to ( so a bit of HTML)
Change:
<div class="Row">
<strong class="SiteTitle"><a href="{link path="/"}">{logo}</a></strong>
to this
<div class="Row">
<strong class="SiteTitle"><a href="{link path="/"}">{logo}</a></strong>
</div>
<div class="Row">
Remove Gender from the registration form
On the registration page, for new users, you may want to hide the gender question:
/* hide gender on registration */
li.Gender {
display:none;
}
19
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Q & A Plugin
You can modify the CSS for accepted answers if you are using the Q & A plugin.
/* Accepted Answers */
ul.AcceptedAnswers {
border: solid thick grey;
background-color: #CCC;
border-radius: 15 px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
}
Ranks Plugin
You can enter a CSS class to style anything in the comment block (comment body and
profile info). Once you turn on Ranks, the CSS class to differentiate each rank is added
automatically. As you can see the following example the Admin, is given a class called
“Rank-Admin”.
if you want to modify the looks of posts by users of certain Ranks add a custom CSS rule to
your “Edit CSS” tab in Customize Theme. For example, to change the background of
comments we can add something like:
20
 
Vanilla Forums Theme Guide | Version 1.3
 
 
li.ItemComment.Rank-Admin {
background-color: #F5F8E8;
}
For both discussions and comments use:
.ItemDiscussion, li.ItemComment.Rank-Admin {
background-color: #F5F8E8;
}
Depending on the theme, the below might work as well:
Item.Rank-Admin {
background-color: #F5F8E8;
}
If you plan to add customization to other Ranks including custom Ranks, make sure you edit
the specific Rank and give it an appropriate CSS class. In the following example, a new CSS
class called “Rank-Newb” is added to a Rank called ‘Level 1′. This keeps the naming
convention consistent and ensure no conflicts in the existing theme.
In the above examples we showed you how to change the background of specific Roles and
Ranks, but this is only the beginning. In this next section, we want to show you how you can
have a bit more fun in the customization of Roles and Ranks.
21
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Modifying CSS for Roles
If you are not using Ranks, you will want to enable the “Roles Titles” plugin. This adds a role
specific CSS class for you to target. In the following example, we can see, using Firebug (but
use whatever dev tool you like), that a new class “Role_Administrator” is added for users of
the administrator account.
The next step is to add a custom CSS rule to your “Edit CSS” tab in Customize Theme. So for
example to change the background of comments we can add something like:
li.ItemComment.Role_Administrator {
background-color: #F5F8E8;
}
If you want to change colour of the discussions started by the Administrator role use:
.Item.ItemDiscussion.Role_Administrator {
background-color: #F5F8E8;
}
If you want all content (comments and discussions) of an admin to be highlighted use:
.Item.Role_Administrator {
background-color: #F5F8E8;
}
Finally, remember to change “Role_Administrator” in the above example to the appropriate
role as needed. i.e Moderator is Role_Moderator. We have used the example of changing the
background, but you can apply any CSS changes you want.
Displaying Icons For Roles and Ranks
There are some other ways you can use CSS and images to differentiate Roles and Ranks.
Here are some other examples to get your creative juices flowing.
22
 
Vanilla Forums Theme Guide | Version 1.3
 
 
If you wanted to add a “Staff” icon to a Staff Role, for example, you can do that with CSS.
Using the “Role Titles” plugin, we get the “Role_Staff” CSS class. By using the following CSS:
.Item.Role_Staff .MItem.RoleTitle {
color: transparent;
background: no-repeat url(/https/www.slideshare.net/pathtoimage/staff.jpg);
content: " " !important;
position: absolute;
width: 30px;
margin-left: 8px;
}
We can have an end result like this:
Depending on the theme you are using, you may have to modify the CSS to fit your needs.
For Ranks, it’s a bit different. If you decide to add an image icon to a specific Rank, no
custom CSS changes are needed. To add an image icon in Ranks, the way to do this is to add
some HTML in the “Label” form field when editing a specific Ranks’ detail. For example, our
Rank Newb, example from before, you would add HTML to the label section.
23
 
Vanilla Forums Theme Guide | Version 1.3
 
 
The end result:
As you can see there is a chance to really get creative and give your community a very unique
look and feel. Please note the above examples were done using the “Bootstrap theme”, but
the concepts are the same. For best results, make sure to use a proper tools like Google Chrome
Dev Tool or Firebug to identify classes to modify.
Add CSS for Categories
When you create a new category, you have the option to add a class.
By adding this custom class you can then use CSS to alter its appearance.
/*CSS for Premium Category*/
tr.Item.Category-premium-content.Item-premium-content
{
background-color: #71ff10;
}
24
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Here is the end result
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Pockets
 
Pockets are placeholder slots available throughout your forum. They are a great way to add
little bits of HTML or Javascript to your site. If you don’t have Pockets enabled, and you are
on the Advanced plan (or higher), please send a request to support to have it turned on.
Word of caution: Pockets are extremely powerful, so they should be used with caution. The
wrong code can break your forum, so always make sure to try things first in “Test Mode”.
26
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Getting Started With Pockets
Once you have pockets enabled, you will have a new menu item in your dashboard:
On the Pocket settings page, you will see the following:
You can turn on “Show Pocket Locations” to see all the slots available on your forum. Only
Administrators can see them, so it’s a great way to see where you want to add a pocket. The
following image gives you an idea.
27
 
Vanilla Forums Theme Guide | Version 1.3
 
 
28
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Adding A Pocket
Now you are ready to add a pocket. Click the “Add Pocket” button and you will be
presented with the following page to create your pocket:
Here is some information about each part of the “Add Pocket” form:
Name: This is the name for your pocket. Give it a descriptive name to distinguish different
pockets.
Body: Here is where you can add snippets of HTML or Javascript. This is where you could
add your Adsense, Doubleclick or any Ad Network you want.
Page: Use this to control which page your pocket will appear on.
Location: This is the location of the actual pocket. So for example, discussion page or the
footer.
29
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Repeat: This is how you can decide to have your ad show every third comment in a discussion
or just have an ad just before the footer.
Conditions: With conditions, you control pocket behaviour. For example, you can create a
pocket with an ad that will only be seen on mobile devices.
Enable/Disable: You should always enable the pocket in “Test Mode” until you are happy
with the way it looks. When a pocket is in test mode, only those with Pocket Admin rights
will be able to see your content.
Advance Techniques with Pockets
 
Pockets also adds another level of customization to your site and the HTML template too.
You can add a Pocket to your template directly.
For example you can create a Pocket called “Foo” and in the body add html or JS.
The other setting are not really going to matter, as you will see in a moment. Also unlike how
you normally would enable a pocket, you will select “disabled”
The final step is add the pocket to your HTML template where you want the pocket to
appear. In the below example, we have added {pocket name="foo"} to be just above
content container.
30
 
Vanilla Forums Theme Guide | Version 1.3
 
 
And voila!
Another great aspect of this, is you can use smarty conditional tags as we showed earlier. So
for example to show “foo” on the index page if the Homepage is set to Categories, you
could do it as so:
{if InSection("CategoryList")}
{pocket name="foo"}
{/if}
If you wanted to show “foo” only in the general category, the syntax would be:
{if $Category.Name == "General"}
{pocket name="foo"}
{/if}
31
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Adding a conditional to user who is SignedIn
{if $User.SignedIn}
{pocket name="foo"}
{/if}
Adding a conditional to user who is not SignedIn
{if !$User.SignedIn}
{pocket name="foo"}
{/if}
32
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Conclusion
 
There are lots of creative ways to design a Vanilla theme and we hope this guide will help
you in creating an awesome forum theme for your community. Just remember, we could not
show you everything, but we think this guide should get you on your way...
If you still feel like this is too hard, or if you are not comfortable in doing it yourself, you can
contact our sales team for a quote on a custom theme.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Appendix
 
ATTENTION: The following information is for special VIP customers wanting to theme using
our open source project. If you are not a VIP customer, please note, files you create will
not be uploaded to our server. To get those changes to a hosted theme copy and paste to
the respective HTML and CSS tabs in the customize theme editor in your Vanilla dashboard.
Also, the below information assumes you are comfortable in using a local environment.
If you are ready to go, grab the latest version of Vanilla from Github (MASTER), so you can
customize a theme in your local environment . A theme will be composed of the following
elements:
Make a copy of the default theme in a new folder, open the about.php and change the values
so you will be able to identify it as your custom theme. The following is an explanation of
the other elements of a theme to assist you as you work on it locally.
 
34
 
Vanilla Forums Theme Guide | Version 1.3
 
 
Elements of a Theme
about.php - This file contains information about your theme, such as Theme Name, Theme
Description, Version, Author, Author Email, and AuthorUrl. This file is required to register
your theme in Vanilla so that it can be enabled via the Appearance/Themes page in the
Dashboard.
screenshot.png - A thumbnail image of your theme used to help display your theme in
Appearance/Themes page in the Dashboard.
Views Folder - This folder contains the default.master.tpl — the master view for your theme.
default.master.tpl - This file is the master view for your theme. It contains the html for the
header and footer of every page. All other views — i.e. discussions, activity, profile, and
inbox — are displayed *within* this one. So, you can use this file for customizing your banner,
logo, footer, etc. Modifications to this file will be what you will need to copy and paste over
to your hosted forum in the HTML tab.
Design Folder - This folder contains all files associated with your theme's design, such as
custom.css and all image files. We cannot import your image files. You can link to them in
your CSS or upload them once you are working on the forum.
custom.css - This file is added *after* the base theme’s css, which is contained within the
Vanilla application. This stylesheet will overrule all css rules defined in the base theme.
Modifications to this file will be what you will need to copy and paste over to your hosted
forum in the CSS tab.
****Once again, please note none of your files will be uploaded to our server. Please copy and
paste your modifications into the UI in Vanilla Forums Hosted platform. ***
35

More Related Content

What's hot (19)

Power Up Your Professional Learning Network
Power Up Your Professional Learning NetworkPower Up Your Professional Learning Network
Power Up Your Professional Learning Network
Jennifer Dorman
 
Monster list of 3,000 high quality back link source
Monster list of 3,000 high quality back link source Monster list of 3,000 high quality back link source
Monster list of 3,000 high quality back link source
blogsvht
 
PowerUpYour PPLN
PowerUpYour PPLNPowerUpYour PPLN
PowerUpYour PPLN
Jennifer Dorman
 
EDU and GOV Dofollow Backlinks 2017
EDU and GOV Dofollow Backlinks 2017EDU and GOV Dofollow Backlinks 2017
EDU and GOV Dofollow Backlinks 2017
besttopinfo
 
Strategic link building
Strategic link buildingStrategic link building
Strategic link building
Kim Cao
 
The must have guide to finding backlinks the mammoth approach
The must have guide to finding backlinks the mammoth approachThe must have guide to finding backlinks the mammoth approach
The must have guide to finding backlinks the mammoth approach
jakeyfriendship11
 
Complete Guide to Seo Footprints
Complete Guide to Seo FootprintsComplete Guide to Seo Footprints
Complete Guide to Seo Footprints
Pritesh Das
 
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website FootprintsSEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
Mark D. Griffin
 
Who Wants to Use QR Codes
Who Wants to Use QR CodesWho Wants to Use QR Codes
Who Wants to Use QR Codes
Judy Horn
 
Seo basics part 3
Seo basics part 3Seo basics part 3
Seo basics part 3
Sapan Kumar Shaw
 
All seo foot prints
All seo foot printsAll seo foot prints
All seo foot prints
azad008
 
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You NeedThe Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
frankmo920
 
Footprints for backlinks - Find quality backlinks in minutes
Footprints for backlinks - Find quality backlinks in minutesFootprints for backlinks - Find quality backlinks in minutes
Footprints for backlinks - Find quality backlinks in minutes
Seo 4 you 2
 
Power Up Your Professional Learning Network
Power Up Your Professional Learning NetworkPower Up Your Professional Learning Network
Power Up Your Professional Learning Network
Jennifer Dorman
 
Linux Vs Windows Tco Comparison
Linux Vs Windows Tco ComparisonLinux Vs Windows Tco Comparison
Linux Vs Windows Tco Comparison
askme
 
The duck soup link building guide
The duck soup link building guideThe duck soup link building guide
The duck soup link building guide
Tabish Javed
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
 
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Ronald Soh
 
Online Reputation Management presentation
Online Reputation Management presentationOnline Reputation Management presentation
Online Reputation Management presentation
Tabish Javed
 
Power Up Your Professional Learning Network
Power Up Your Professional Learning NetworkPower Up Your Professional Learning Network
Power Up Your Professional Learning Network
Jennifer Dorman
 
Monster list of 3,000 high quality back link source
Monster list of 3,000 high quality back link source Monster list of 3,000 high quality back link source
Monster list of 3,000 high quality back link source
blogsvht
 
EDU and GOV Dofollow Backlinks 2017
EDU and GOV Dofollow Backlinks 2017EDU and GOV Dofollow Backlinks 2017
EDU and GOV Dofollow Backlinks 2017
besttopinfo
 
Strategic link building
Strategic link buildingStrategic link building
Strategic link building
Kim Cao
 
The must have guide to finding backlinks the mammoth approach
The must have guide to finding backlinks the mammoth approachThe must have guide to finding backlinks the mammoth approach
The must have guide to finding backlinks the mammoth approach
jakeyfriendship11
 
Complete Guide to Seo Footprints
Complete Guide to Seo FootprintsComplete Guide to Seo Footprints
Complete Guide to Seo Footprints
Pritesh Das
 
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website FootprintsSEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
SEO Footprints by www.Netrix.co.uk - Comprehensive Guide to Website Footprints
Mark D. Griffin
 
Who Wants to Use QR Codes
Who Wants to Use QR CodesWho Wants to Use QR Codes
Who Wants to Use QR Codes
Judy Horn
 
All seo foot prints
All seo foot printsAll seo foot prints
All seo foot prints
azad008
 
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You NeedThe Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
The Ultimate Guide to Scrapebox - The Only Scrapebox Tutorial You Need
frankmo920
 
Footprints for backlinks - Find quality backlinks in minutes
Footprints for backlinks - Find quality backlinks in minutesFootprints for backlinks - Find quality backlinks in minutes
Footprints for backlinks - Find quality backlinks in minutes
Seo 4 you 2
 
Power Up Your Professional Learning Network
Power Up Your Professional Learning NetworkPower Up Your Professional Learning Network
Power Up Your Professional Learning Network
Jennifer Dorman
 
Linux Vs Windows Tco Comparison
Linux Vs Windows Tco ComparisonLinux Vs Windows Tco Comparison
Linux Vs Windows Tco Comparison
askme
 
The duck soup link building guide
The duck soup link building guideThe duck soup link building guide
The duck soup link building guide
Tabish Javed
 
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Google Search Engine Ranking Position - 200 Top Ranking Factors for SEO Marke...
Ronald Soh
 
Online Reputation Management presentation
Online Reputation Management presentationOnline Reputation Management presentation
Online Reputation Management presentation
Tabish Javed
 

Similar to Vanilla Forums Theme Guide (20)

Adding Vanilla to WordPress
Adding Vanilla to WordPressAdding Vanilla to WordPress
Adding Vanilla to WordPress
Brendan Sera-Shriar
 
Theme guide
Theme guideTheme guide
Theme guide
Chirag Jobanputra
 
Behance prosite beginners guide
Behance prosite beginners guideBehance prosite beginners guide
Behance prosite beginners guide
Microsoft
 
Hitachi Solutions Ecommerce Store Front Designer Guide
Hitachi Solutions Ecommerce Store Front Designer GuideHitachi Solutions Ecommerce Store Front Designer Guide
Hitachi Solutions Ecommerce Store Front Designer Guide
Hitachi Solutions America, Ltd.
 
Lotus Notes Blog Template
Lotus Notes Blog TemplateLotus Notes Blog Template
Lotus Notes Blog Template
projectdxguy
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Sean Burgess
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Sean Burgess
 
Creating Style Guides with Modularity in Mind
Creating Style Guides with Modularity in MindCreating Style Guides with Modularity in Mind
Creating Style Guides with Modularity in Mind
Nadya Rodionenko
 
WordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media InstituteWordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media Institute
Brendan Sera-Shriar
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
CSS
CSSCSS
CSS
tutorialsruby
 
CSS
CSSCSS
CSS
tutorialsruby
 
7 Theming in Drupal
7 Theming in Drupal7 Theming in Drupal
7 Theming in Drupal
Wingston
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
Joseph Gabriel
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
Using Wordpress with Reclaim Hosting
Using Wordpress with Reclaim HostingUsing Wordpress with Reclaim Hosting
Using Wordpress with Reclaim Hosting
Cindy Royal
 
Html
HtmlHtml
Html
yugank_gupta
 
Drupal - presentazione formazione sessione I
Drupal - presentazione formazione sessione IDrupal - presentazione formazione sessione I
Drupal - presentazione formazione sessione I
Gian Luca Matteucci
 
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
WP Engine
 
Behance prosite beginners guide
Behance prosite beginners guideBehance prosite beginners guide
Behance prosite beginners guide
Microsoft
 
Lotus Notes Blog Template
Lotus Notes Blog TemplateLotus Notes Blog Template
Lotus Notes Blog Template
projectdxguy
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Sean Burgess
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Sean Burgess
 
Creating Style Guides with Modularity in Mind
Creating Style Guides with Modularity in MindCreating Style Guides with Modularity in Mind
Creating Style Guides with Modularity in Mind
Nadya Rodionenko
 
WordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media InstituteWordPress 2.5 Overview - Rich Media Institute
WordPress 2.5 Overview - Rich Media Institute
Brendan Sera-Shriar
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
7 Theming in Drupal
7 Theming in Drupal7 Theming in Drupal
7 Theming in Drupal
Wingston
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
Using Wordpress with Reclaim Hosting
Using Wordpress with Reclaim HostingUsing Wordpress with Reclaim Hosting
Using Wordpress with Reclaim Hosting
Cindy Royal
 
Drupal - presentazione formazione sessione I
Drupal - presentazione formazione sessione IDrupal - presentazione formazione sessione I
Drupal - presentazione formazione sessione I
Gian Luca Matteucci
 
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
Modern Theming & The Future of WordPress- Working with Full Site Editing and ...
WP Engine
 
Ad

Recently uploaded (13)

Maslow’s need of hierarchy of needs.pptx
Maslow’s need of hierarchy of needs.pptxMaslow’s need of hierarchy of needs.pptx
Maslow’s need of hierarchy of needs.pptx
SheetalVatsa2
 
Goal-Setting-Strategies-PP-8-15-06 in life.ppt
Goal-Setting-Strategies-PP-8-15-06 in life.pptGoal-Setting-Strategies-PP-8-15-06 in life.ppt
Goal-Setting-Strategies-PP-8-15-06 in life.ppt
bendaribendari
 
Personal Development_ Unit 3.1. Thinking
Personal Development_ Unit 3.1. ThinkingPersonal Development_ Unit 3.1. Thinking
Personal Development_ Unit 3.1. Thinking
adeborja
 
Black Aura Meaning: Most Frequently Asked Questions Answered
Black Aura Meaning: Most Frequently Asked Questions AnsweredBlack Aura Meaning: Most Frequently Asked Questions Answered
Black Aura Meaning: Most Frequently Asked Questions Answered
Maria Hayes
 
Effective communication in the workplace
Effective communication in the workplaceEffective communication in the workplace
Effective communication in the workplace
TanveerMomin7
 
Personal Development_ Unit 3.1. Relationships
Personal Development_ Unit 3.1. RelationshipsPersonal Development_ Unit 3.1. Relationships
Personal Development_ Unit 3.1. Relationships
adeborja
 
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
shikosham
 
Map Reading & Where to Get Free Maps and Apps.pptx
Map Reading & Where to Get Free Maps and Apps.pptxMap Reading & Where to Get Free Maps and Apps.pptx
Map Reading & Where to Get Free Maps and Apps.pptx
Bob Mayer
 
effective communication in the workplace
effective communication in the workplaceeffective communication in the workplace
effective communication in the workplace
TanveerMomin7
 
Women_Empowerment_LPU_Presentation.pptx.
Women_Empowerment_LPU_Presentation.pptx.Women_Empowerment_LPU_Presentation.pptx.
Women_Empowerment_LPU_Presentation.pptx.
jinny kaur
 
BOOK REVIEW -Finding Strength in Difficult Times.pptx
BOOK REVIEW -Finding Strength in Difficult Times.pptxBOOK REVIEW -Finding Strength in Difficult Times.pptx
BOOK REVIEW -Finding Strength in Difficult Times.pptx
Samirsinh Parmar
 
Psychology_of_ Habit_Formation.pptx
Psychology_of_      Habit_Formation.pptxPsychology_of_      Habit_Formation.pptx
Psychology_of_ Habit_Formation.pptx
raghavsharma19765
 
30 Common Headings.pdf extract from social media
30 Common Headings.pdf extract from social media30 Common Headings.pdf extract from social media
30 Common Headings.pdf extract from social media
Padmasrinivas N
 
Maslow’s need of hierarchy of needs.pptx
Maslow’s need of hierarchy of needs.pptxMaslow’s need of hierarchy of needs.pptx
Maslow’s need of hierarchy of needs.pptx
SheetalVatsa2
 
Goal-Setting-Strategies-PP-8-15-06 in life.ppt
Goal-Setting-Strategies-PP-8-15-06 in life.pptGoal-Setting-Strategies-PP-8-15-06 in life.ppt
Goal-Setting-Strategies-PP-8-15-06 in life.ppt
bendaribendari
 
Personal Development_ Unit 3.1. Thinking
Personal Development_ Unit 3.1. ThinkingPersonal Development_ Unit 3.1. Thinking
Personal Development_ Unit 3.1. Thinking
adeborja
 
Black Aura Meaning: Most Frequently Asked Questions Answered
Black Aura Meaning: Most Frequently Asked Questions AnsweredBlack Aura Meaning: Most Frequently Asked Questions Answered
Black Aura Meaning: Most Frequently Asked Questions Answered
Maria Hayes
 
Effective communication in the workplace
Effective communication in the workplaceEffective communication in the workplace
Effective communication in the workplace
TanveerMomin7
 
Personal Development_ Unit 3.1. Relationships
Personal Development_ Unit 3.1. RelationshipsPersonal Development_ Unit 3.1. Relationships
Personal Development_ Unit 3.1. Relationships
adeborja
 
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
Beyond the Lampshade Woody Allen’s Unlikely Wisdom for Profound Personal Grow...
shikosham
 
Map Reading & Where to Get Free Maps and Apps.pptx
Map Reading & Where to Get Free Maps and Apps.pptxMap Reading & Where to Get Free Maps and Apps.pptx
Map Reading & Where to Get Free Maps and Apps.pptx
Bob Mayer
 
effective communication in the workplace
effective communication in the workplaceeffective communication in the workplace
effective communication in the workplace
TanveerMomin7
 
Women_Empowerment_LPU_Presentation.pptx.
Women_Empowerment_LPU_Presentation.pptx.Women_Empowerment_LPU_Presentation.pptx.
Women_Empowerment_LPU_Presentation.pptx.
jinny kaur
 
BOOK REVIEW -Finding Strength in Difficult Times.pptx
BOOK REVIEW -Finding Strength in Difficult Times.pptxBOOK REVIEW -Finding Strength in Difficult Times.pptx
BOOK REVIEW -Finding Strength in Difficult Times.pptx
Samirsinh Parmar
 
Psychology_of_ Habit_Formation.pptx
Psychology_of_      Habit_Formation.pptxPsychology_of_      Habit_Formation.pptx
Psychology_of_ Habit_Formation.pptx
raghavsharma19765
 
30 Common Headings.pdf extract from social media
30 Common Headings.pdf extract from social media30 Common Headings.pdf extract from social media
30 Common Headings.pdf extract from social media
Padmasrinivas N
 
Ad

Vanilla Forums Theme Guide

  • 1.   Vanilla Forums Theme Guide | Version 1.3                                 1
  • 2.   Vanilla Forums Theme Guide | Version 1.3     Topics Covered   Introduction  Tool Box  Choosing Your Theme  Homepage Layout  Homepage  Layouts  Customize HTML  Basic HTML layout  Understanding HTML Layout  Breaking down and customizing the code  The HTML head element  The HTML body element  The Head  The Body  Footer  Understanding Template Tags  Customizing CSS  Move the location of body and panel  Modifications in Bootstrap theme when you add a logo  Remove Gender from  the registration form  Q & A Plugin  Ranks Plugin  Modifying CSS for Roles  Displaying Icons For Roles and Ranks  Add CSS for Categories  Pockets  Getting Started With Pockets  Adding A Pocket  Advance Techniques with Pockets  Conclusion  Appendix    2
  • 3.   Vanilla Forums Theme Guide | Version 1.3     Introduction Congratulations on your new community! We are excited to have you as a new customer. The next step is to make your community look great. We have created the following guide to help you customize the look and feel of your forum. We hope you find it helpful.                               3
  • 4.   Vanilla Forums Theme Guide | Version 1.3     Tool Box   To assist you in modifying the base theme, you will want to use either Google Chrome or Mozilla Firefox that have developer tools that let you inspect the site CSS and HTML. You can also consider free add-ons such as Firebug. Learn more about Google Chrome Dev Tools here and Mozilla Firefox Dev Tools here.  4
  • 5.   Vanilla Forums Theme Guide | Version 1.3     Choosing Your Theme   Your first step is to choose a theme or stay with the default theme. You can change your theme under the Appearance section of the Dashboard. Once clicked you will see the “Manage Themes” page Think of the theme you are choosing as a base canvas. As you make changes to the HTML or CSS, it will override this base canvas.   5
  • 6.   Vanilla Forums Theme Guide | Version 1.3     Homepage Layout Once you have settled on a layout, and before you start modifying your HTML you will want to consider selecting a homepage layout, as this might impact your design.  You have three things to consider when setting the home page and layout: 1. Homepage: what will people see when they land on your forum? 2. Discussion layout: how will discussions look? 3. Category layout: What kind of page layout will categories take? 6
  • 7.   Vanilla Forums Theme Guide | Version 1.3     Homepage The vast majority of forums will display either the recent discussions across all categories or a list of categories as a home page. If you have migrated your large community to Vanilla and things were divided by categories, you might want to continue this practice . The “Discussions” view allows your visitors to view most recent discussions, regardless of category. This is great for newer communities with less content and it gives members a quick view of what’s new. There is the activity view, which turns your forum more into a social network, and just shows off the activity in your community. Almost like a mini social network. Finally, there is the Best of view. This is a page that will begin to populate as you get content on your site, so it may not appear to start. Note: this page does not populate if you are not using the Reactions feature. Layouts Next is the layout for the discussion list and category pages, the table layout is something your users might be familiar with, so it’s a great choice when migrating from another platform. We also have a more modern layout, which is our original take on the old style table-based layout. Once you have settled on the layout it’s time to customize the template. Note: You can can always change your layout and home page selections at a later time if you 7
  • 8.   Vanilla Forums Theme Guide | Version 1.3     choose. This might require some CSS changes.     8
  • 9.   Vanilla Forums Theme Guide | Version 1.3     Customize HTML Now that you have all the other stuff out of the way, it’s now time to really have fun and start customizing some HTML. Once you are ready, click the “Customize Theme” link under the appearance menu in the Vanilla Forums dashboard. This will open Vanilla’s version of a theme editor with two tabs. One for HTML and one for CSS (we will focus on the CSS later). 9
  • 10.   Vanilla Forums Theme Guide | Version 1.3     In our editor we offer the ability to preview changes before they go live, and label revisions. This makes it easy to rollback you theme to an earlier state if you choose. You can find revision options. Basic HTML layout The easiest way to decipher the HTML for your forum is to break it down into parts: Header, which includes the menu and your logo, Content, Panel, which is your sidebar, and Footer (see diagram below) 10
  • 11.   Vanilla Forums Theme Guide | Version 1.3     Understanding HTML Layout   Breaking down and customizing the code To help make the code easier to understand, we will break down the code into sections starting from the top. The HTML head element <head> {asset name='Head'} </head> The head element is a container for other head specific elements. Elements inside can include scripts, instruct the browser where to find style sheets, provide meta information and more. The {asset name=’Head’} tag adds the following to the head section: <base>, <link>, <meta>, <script>, <style>, and <title>. *NOTE: DO NOT REMOVE this tag. There is no need to add any other elements to the head in order for your forum to function or to customize your forum. The HTML body element The next line of code contains 2 variables <body id="{$BodyID}" class="{$BodyClass}"> These 2 variables enable both the default CSS (Cascading Style Sheet) and custom CSS to properly style the look and feel of your forum – We will cover the Edit Css tab in Part 2 of this tutorial. *NOTE: DO NOT REMOVE this tag. 11
  • 12.   Vanilla Forums Theme Guide | Version 1.3     The Head Not to be confused with <head></head>. <div id=”Head”> is a unique identifier (id) to an element (div) that styles the header of your forum, which contains your logo and menu. In some themes, (Like Bootstrap) this might be represented by <div id=”Frame”> . The Body Not to be confused with <body></body>. <div id=”Body”> is a unique identifier (id) to an element (div) that styles the body (content) of your forum, which contains your discussions and panel (sidebar). There are 2 important elements here: <div id=”Content”> and <div id=”Panel”>. The <div id=”Content”> is wrapped around the {asset name=”Content”} tag which displays your helper menu and discussion list. The <div id=”Content”> controls the look and feel (can be modified in the CSS). The <div id=”Panel”> is wrapped around the {asset name=”Panel”} tag and depending on the theme includes the start a new discussion, categories list, bookmarked discussions and more. Just like with the <div id=”Content”> the <div id=”Panel”> controls the look and feel (can be modified in the CSS). Footer Finally, let’s take a look at the Foot. <div id=”Foot”> is a unique identifier (id) to an element (div) that styles the footer of your forum, which contains the “Powered by Vanilla” link. If you are looking to learn more about HTML tags, check out w3Schools.         12
  • 13.   Vanilla Forums Theme Guide | Version 1.3     Understanding Template Tags A template tag is a code that instructs Vanilla to “do” or “get” something. Our template system uses a modified smarty system. Some template tags can have values added to them. For example, the asset tag displays blocks of information, like your discussions or the side panel. {asset name="Content"} {asset name="Panel"} The following are some of the current tags available for use as you theme: asset : The asset tag is used to display blocks of information, like your discussions or the side panel. This tag must have a value associated with it in order to function correctly. Example Usage: {asset name="$value"} Values ● Head – Displays Head data between the <head></head> HTML tags. ● Content – Displays Discussion data. ● Panel – Displays Panel data. For example; Categories, Bookmarked Discussions, Start New Discussion Button. ● Foot – Loads functions hidden scripts tags and other custom code in order for Vanilla to function correctly. ________________________________________________________________________________________________________ link: The link tag is used to simplify linking to different views in your forum. For example you can write {link path= “discussions”} inside the href HTML tag instead of the full path. This tag must have a value associated with it in order function correctly Values ● dashboard/settings – links to your dashboard. 13
  • 14.   Vanilla Forums Theme Guide | Version 1.3     ● discussions – links to discussions, the default landing page for your forum. ● activity – links to the activity field. ● messages/inbox – links to your inbox. ● profile – links to your profile page. ● signinout – will toggle between sign in and sign out. Example Usage: The below examples will create a link to your dashboard inside a list element. <li><a href="{link path="dashboard/settings"}">Dashboard</a></li> or to an external link like your blog <a href="{link path="http://www.somesite.com/blog/"}">Blog</a> ________________________________________________________________________________________________________ literal : The literal tag is used to enclose content that you don’t want to be parsed by the custom theme. For example you can use this to add Google Analytics javascript code. Example Usage: {literal} <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxx-1’]); _gaq.push(['_setDomainName', ‘somesite.com']); ….. </script> {/literal} ________________________________________________________________________________________________________ logo : The logo tag is used to display a custom logo which can be uploaded under banner in the dashboard. Example Usage: This will display your custom logo inside an H1 tag, or banner if an image is present. <h1>{logo}</h1> 14
  • 15.   Vanilla Forums Theme Guide | Version 1.3     ________________________________________________________________________________________________________ searchbox : The searchbox tag is used to display the default search function. Example usage: <div id="Search">{searchbox}</div> If you are using Advanced Search, you will want to use: {searchbox_advanced} in your theme. BUT this can only be used after the Advanced Search plugin has been enabled. ________________________________________________________________________________________________________ breadcrumbs :The breadcrumbs tag is used to display navigation breadcrumbs Example Usage: {breadcrumbs} ________________________________________________________________________________________________________ if : This is a conditional tag . This tag must have a value associated with it in order to function correctly. You can find the full documentation for the {if} tag at: http://www.smarty.net/docsv2/en/language.function.if.tpl Example Usage: {if $value} <li><a href="{link path=“specialink/moderator”}”>Special Link</a></li> {/if} or an if else conditional {if $value} <li><a href="{link path=“specialink/moderator”}”>Special Link</a></li> {else if $value} <li><a href="{link path=“specialink/guest”}”>Nothing Special</a></li> {else} <li><a href="{link path=“specialink/member”}”>Special Link 2</a></li> {/if} Values (here are only a few $value examples to get you started): 15
  • 16.   Vanilla Forums Theme Guide | Version 1.3     ● Content viewable by people with Manage Roles: CheckPermission('Garden.Settings.Manage') ● Content viewable by people with Admin Roles: CheckPermission('Garden.AdminUser.Only') ● User is signed in : $User.SignedIn ● If homepage is set to Categories show content: InSection("CategoryList") ● If category named “general” show content: $Category.Name == "General" ● If in any of the sections defined in the array: {InSection(array([sections]))} You can also see all of the data available to you with the {debug} tag. This will launch a popup so you may have to unblock it in your browser. (Following example shows how you get the syntax for category) ________________________________________________________________________________________________________ debug: Smarty has a built in debug mode which Vanilla leverages and is useful for developing themes with. Place {debug} in the section in the HTML it will trigger Smarty's built in variable listing. This will show you all variables set at the current scope. You can use CTRL +F to search the data. *Note that this template tag should never be left enabled in a production environment. A quick way is to comment it out with smarty *, so for example {*debug*}. 16
  • 17.   Vanilla Forums Theme Guide | Version 1.3     Customizing CSS   Hand in hand with customizing HTML, comes modifying CSS. Vanilla offers you the flexibility to add whatever CSS you want and really customize the look and feel of your community. To access the CSS editor, you just click “customize theme” in the appearance sidebar. Once there, click the “CSS” tab and you will be presented with the following screen:   Like with customizing HTML, you are able to get a preview of your changes and you are also able to roll back revisions. While we cannot give you a course on CSS, there are plenty of great CSS resources on the web. Using the browser development tools will be invaluable in customizing your theme, but to help you along, below are some common CSS tweaks you can make: Move the location of body and panel The below will help you move the sidebar from left to right. /* Move the sidebar from the right to the left side */ #Content { float: right; } #Panel { float: left; } 17
  • 18.   Vanilla Forums Theme Guide | Version 1.3     You might need to do some other tweaks depending on the theme. Below is an example on how to move the panel in the Bootstrap theme. #Panel { float: right; width: 300px; } #Body .ContentColumn { margin: 0 320px 0 0; } #Body .ContentColumn { margin-left: 0 !important; } Modifications in Bootstrap theme when you add a logo If you add a Logo image in the Bootstrap theme, here is how to move links and show search with Bootstrap theme. You will need to make navbar bigger so search will show too. /*Bootstrap banner & search fix */ div.NavBar { height:90px; } div#Frame { margin-top:80px; } div.MeWrap { margin-top:-10px; } 18
  • 19.   Vanilla Forums Theme Guide | Version 1.3     To move the menu bar over, you will need to close the DIV to ( so a bit of HTML) Change: <div class="Row"> <strong class="SiteTitle"><a href="{link path="/"}">{logo}</a></strong> to this <div class="Row"> <strong class="SiteTitle"><a href="{link path="/"}">{logo}</a></strong> </div> <div class="Row"> Remove Gender from the registration form On the registration page, for new users, you may want to hide the gender question: /* hide gender on registration */ li.Gender { display:none; } 19
  • 20.   Vanilla Forums Theme Guide | Version 1.3     Q & A Plugin You can modify the CSS for accepted answers if you are using the Q & A plugin. /* Accepted Answers */ ul.AcceptedAnswers { border: solid thick grey; background-color: #CCC; border-radius: 15 px; -webkit-border-radius: 15px; -moz-border-radius: 15px; } Ranks Plugin You can enter a CSS class to style anything in the comment block (comment body and profile info). Once you turn on Ranks, the CSS class to differentiate each rank is added automatically. As you can see the following example the Admin, is given a class called “Rank-Admin”. if you want to modify the looks of posts by users of certain Ranks add a custom CSS rule to your “Edit CSS” tab in Customize Theme. For example, to change the background of comments we can add something like: 20
  • 21.   Vanilla Forums Theme Guide | Version 1.3     li.ItemComment.Rank-Admin { background-color: #F5F8E8; } For both discussions and comments use: .ItemDiscussion, li.ItemComment.Rank-Admin { background-color: #F5F8E8; } Depending on the theme, the below might work as well: Item.Rank-Admin { background-color: #F5F8E8; } If you plan to add customization to other Ranks including custom Ranks, make sure you edit the specific Rank and give it an appropriate CSS class. In the following example, a new CSS class called “Rank-Newb” is added to a Rank called ‘Level 1′. This keeps the naming convention consistent and ensure no conflicts in the existing theme. In the above examples we showed you how to change the background of specific Roles and Ranks, but this is only the beginning. In this next section, we want to show you how you can have a bit more fun in the customization of Roles and Ranks. 21
  • 22.   Vanilla Forums Theme Guide | Version 1.3     Modifying CSS for Roles If you are not using Ranks, you will want to enable the “Roles Titles” plugin. This adds a role specific CSS class for you to target. In the following example, we can see, using Firebug (but use whatever dev tool you like), that a new class “Role_Administrator” is added for users of the administrator account. The next step is to add a custom CSS rule to your “Edit CSS” tab in Customize Theme. So for example to change the background of comments we can add something like: li.ItemComment.Role_Administrator { background-color: #F5F8E8; } If you want to change colour of the discussions started by the Administrator role use: .Item.ItemDiscussion.Role_Administrator { background-color: #F5F8E8; } If you want all content (comments and discussions) of an admin to be highlighted use: .Item.Role_Administrator { background-color: #F5F8E8; } Finally, remember to change “Role_Administrator” in the above example to the appropriate role as needed. i.e Moderator is Role_Moderator. We have used the example of changing the background, but you can apply any CSS changes you want. Displaying Icons For Roles and Ranks There are some other ways you can use CSS and images to differentiate Roles and Ranks. Here are some other examples to get your creative juices flowing. 22
  • 23.   Vanilla Forums Theme Guide | Version 1.3     If you wanted to add a “Staff” icon to a Staff Role, for example, you can do that with CSS. Using the “Role Titles” plugin, we get the “Role_Staff” CSS class. By using the following CSS: .Item.Role_Staff .MItem.RoleTitle { color: transparent; background: no-repeat url(/https/www.slideshare.net/pathtoimage/staff.jpg); content: " " !important; position: absolute; width: 30px; margin-left: 8px; } We can have an end result like this: Depending on the theme you are using, you may have to modify the CSS to fit your needs. For Ranks, it’s a bit different. If you decide to add an image icon to a specific Rank, no custom CSS changes are needed. To add an image icon in Ranks, the way to do this is to add some HTML in the “Label” form field when editing a specific Ranks’ detail. For example, our Rank Newb, example from before, you would add HTML to the label section. 23
  • 24.   Vanilla Forums Theme Guide | Version 1.3     The end result: As you can see there is a chance to really get creative and give your community a very unique look and feel. Please note the above examples were done using the “Bootstrap theme”, but the concepts are the same. For best results, make sure to use a proper tools like Google Chrome Dev Tool or Firebug to identify classes to modify. Add CSS for Categories When you create a new category, you have the option to add a class. By adding this custom class you can then use CSS to alter its appearance. /*CSS for Premium Category*/ tr.Item.Category-premium-content.Item-premium-content { background-color: #71ff10; } 24
  • 25.   Vanilla Forums Theme Guide | Version 1.3     Here is the end result                                                 25
  • 26.   Vanilla Forums Theme Guide | Version 1.3     Pockets   Pockets are placeholder slots available throughout your forum. They are a great way to add little bits of HTML or Javascript to your site. If you don’t have Pockets enabled, and you are on the Advanced plan (or higher), please send a request to support to have it turned on. Word of caution: Pockets are extremely powerful, so they should be used with caution. The wrong code can break your forum, so always make sure to try things first in “Test Mode”. 26
  • 27.   Vanilla Forums Theme Guide | Version 1.3     Getting Started With Pockets Once you have pockets enabled, you will have a new menu item in your dashboard: On the Pocket settings page, you will see the following: You can turn on “Show Pocket Locations” to see all the slots available on your forum. Only Administrators can see them, so it’s a great way to see where you want to add a pocket. The following image gives you an idea. 27
  • 28.   Vanilla Forums Theme Guide | Version 1.3     28
  • 29.   Vanilla Forums Theme Guide | Version 1.3     Adding A Pocket Now you are ready to add a pocket. Click the “Add Pocket” button and you will be presented with the following page to create your pocket: Here is some information about each part of the “Add Pocket” form: Name: This is the name for your pocket. Give it a descriptive name to distinguish different pockets. Body: Here is where you can add snippets of HTML or Javascript. This is where you could add your Adsense, Doubleclick or any Ad Network you want. Page: Use this to control which page your pocket will appear on. Location: This is the location of the actual pocket. So for example, discussion page or the footer. 29
  • 30.   Vanilla Forums Theme Guide | Version 1.3     Repeat: This is how you can decide to have your ad show every third comment in a discussion or just have an ad just before the footer. Conditions: With conditions, you control pocket behaviour. For example, you can create a pocket with an ad that will only be seen on mobile devices. Enable/Disable: You should always enable the pocket in “Test Mode” until you are happy with the way it looks. When a pocket is in test mode, only those with Pocket Admin rights will be able to see your content. Advance Techniques with Pockets   Pockets also adds another level of customization to your site and the HTML template too. You can add a Pocket to your template directly. For example you can create a Pocket called “Foo” and in the body add html or JS. The other setting are not really going to matter, as you will see in a moment. Also unlike how you normally would enable a pocket, you will select “disabled” The final step is add the pocket to your HTML template where you want the pocket to appear. In the below example, we have added {pocket name="foo"} to be just above content container. 30
  • 31.   Vanilla Forums Theme Guide | Version 1.3     And voila! Another great aspect of this, is you can use smarty conditional tags as we showed earlier. So for example to show “foo” on the index page if the Homepage is set to Categories, you could do it as so: {if InSection("CategoryList")} {pocket name="foo"} {/if} If you wanted to show “foo” only in the general category, the syntax would be: {if $Category.Name == "General"} {pocket name="foo"} {/if} 31
  • 32.   Vanilla Forums Theme Guide | Version 1.3     Adding a conditional to user who is SignedIn {if $User.SignedIn} {pocket name="foo"} {/if} Adding a conditional to user who is not SignedIn {if !$User.SignedIn} {pocket name="foo"} {/if} 32
  • 33.   Vanilla Forums Theme Guide | Version 1.3     Conclusion   There are lots of creative ways to design a Vanilla theme and we hope this guide will help you in creating an awesome forum theme for your community. Just remember, we could not show you everything, but we think this guide should get you on your way... If you still feel like this is too hard, or if you are not comfortable in doing it yourself, you can contact our sales team for a quote on a custom theme.                                     33
  • 34.   Vanilla Forums Theme Guide | Version 1.3     Appendix   ATTENTION: The following information is for special VIP customers wanting to theme using our open source project. If you are not a VIP customer, please note, files you create will not be uploaded to our server. To get those changes to a hosted theme copy and paste to the respective HTML and CSS tabs in the customize theme editor in your Vanilla dashboard. Also, the below information assumes you are comfortable in using a local environment. If you are ready to go, grab the latest version of Vanilla from Github (MASTER), so you can customize a theme in your local environment . A theme will be composed of the following elements: Make a copy of the default theme in a new folder, open the about.php and change the values so you will be able to identify it as your custom theme. The following is an explanation of the other elements of a theme to assist you as you work on it locally.   34
  • 35.   Vanilla Forums Theme Guide | Version 1.3     Elements of a Theme about.php - This file contains information about your theme, such as Theme Name, Theme Description, Version, Author, Author Email, and AuthorUrl. This file is required to register your theme in Vanilla so that it can be enabled via the Appearance/Themes page in the Dashboard. screenshot.png - A thumbnail image of your theme used to help display your theme in Appearance/Themes page in the Dashboard. Views Folder - This folder contains the default.master.tpl — the master view for your theme. default.master.tpl - This file is the master view for your theme. It contains the html for the header and footer of every page. All other views — i.e. discussions, activity, profile, and inbox — are displayed *within* this one. So, you can use this file for customizing your banner, logo, footer, etc. Modifications to this file will be what you will need to copy and paste over to your hosted forum in the HTML tab. Design Folder - This folder contains all files associated with your theme's design, such as custom.css and all image files. We cannot import your image files. You can link to them in your CSS or upload them once you are working on the forum. custom.css - This file is added *after* the base theme’s css, which is contained within the Vanilla application. This stylesheet will overrule all css rules defined in the base theme. Modifications to this file will be what you will need to copy and paste over to your hosted forum in the CSS tab. ****Once again, please note none of your files will be uploaded to our server. Please copy and paste your modifications into the UI in Vanilla Forums Hosted platform. *** 35