Support Forums

Old 10-09-2006, 07:07 PM   #1
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 11
brian-bear is on a distinguished road
Default HTML Template

If I have a good html template design how do I integrate the 68 classifieds page information, is it just a matter of using the $variables I need into the template or does smarty code need to go somewhere and what should the new template file be saved as?
brian-bear is offline   Reply With Quote
Old 10-09-2006, 07:38 PM   #2
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,183
Rep Power: 60
juven14 is a jewel in the rough
Default

Just be sure you move all the smarty code to your html template, then just rename it layout.tpl.php.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 10-10-2006, 02:46 AM   #3
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 11
brian-bear is on a distinguished road
Default

Hi John
Thanks for the heads up, now I think you know what the next question will be,........ where is the smarty code? If I look at the default layout.tpl I see what looks like smarty code, can you post exactly what I need please.

Thanks in advance
Brian
brian-bear is offline   Reply With Quote
Old 10-10-2006, 07:23 AM   #4
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,183
Rep Power: 60
juven14 is a jewel in the rough
Default

smarty code looks like this:

{something}

{$something}

{if $something} something {/if}

If you are afraid you'll miss something it might be better to move you template into layout.tpl.php.

The most important part is the metatags and {include file=$body}

These will allow your title, keywords, description to be generated as well as load the classifieds into the page. I believe the rest of the smarty code is for the links.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 10-10-2006, 12:01 PM   #5
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 11
brian-bear is on a distinguished road
Default

Hi There John
I guessed it had to be between the head tags so just replace them from the default template layout.tpl template into my new template dir to get me going and hey presto. Can you take a look at http://www.boatsandjetskis.co.uk and let me know how to align the folders or images that they sit in an even row, probably needs a top align tag or something but cant figure it out. Or how do you get rid of the text links from the subcatagories, that may be a better option

the site is only in embrio stages but you will get the idea

thanx
brian-bear is offline   Reply With Quote
Old 10-10-2006, 01:00 PM   #6
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,183
Rep Power: 60
juven14 is a jewel in the rough
Default

Open templates/default/home.tpl.php, this is where all that on your home page is coming from.

You can remove this to get rid of the subcat text:
Code:
[[subcats]]
As far as alignment goes it might be done via style.css, but I can't remember. If not you can edit the table attributes:

Code:
html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 10-11-2006, 06:53 PM   #7
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 11
brian-bear is on a distinguished road
Default

Hi Again
On this page, http://www.boatsandjetskis.co.uk/cat...type=16&sec=18 can you tell me how to show the short description field?

Thanks
brian-bear is offline   Reply With Quote
Old 10-12-2006, 05:21 AM   #8
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 11
brian-bear is on a distinguished road
Default

Found solution from previous post
cheers
brian-bear is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smarty Templates and You. Posted BY Lhotch Eric Barnes HTML, CSS, and Design Help 13 10-02-2007 08:06 AM
Free Template? FlyingBee HTML, CSS, and Design Help 4 12-08-2006 10:17 AM
Renewal E-mails... HTML or Plain Text? flyingpylon v3.1 Questions & Support 2 11-01-2006 03:24 PM
Will 68 support html ads manilaboy v3.1 Questions & Support 2 10-22-2006 08:59 PM
Dreamweaver Template in 68classifieds sporthorsebreeder HTML, CSS, and Design Help 3 04-23-2006 10:34 AM


All times are GMT -4. The time now is 07:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0