Carbon Theme and Time logout question.

gtaylor81

Joined: 2006-06-29
Posts: 7
Posted: Thu, 2007-02-22 23:48

This is my first post and as it will become obvious I am no where as technical as most users here. I have two questions:

1) Is there a way to time a login session so that if a user leaves the site it will automatically log them off or simply time a log off after a certain amount of time?

2) CARBON THEME: The Main gallery is what all visitors will see when they reach my photo album main page. Is there a way to create a the random image under the description of the Main gallery page? This way if someone who is not a user can still see a few random images from the Main Gallery site and draw their attention to what I typed in. I wasn't sure if this was or was not supported in the Carbon Theme.

Thanks for all your help,
Greg

My Site: http://www.gregandmeredith.com/photos Not much to see unless your family.

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.21-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux box115.bluehost.com 2.6.19-1_3.BHsmp #1 SMP Mon Jan 15 07:50:58 MST 2007 x86_64
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-02-23 04:33

1.) site admin ' General Settings ' page "Session settings".

2.)in album.tpl find:

		  <h2> {$theme.item.title|markup} </h2>
		  {/if}
		  {if !empty($theme.item.description)}
		  <p class="giDescription">
		    {$theme.item.description|markup}
		  </p>
		  {/if}

and add:

		  {php} @readfile('http://EXAMPLE.COM.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); {/php}

See the image block module in site admin for more options switches.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gtaylor81

Joined: 2006-06-29
Posts: 7
Posted: Fri, 2007-02-23 20:08

Thanks Dave for the wicked quick response!

I now understand the setup for question #1.
For #2, I was able to modify the album.tpl, however I don't see any changes. I identified the area under site admin where Image Block settings are.

I reread my original post and I meant to say within the description. If you see the main page here: you should see a static image of 2 house cats that were painted as wild cats and that is the area I am trying to create an image block in. What do you think?

I tried changing the line you recommended: instead of gallery2 I used photos.

I actually used both just incase, but my gallery is located in a photos folder on the server.

Any suggestion or can you see what i did wrong?

Thanks,
Greg

 
gtaylor81

Joined: 2006-06-29
Posts: 7
Posted: Fri, 2007-02-23 20:13

One more thing, i don't know if it will help. While I was looking at the Image Block settings it had this line for using external Image Blocks, but I don't really know how it differs if at all from the line you posted:

<?php @readfile('http://www.gregandmeredith.com/photos/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

The only difference from what I can see are the php tags.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-02-23 21:11

Do any of your image blocks work? Like on the sidebar.
When you click the URL:
http://www.gregandmeredith.com/photos/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title
you should be able to get a photo like on my test site:
http://langleycom.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title

The php tags like <?php and ?> are for regular pages like html
The php tags like {php} and {/php} are for template files to escape the smarty parsing.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gtaylor81

Joined: 2006-06-29
Posts: 7
Posted: Sat, 2007-02-24 00:34

Yes, the image blocks work on the sidebar. I guess its not viewable on the main page because all the images have permissions setup for viewing.

When I login and open the sidebar I can see the random images.

Maybe I added it incorrectly to what you had me find.

Does the line go in after the {/if} or before or somewhere else?

I will try several spots.

 
gtaylor81

Joined: 2006-06-29
Posts: 7
Posted: Sun, 2007-02-25 19:19

Well, I'm at a lost. Nothing seemed to work.