coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: shutiri on May 07, 2004, 06:45:18 AM

Title: page number not appearing
Post by: shutiri on May 07, 2004, 06:45:18 AM
Hi.

The album page number doesn't appear on mac ox x theme:

www.huecos.com
user: test
pass: test

The page number only appears after clicking on the category name link (huecos, in this case).

thank you.
Shutiri.

Title: Re: page number not appearing
Post by: Joachim Müller on May 07, 2004, 08:28:39 AM
post a deep link to your login page if you want supporters to actually help... :-\
I won't read my way through a foreign language or play hide and seek just for support! :(

GauGau
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 09:12:24 AM
I'm sorry, my fault.   :-[  It won't happen again...  the site is www.huecos.com/fotos (http://www.huecos.com/fotos).  It is integrated with SMF, but the login is not working completely, so after log in, it takes you to the forum instead of CPG.  just enter the URL on the browser, and you'll go to CPG correctly logged in.

thank you.
shutiri.
Title: Re: page number not appearing
Post by: Joachim Müller on May 07, 2004, 09:32:40 AM
OK, I can see your point. This seems indeed to be a bug with the mac os x theme. In your special case, the solution seems easy: since you only have one category I recommend moving all albums from the category "huescos" to the root category (in other words: your albums are in no category at all) - this will save your visitors an extra click. Actually, I'm not running cpg1.2.1 any longer, so I can't work this one out and check for the bug in the mac os x theme. Maybe someone else could (*hint*).
Attached is a screenshot that shows the problem.

GauGau

[attachment deleted by admin]
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 09:39:31 AM
Thank you.  As you can see, I have another category under, "otras" (still empty), and I will use more categories (users...)

So, if somebody could tell me what to do, it would be great.  (I did the base of the site and the forum to look similar to mac os x !!) I can't use another theme without redoing the other two...

shutiri.
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 10:42:46 AM
Actually, no other theme than DEFAULT shows the numbers;  I tried them all, and just DEFAULT shows the numbers.

Shutiri.
Title: Re: page number not appearing
Post by: Casper on May 07, 2004, 10:54:38 AM
Hi,

Looking at the code, it seems that the mac_ox_x theme has this line of code (line 1236) commented out in theme.php, which is not commented out n the default theme.

Try simply removing the comment (//)

// $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);

Please let us know if this works.
Title: Re: page number not appearing
Post by: Casper on May 07, 2004, 10:57:46 AM
Look also at this line, a couple of lines above the other one;
/ $theme_alb_list_tab_tmpl = $template_tab_display;
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 11:08:59 AM
It worked, the numbers are there... BUT when I click on them it takes me to this URL: http://www.huecos.com/fotos/{LINK} (which does not opens, of course).

thank you,
shutiri.

Another thing: as I said before, this happened with ALL the other themes, not only default.

Title: Re: page number not appearing
Post by: Casper on May 07, 2004, 11:18:33 AM
OK, at least I got the right bit.  Now go back, and make sure the lines around it are like this;


$theme_alb_list_tab_tmpl = $template_tab_display;

    $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
    $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));

    $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
    // echo $template_album_list_cat;
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 11:39:18 AM
no, they're commented:

$theme_alb_list_tab_tmpl = $template_tab_display;
   // $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'],array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
   // $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'],array('{LINK}' => 'index.php?cat='.$cat.'&page=%d'));
   $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
   // echo $template_album_list_cat;



I also have this: {LEFT_TEXT} at the bottom of each category box:  www.huecos.com/fotos
Title: Re: page number not appearing
Post by: Casper on May 07, 2004, 11:42:22 AM
Well try uncommenting them, except this one;
// echo $template_album_list_cat;
Title: Re: page number not appearing
Post by: shutiri on May 07, 2004, 11:46:42 AM
yes, I went ahead and already did it.  IT WORKS !!!!!  thank you Casper.

shutiri.  I'm almost done !!