coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: bluetungsten on June 25, 2007, 07:18:12 PM

Title: cut out 'thumbnails.php' stage
Post by: bluetungsten on June 25, 2007, 07:18:12 PM
Hi, I want users to be able to link straight from the 'index.php?cat=2' page to the 'displayimage.php' page, cutting out the thumbs which seem pointless with the filmstrip turned on. is this straightforward?
link to site : http://bluetungsten.co.uk/gallery
as you can see, i'm trying to keep site as simple as possible!
cheers
Title: Re: cut out 'thumbnails.php' stage
Post by: bluetungsten on June 26, 2007, 09:25:37 PM
sorry just quick update, not trying to push up the board, but if anyone's concerned the link is now http://www.bluetungsten.co.uk
nice one!
Title: Re: cut out 'thumbnails.php' stage
Post by: Sami on June 26, 2007, 09:32:20 PM
There is a mod (http://forum.coppermine-gallery.net/index.php?topic=34360.0) to skip intermediate , if you mean that
Title: Re: cut out 'thumbnails.php' stage
Post by: bluetungsten on June 26, 2007, 10:40:33 PM
thanks sami buts thats not quite what i meant - actually quite like the intermediate stage, since I like the filmstrip approach to displaying thumbs. what i want to skip is the thumbnails page between album list and intermediate view. Have seen a few hacks but none of them work, any links to successfully tested-mod would be appreciated.
Title: Re: cut out 'thumbnails.php' stage
Post by: Sami on June 27, 2007, 06:25:36 AM
AFAIK there isn't any mod/plugin you are on your own to code it
it shouldn't be hard it's very similar to the mod that I've pointed even simpler 
- don't do the first step (function.inc.php)
- you should just change theme_display_album_list function instead of theme_display_thumbnails on 2nd step
and change

'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",

to

'{ALB_LINK_TGT}' => "displayimage.php?album={$album['aid']}&pos=0",

you are done !
Title: Re: cut out 'thumbnails.php' stage
Post by: bluetungsten on June 27, 2007, 11:10:36 AM
Nice one Sami you are the man!
just for anyone else, if the {ALB_LINK_TGT} thingy doesnt exist in your themes.php, you'll find it in your themes.inc.php.
Title: Re: cut out 'thumbnails.php' stage
Post by: Sami on June 27, 2007, 12:26:58 PM
Quote from: bluetungsten on June 27, 2007, 11:10:36 AM
just for anyone else, if the {ALB_LINK_TGT} thingy doesnt exist in your themes.php, you'll find it in your themes.inc.php.

Do not change/edit themes.inc.php in any circumstances , If you don't have a variable/function on your theme.php , copy it from themes/sample.php

in your case you should copy theme_display_album_list variable to your theme.php
Title: Re: cut out 'thumbnails.php' stage
Post by: bluetungsten on July 10, 2007, 12:01:40 AM
ok thanks for that, thought i was doing everything in a roundabout kinda way.
by the way - modifying themes.inc.php did the job anyway, whats the deal with that? when you say dont change it, is this general advice in case it all goes tits up, or do you mean we shouldn't be touching this file cos its against coppermine rules? just for future reference
Title: Re: cut out 'thumbnails.php' stage
Post by: Sami on July 10, 2007, 05:59:59 AM
No it's not against any rules :)
It's for your safety , main reason is if you change themes.inc.php you will loss that change after first upgrade process.
and FYI Coppermine first look for themes/your theme/theme.php and then goes to themes.inc.php so if you declare something on your theme.php it will override and takes to account