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: page number not appearing  (Read 3975 times)

0 Members and 1 Guest are viewing this topic.

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
page number not appearing
« 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: page number not appearing
« Reply #1 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
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #2 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.  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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: page number not appearing
« Reply #3 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]
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #4 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.
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #5 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: page number not appearing
« Reply #6 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 (//)

Code: [Select]
// $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
Please let us know if this works.
« Last Edit: May 07, 2004, 10:59:42 am by Casper »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: page number not appearing
« Reply #7 on: May 07, 2004, 10:57:46 am »

Look also at this line, a couple of lines above the other one;
Code: [Select]
/ $theme_alb_list_tab_tmpl = $template_tab_display;
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #8 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.

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: page number not appearing
« Reply #9 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;

Code: [Select]

$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;
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #10 on: May 07, 2004, 11:39:18 am »

no, they're commented:

Code: [Select]
$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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: page number not appearing
« Reply #11 on: May 07, 2004, 11:42:22 am »

Well try uncommenting them, except this one;
Code: [Select]
// echo $template_album_list_cat;
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: page number not appearing
« Reply #12 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 !!

Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.