Bypassing album content thumbs display Bypassing album content thumbs display
 

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

Bypassing album content thumbs display

Started by luq, March 25, 2005, 10:13:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

luq

Hi,

I'll be placing my photos only in albums on the main page.

Is there any way of bypassing the album-content-thumbnails-display part and just going straight to the photo with the filmstrip showing the contents instead?

When I place my cursor on the single album thumbnail on the main page, it shows the link /thumbnails.php?album=1. And when I do the same to the first thumbnail in the album, it shows /displayimage.php?album=1&pos=0.

Is it as simple as changing the link from the first page to /displayimage.php?album=1&pos=0? If so, where do I change it? I'm using the Kubrick theme.

Thanks!

ReneZ

#1
I´m wondering how to do that too. Which file do i have to edit?  Note: i am a complete php dummy !!
I´m using CPG 1.3.2 and the classic theme.

The reason why I´m asking is:
I have created many albums in each sub-category with only 1 file in some cases more files to have different angles of my objects
see:
http://www.zimmermann-fossilien.de/gallery/index.php?cat=27

so i don´t need the thumbnail view anymore. Maybe someone can help.

Thanks in advance.

René

ReneZ

Interestingly search at home yields different results than at work ???

What i found at work:

edit functions.inc.php
exchange thumbnails.php by displayimage.php
and at the end of the href command add &pos=0
should look like this
....<a href=displayimage.php?album=".$CURRENT_ALBUM_DATA['aid']."&pos=0>...

do the same in theme.php  be sure to add &pos=0

works fine for me so far.


René

ReneZ

Here comes the problem


In
function html_img_nav_menu()

i have to replace
$thumb_tgt = "thumbnails.php?album=$album$cat_link&page=$page";

by
$thumb_tgt = "index.php?cat=???????";

How do i calculate the catalog number ?
i need the expression to fill in, i want to go back to the catalog i started not to the main page

Thanks.

René

ReneZ

#4
solved:

in displayimage.php
function html_img_nav_menu()

added
global $actual_cat;

and changed the line
$thumb_tgt = "thumbnails.php?album=$album$cat_link&page=$page";

to
$thumb_tgt = "index.php?cat=$actual_cat";

René