[Fixed] Only first page of gallery displays [Fixed] Only first page of gallery displays
 

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

Main Menu

[Fixed] Only first page of gallery displays

Started by danielg, December 02, 2003, 06:22:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danielg

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
<((><

Joachim Müller

[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$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$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

danielg

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 :)
<((><

Joachim Müller

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

danielg

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 :(
<((><

danielg

<((><

EZ

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.


docgonzo

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)

Joachim Müller

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

GauGau

Tarique Sani

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 ....
SANIsoft PHP applications for E Biz

Tarique Sani

OK
Here is the fix
Open index.php
find the lines which say
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
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
SANIsoft PHP applications for E Biz

docgonzo

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

danielg

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
<((><

danielg

<((><

Joachim Müller

@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
Quotehttp://fit.um.edu.mx/danielgc/fotos
instead of
Quotehttp://fit.um.edu.mx/danielgc/fotos/
)

danielg

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

Tarique Sani

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 :)
SANIsoft PHP applications for E Biz

danielg

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!
<((><