Table of Contents

Smarty Templating Guide


Love Factory uses the powerful Smarty engine for templating. Bellow you have a list with all the template files currently used in Love Factory (version 2.x.x) along with the variables you will find in these template files. Please note that files and code may change between versions.


By default Love Factory has Smarty templates enabled. For older versions, to enable go to the Joomla Admin-Components/Love Factory/Settings/General and under "Smarty" set Use Smarty templates to "Yes". Otherwise any changes you make to the .tpl files will not be used as the system is using the .php files.


The file containing "$settings" can be found in Joomla folder\administrator\components\com_lovefactory\settings.php


Smarty Template Files


path: [Joomla folder]\components\com_lovefactory\views→ Smarty folder for specific section → default.tpl


Smarty Template Folder Description
Advanced Search Contains the template for displaying the form for an advanced search
Blacklist Contains the template for displaying the Blacklisted (or Ignored) users
Edit Contains the template for displaying the edit profile page
Fillin Contains the template for displaying the registration form
Friends Contains the template for displaying the Friends list
Gallery Contains the template for the Gallery
Group Contains the template for the Group Page
Group Edit Contains the template for the Group Edit Page
Group Exclude Contains the template for the Group Exclude Page
Group Members Contains the template for the Group Members Page
Groups Contains the template for the Groups Page
Inbox Contains the template for the Inbox
Interactions Contains the template for the Interactions
Membership Buy Contains the template for the Membership Purchase Page
Memberships Contains the template for the Memberships
Members Map Contains the template for the Members Map
Message Read Contains the template for the Message Read Page
Message Write Contains the template for the Message Write Page
My Friends Contains the template for the My Friends Page
My Gallery Contains the template for the My Gallery Page
My Gallery Video Contains the template for the My Video Gallery Page
My Membership Contains the template for the My Membership Page
My Memberships Contains the template for the My Memberships Page
My Relationship Contains the template for the My Relationship Page
Not Available Contains the template for the "Not Available" messages
Online Contains the template for displaying the online users
Outbox Contains the template for displaying the of all the sent messages
Payment Contains the template for the Payment status text
Photo Contains the template for the photo display and photo comments
Profile Contains the template for displaying the user profile page
Quick Search Contains the template for displaying the form for a quick search
Radius Search Contains the template for displaying the radius search
Requests Contains the template for displaying the Friendship Request list
Signup Contains the template for displaying the registration form
Terms Contains the template for displaying the Terms and Conditions
Top Friends Contains the template for displaying the Top Friends list
Video Contains the template for displaying a Video and its comments
Videos Contains the template for displaying the Video List
Wallpage Contains the template for displaying the Wallpage


Custom Functions


Function Description
{jroute route='index.php?option=com_lovefactory&view=friends&layout=view&Itemid=%Itemid%&id=%id%' Itemid=56 id=9} Creates a Joomla page link using the routing system
{jtext _='Some text to be translated'} Translates the text using Joomla's translation system


Variables always initialized


{$Itemid} - The menu Itemid