[SOLVED]show a photo in author.tpl of PGTheme

stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Thu, 2007-01-11 22:28

Hi
How assign a photo from my gallery2 in author.tpl of PGTheme ?
code below don't work :

<img src="http://www.sayeb.net/g2data/albums/famille/stef/TroncheStefHighKey.jpg" border="0" alt="TroncheStefHighKey">

How do ?
Thanks a lot for your help

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-01-12 05:33

http://www.sayeb.net/g2data/albums/famille/stef/TroncheStefHighKey.jpg
you can't use the url to the g2data you have to use the gallery url:

http://www.sayeb.net/main.php?g2_view=core.DownloadItem&g2_itemId=895&g2_serialNumber=1

Dave

_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Fri, 2007-01-12 16:37

It's works now
Thanks very much
Stef

 
stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Fri, 2007-01-12 17:37

I put this this code and it's works fine :
{g->block type="imageblock.ImageBlock" blocks="specificItem" itemId=895 showDate=0 showOwner=0 showViews=1 showTitle=0 showHeading=0 useDefaults=0}

but when i want a item frame = PG_white_3px so i put this :

{g->block type="imageblock.ImageBlock" blocks="specificItem" itemId=895 itemFrame="PG_black_1px" showDate=0 showOwner=0 showViews=1 showTitle=0 showHeading=0 useDefaults=0}

it's don't works, only photo show but no item frame

How do ? Thanks
Stef

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-01-12 17:53

URL?
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-01-12 17:56

Image frames require CSS to be displayed correctly. You might have to add some CSS to the page.
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Fri, 2007-01-12 21:46

I know some CSS are required but how put this in author.tpl ?

It's just to display a Photo ID image frame with itemFrame=PG_black_1px at the front up left page.

see there please
http://sayeb.net

thanks for your help
Stef

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-01-12 22:41

Add

.one-image {
	border-style:outset;
	border-color: red;
	border-width:10px;

}

to your css /themes/PGtheme/theme.css

Dave
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Fri, 2007-01-12 23:18

thanks it's works but the border is not around my photo !
Stef

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-01-12 23:29

Seems to work for me.
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
stefetuna

Joined: 2007-01-11
Posts: 9
Posted: Tue, 2007-01-16 03:39

Ok it's work
thks floridave
stef