Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Bypassing album content thumbs display  (Read 3191 times)

0 Members and 1 Guest are viewing this topic.

luq

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Bypassing album content thumbs display
« on: March 25, 2005, 10:13:34 am »

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
Code: [Select]
/thumbnails.php?album=1. And when I do the same to the first thumbnail in the album, it shows
Code: [Select]
/displayimage.php?album=1&pos=0.

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

Thanks!
« Last Edit: April 21, 2005, 10:37:15 am by GauGau »
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Bypassing album content thumbs display
« Reply #1 on: April 19, 2005, 12:58:04 pm »

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é
« Last Edit: April 19, 2005, 10:36:25 pm by ReneZ »
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Bypassing album content thumbs display
« Reply #2 on: April 20, 2005, 01:48:42 am »

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é
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Bypassing album content thumbs display
« Reply #3 on: April 20, 2005, 04:11:38 pm »

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é
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Bypassing album content thumbs display
« Reply #4 on: April 20, 2005, 10:44:13 pm »

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é
« Last Edit: April 20, 2005, 11:04:12 pm by ReneZ »
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.