Don't have an account yet? You can create one, it is free, just click here
as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.
Ok, i`m trying to make a theme but i wonder about something. I`m adding some pics and stuff but as i`m doing this on my localhost, i don`t want to hardcode the img source into my theme files. How will i write something like "../image etc" so that the url is automatically read?
Thx for all the stuff coming:)
Shorty
sjah MDchannel manager
Joined: Aug 01, 2003
Posts: 302
Location: Australia
 Posted:
Feb 11, 2007 - 03:47 PM
I don't quite understand your question. If you upload all images under themes/your_theme/images folder then you can use {images-path} tag. If you upload them under images or upload folder, you can simply use images/ or upload/ in your theme tags. But if you use other url to host the images you should add the url address completely in your theme.
I`m just having a image rotate from a specific folder.
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 103
Location: Spain
bannato
 Posted:
Feb 13, 2007 - 08:14 PM
You can use relative paths starting from your site root. For example, the same IMG would load with SRC="themes/mr2/images/rotate/rotate.php".
Shorty MD user level 5
Joined: Jan 10, 2006
Posts: 149
bannato
 Posted:
Feb 15, 2007 - 08:29 AM
Ok, i`ll try that Wiseman. I have another q now.
I`m trying to add a pic as a border to the left block so i made a small image which i need to repeat as long as the block is. The image i made is width 10 and height 1. Simple gradient tool image.
The block has a black 3px border now but i want the gradient image to slide into the center block color.
Here`s my css code which obviously doesn`t work. Can`t wrap my head around what`s wrong. Can you?
One more thing. The " My account" displays _AT_MYACCOUNT when logged in. I checked the lang file and it was defined and i checked the atcommands and it reads:
you also have the command {theme-path} which works in autotheme i know but im not sure about this new module autorender if someone could clear this up please.
but anyways for example in your situation you would use:
and now it will go to your theme folder. and in the future if you ever change the name of the theme folder you dont have to worry about changing any image paths because that command automatically does it for you =).