Custom Templates

Hints tricks and other neat stuff for HTML, XHTML, and CSS topics

Custom Templates

Postby twin-tech » Wed Sep 24, 2008 12:57 pm

Just downloaded the software - does anyone have any info on how to build custom templates for this software yet?

Thanks a million!
twin-tech
 
Posts: 1
Joined: Wed Sep 24, 2008 12:52 pm

Re: Custom Templates

Postby bkeep » Thu Sep 25, 2008 1:44 pm

Basically just work on the .tpl files and edit to your liking then upload them to your server currently I am working toward integrating the templates selection into the admin section if you want to have multiple templates you can change the default template in the db.inc.php file where $template = "Default"; change Default to whatever the new folder name for your new template
Best Regards,
Brandon

Web Hosting for as little as $72.00 dollars a year
http://alias454studios.com/hosting.php
Use the code "FIFTY" to get 50% off any hosting package

Open Auto Classifieds Services
http://openautoclassifieds.com/services.php
User avatar
bkeep
Site Admin
 
Posts: 996
Joined: Sun Jan 27, 2008 7:37 am
Location: Freeport, IL

Re: Custom Templates

Postby idaycom » Thu Oct 15, 2009 10:59 am

I never been work with template, but I know a little bit about HTML. I'm still confuse, please explain it more specific by giving us the example on how we work on template.
idaycom
 
Posts: 27
Joined: Mon Aug 17, 2009 7:45 pm

Re: Custom Templates

Postby bkeep » Thu Oct 15, 2009 12:40 pm

the file that end in .tpl are the template files. I use Smarty as the template engine so if you are not comfortable with the Smarty syntax stay away from the enclosed variable {$tag} most things inside the {} can be left alone. the rest is just standard XHTML
Best Regards,
Brandon

Web Hosting for as little as $72.00 dollars a year
http://alias454studios.com/hosting.php
Use the code "FIFTY" to get 50% off any hosting package

Open Auto Classifieds Services
http://openautoclassifieds.com/services.php
User avatar
bkeep
Site Admin
 
Posts: 996
Joined: Sun Jan 27, 2008 7:37 am
Location: Freeport, IL

Re: Custom Templates

Postby W92Baj » Fri Nov 06, 2009 1:55 pm

Another useful tip for noobies is, using the smarty syntax, you can easily create items that can only be viewed by people logged in (ie contact details for an item) by enclosing the bit you want affected with
Code: Select all
{if $logged_in}
[code to show if logged in ]
{else}
[code to show if not logged in]
{/if}


or use {if logged_in AND $admin} to show stuuf if you are an admin.
W92Baj
 
Posts: 52
Joined: Fri Nov 06, 2009 12:12 pm


Return to HTML, XHTML, and CSS topics

Who is online

Users browsing this forum: MSN [Bot] and 1 guest