cut out 'thumbnails.php' stage cut out 'thumbnails.php' stage
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

cut out 'thumbnails.php' stage

Started by bluetungsten, June 25, 2007, 07:18:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bluetungsten

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

bluetungsten

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!

Sami

There is a mod to skip intermediate , if you mean that
‍I don't answer to PM with support question
Please post your issue to related board

bluetungsten

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.

Sami

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 !
‍I don't answer to PM with support question
Please post your issue to related board

bluetungsten

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.

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

bluetungsten

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

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board