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, My Site: http://www.gregandmeredith.com/photos Not much to see unless your family. Gallery version = 2.1.2 core 1.1.0.2 |
|
Posts: 27300
1.) site admin ' General Settings ' page "Session settings".
2.)in album.tpl find:
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
Posts: 7
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
Posts: 7
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.
Posts: 27300
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
Posts: 7
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.
Posts: 7
Well, I'm at a lost. Nothing seemed to work.