Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Fixed] Only first page of gallery displays  (Read 9177 times)

0 Members and 1 Guest are viewing this topic.

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« on: December 02, 2003, 06:22:53 am »

Check this plz:
http://fit.um.edu.mx/danielgc/fotos/index.php?cat=4
There are 2 pages of album, right? But if you click on the number 2, it displays the same page, so Im not able to see the remaining pictures :( I know they are there because on last pictures (Últimas fotos - 2003) I can see the last uploaded album (22 de Sep de 2003), and if I click the pic, I can see it... Any hint? Thanks in advance!

ps. Is there any way to return to the "root" apart from clicking on the back button of the internet explorer? If I am inside certain category, I can{t go to the main "root"... Just a usability question.

danielgc
Logged
<((><

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Fixed] Only first page of gallery displays
« Reply #1 on: December 02, 2003, 07:49:36 am »

[list=1]to return to "home" you can either
  • include a "home" button into your main menu - edit theme.php and add it right before the "album_list" link: look for
    Code: [Select]
    $template_main_menu = <<<EOT[/li][/list]
                    <span class="topmenu">
    <!-- BEGIN album_list -->
                            <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
    <!-- END album_list -->
    (or something similar, depending on the theme you're using), replace it with
    Code: [Select]
    $template_main_menu = <<<EOT
                    <span class="topmenu">
                            <a href="index.php" title="Home">Home</a> ::
    <!-- BEGIN album_list -->
                            <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
    <!-- END album_list -->

  • use the breadcrumb nav[/list:o]

    I can't tell you in detail what happened, but your start page is overkill: edit your config and show less detail levels (hide first level!).
    HTH

    GauGau
Logged

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #2 on: December 02, 2003, 03:12:54 pm »

Hi Gaugau! thx for your answer!
about the breadcrumb, that was exactly wha I wanted (excuse me, I know, I should had read the manual)
abou the overkill of my startpage, I tried to limit the content to breadcrumb/catlist/random/lastup but now it is even worst, now I can' even see that there are 2 pages of albums :( I messed up.

Edit: Having alblist Im able to see tha there are 2 pages on the category "2003", bu still having the same problem, I can't go o second page :(
Edit 2: I changed the value of number of displayed albums to mach the number of my albums in that category. his seems to be a workaround but works :)
Logged
<((><

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Fixed] Only first page of gallery displays
« Reply #3 on: December 03, 2003, 12:10:41 am »

try setting "Show first level album thumbnails in categories" to "no" in coppermine config.
You should have at least "catlist/alblist" in "The content of the main page" or your gallery won't work (it's just in there so you can change the order of it, but you mustn't delete the entries totally.

GauGau
Logged

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #4 on: December 03, 2003, 07:38:56 pm »

Done as you suggested gaugau
http://fit.um.edu.mx/danielgc/fotos/index.php?cat=4&page=1
I can't enter the page 2... I'm considering reinstalling it :(
Logged
<((><

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #5 on: December 09, 2003, 05:13:17 pm »

Bump?  :(
Has anybody the same problem?
Logged
<((><

EZ

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 130
[Fixed] Only first page of gallery displays
« Reply #6 on: December 13, 2003, 01:22:53 pm »

Try to set the number of albums per page to a lower value, for example 4, so you'll have more pages. Then check if you can switch pages.

Eyal.
Logged

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #7 on: December 14, 2003, 06:13:06 pm »

Logged
<((><

docgonzo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
[Fixed] Only first page of gallery displays
« Reply #8 on: December 15, 2003, 04:47:33 pm »

Hey peepz...

Well, i've got the same problem as danielg...
You can't see the other albums...
http://www.docgonzo.com

Can't get to page 2/3/4 of the galleries...
Any help would be greatly appreciated

(for now, i'm just gonna put all galleries on the frontpage and decrease thumbnail size for the frontpage)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Fixed] Only first page of gallery displays
« Reply #9 on: December 16, 2003, 12:48:27 am »

Needs some looking into. I started tracker # 860684 on this issue.

GauGau
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
[Fixed] Only first page of gallery displays
« Reply #10 on: December 16, 2003, 03:18:28 am »

Seeing this
http://fit.um.edu.mx/danielgc/fotos/index.php?cat=4

I have traced the problem to the fact that paging works only if there are no sub categories in the category containing the albums.

Will fix ASAP ....
Logged
SANIsoft PHP applications for E Biz

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
[Fixed] Only first page of gallery displays
« Reply #11 on: December 16, 2003, 08:50:18 am »

OK
Here is the fix
Open index.php
find the lines which say
Code: [Select]
function list_cat_albums($cat = 0)
{
    global $CONFIG, $USER, $PAGE, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA;
    global $lang_list_albums, $lang_errors;

and replace with
Code: [Select]
function list_cat_albums($cat = 0)
{
    global $CONFIG, $USER, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA;
    global $lang_list_albums, $lang_errors;
    $PAGE = 1;


The fix has also been commited to the devel in CVS
Logged
SANIsoft PHP applications for E Biz

docgonzo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
[Fixed] Only first page of gallery displays
« Reply #12 on: December 16, 2003, 12:33:59 pm »

Thx tarique, changed it and it works lika a charm !
Logged

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #13 on: December 16, 2003, 06:03:30 pm »

WOW!
Thx tarique! You saved me a wasted time in reinstalling everything and finding that the problem still was there!

Best wishes from Mexico!

Danielg
Logged
<((><

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #14 on: December 16, 2003, 07:28:04 pm »

... in gratitude, check this pic
http://fit.um.edu.mx/danielgc/fotos/displayimage.php?album=58&pos=10

Thx for your help and have a Happy New Year!
Logged
<((><

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Fixed] Only first page of gallery displays
« Reply #15 on: December 16, 2003, 11:52:13 pm »

@daniel: nice pic indeed - your daughter's very cute. I'm glad Tarique was able to solve this so quickly as well.

GauGau

P.S. the link should be http://fit.um.edu.mx/danielgc/fotos/displayimage.php?pos=-567 (making it independent of the sorting order the user chose). You have a double slash in the URL of the pic info section, which can be fixed in coppermine config: delete the slash at the end of the url in the "link to ecard" (make it
Quote
http://fit.um.edu.mx/danielgc/fotos
instead of
Quote
http://fit.um.edu.mx/danielgc/fotos/
)
Logged

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #16 on: December 17, 2003, 01:12:02 am »

Thx for your kind comment gaugau!
I didn't know the difference between having or not having the last slash... thx! corrected now.
Logged
<((><

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
[Fixed] Only first page of gallery displays
« Reply #17 on: December 17, 2003, 03:29:20 am »

Quote from: "danielg"
... in gratitude, check this pic
http://fit.um.edu.mx/danielgc/fotos/displayimage.php?album=58&pos=10

Thx for your help and have a Happy New Year!

Thanks for the picture, very lovely, also thanks for finding the bug and making a noise about it :)
Logged
SANIsoft PHP applications for E Biz

danielg

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://fit.um.edu.mx/danielgc/fotos
[Fixed] Only first page of gallery displays
« Reply #18 on: December 17, 2003, 06:38:57 pm »

Thx tarique! It is the less I can do to contribute in this excellent photo gallery system. I was about to reinstall everything, so u saved me (us) a lot of time!
Logged
<((><
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.