Nov 19, 2008 | 10:18 PM  
Welcome

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.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
  Forum FAQForum FAQ   SearchSearch  UsergroupsUsergroups  PreferencesPreferences  Options forumOptions forum  Watched TopicsWatched Topics  Watched ForumsWatched Forums
Latest forum posts Latest forum posts  Log in to check your private messages Log in to check your private messages    Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Shorty
MD user level 5
MD user level 5


Joined: Jan 10, 2006
Posts: 149

Member
Post  Posted: Feb 11, 2007 - 07:57 AM Reply with quote Back to top
Post subject: Quick q about some code.

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
View user's profile
sjah
MDchannel manager
MDchannel manager


Joined: Aug 01, 2003
Posts: 302
Location: Australia

Post  Posted: Feb 11, 2007 - 03:47 PM Reply with quote Back to top

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.

_________________
www.WebSiteDesigning.com
web designing for your web solutions
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Shorty
MD user level 5
MD user level 5


Joined: Jan 10, 2006
Posts: 149

bannato
Post  Posted: Feb 11, 2007 - 09:00 PM Reply with quote Back to top

Code:
        <tr>
        <td width="200" height="150" bgcolor="#9ecbf8" align="center"><img src="http://localhost/testsite/themes/mr2/images/rotate/rotate.php" width="200" height="150"></td>
        </tr>


I`m just having a image rotate from a specific folder.
View user's profile
Wiseman
MD user level 5
MD user level 5


Joined: Mar 15, 2005
Posts: 103
Location: Spain
bannato
Post  Posted: Feb 13, 2007 - 08:14 PM Reply with quote Back to top

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".
View user's profile Visit poster's website
Shorty
MD user level 5
MD user level 5


Joined: Jan 10, 2006
Posts: 149

bannato
Post  Posted: Feb 15, 2007 - 08:29 AM Reply with quote Back to top

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?
Code:
#leftblockborder      { width: 200px; height: 150px; background-color: #9ecbf8; border-left: 3px solid #000000; border-top: 3px solid #000000; border-right: 10px url(../../../themes/mr2/images/leftblockborder.gif) repeat-x; }


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:
Code:
$command_mode1['loggedin'] = array (
'user-links' => '$template_output.= "<a href=\"index.php?module=MDUsers\">"._AT_MYACCOUNT."</a> | '
  .'<a href=\"index.php?module=MDUsers&func=logout\">"._LOGOUT."</a>";',


Log out is fine.. ?
View user's profile
crtvlynx
MD user level 5
MD user level 5


Joined: Sep 14, 2004
Posts: 129

bannato
Post  Posted: Apr 21, 2007 - 07:10 AM Reply with quote Back to top

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:

Code:
http://localhost/testsite/themes/mr2/images/rotate/rotate.php


to

Code:
{theme-path}/images/rotate/rotate.php


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 =).
View user's profile
Display posts from previous:     
Jump to:  
All times are GMT + 13 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by MDForum 2.0.8© 2003-2007 MAXdev Team
Credits