Member
Member
Lasha   17-07-2007, 06:49
#1

Located in the "template-fuctions.php" file of the "zen" folder in the main directory is this code:

`function printDefaultSizedImage($alt, $class=NULL, $id=NULL) {

echo "[img]/zenphoto/zen/i.php?a=test&i=Picture+056.jpg&s=595[/img]`

In the tag above, I'd like to figure out how to add a tag so I can get a border onto the IMAGE itself, and not its container.

If anyone needs me to go further into the detail of what I'm talking about, let me know. Mainly, I'm guessing someone with PHP knowledge will know how to add a tag into a area with proper syntax. Maybe a developer, etc.?

Thank you so much!

Member
Member
La0c00n   17-07-2007, 09:00
#2

Hello Lasha,

You don't have to insert a tag in the middle of this php script to insert a border, or whatever style element you want to use.

In fact, each theme (using the image.php in your theme folder for example) use a stylesheet: it's a file describing only the style of the page, usually for zenphoto's themes it's zen.css.

All you have to do, is looking after the line describing the style of the image. For the default theme, on line 100 of zen.css, you have "border: 0;" just replace it by "border: 3px solid black;" for example.

Just edit your theme's stylesheet and make some modifications. But don't touch to template-functions.php ! ;)

Have fun.

Member
Member
Lasha   17-07-2007, 21:21
#3

Wow, that actually worked! I didn't quite think of that method to get a border onto the individual images. In the default theme, the individual image is in between a tag with an ID of "image", and I added this CSS code to only give a border to image tags contained within divs named "image" like this:

image img {border: 3px solid #999999;


}

Seems like a pretty good way to get this done. I'll try and see if I can get this done in other themes as well. Thanks a bunch, man!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.