|
|
#1 |
|
Senior Member
Join Date: Jan 2007
Posts: 365
Rep Power: 19 ![]() |
Take a look at www.mkclassifieds.co.uk
I'm using custom category images of 50 x 50 pixels. Using plain old html I could easily format the images so that the adjacent text/links would run from the top edge of the image. I'd just use align="left" How do I reproduce this in 68C? I'm guessing I have to make changes in home.tpl.php. I hope so because I only have the 'designer' version. Many thanks. |
|
|
|
|
|
#2 |
|
Coder
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108 ![]() ![]() |
add align="top" to the image tag itself.... ie
from this.... HTML Code:
<img border="0" src="catimages/classifieds.png" alt="Classifieds"/>
HTML Code:
<img border="0" align="top" src="catimages/classifieds.png" alt="Classifieds"/>
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2007
Posts: 365
Rep Power: 19 ![]() |
Sorry to sound thick but where are the image tags to be found? I know the images are stored in www.mkclassifieds.co.uk/catimages but where are they called from?
Is there are smarty constant that needs adjusting? Small word, big picture explanations gratefully received.
|
|
|
|
|
|
#4 | |
|
Coder
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108 ![]() ![]() |
Quote:
{debug} now goto your site and navigate to the page your interested in finding info on and you will get a popup window showing you the variables used and the templates used. In your case if you click on the home link you can see that the 2 templates being used are layout.tpl.php and home.tpl.php. layout.tpl.php is the header, footer and navigation of the site and is used by almost all pages. So that leaves us with, in the case of the home page, home.tpl.php which displayes the categories. Now if we open home.tpl.php in our favorite html or text editor we can see the following smarty plugin that loops through the data passed to it from the underlying script and displays the categories. PHP Code:
PHP Code:
|
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2007
Posts: 365
Rep Power: 19 ![]() |
Thank you for taking the time to explain that Larry. Understanding how things work is much better than simply being told which bits of code need to be changed.
And of course, it worked!
|
|
|
|
|
|
#6 |
|
Coder
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108 ![]() ![]() |
No problem, glad it worked for you. We dont always know how proficient someone is when they ask for help so instead of typing up a page of details someone may not need or care about I often opt for the short answer 1st and if more clarification is needed will gladly expand on it as needed..
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding images instead of links | mmscholz | v3.1 Questions & Support | 1 | 05-31-2006 11:15 AM |
| Unique images for each category | azinfo | v3.1 Questions & Support | 1 | 05-16-2006 05:40 AM |