page number not appearing page number not appearing
 

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]

Main Menu

page number not appearing

Started by shutiri, May 07, 2004, 06:45:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shutiri

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.


Joachim Müller

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

shutiri

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.

Joachim Müller

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]

shutiri

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.

shutiri

Actually, no other theme than DEFAULT shows the numbers;  I tried them all, and just DEFAULT shows the numbers.

Shutiri.

Casper

#6
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.
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

Look also at this line, a couple of lines above the other one;
/ $theme_alb_list_tab_tmpl = $template_tab_display;
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

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.


Casper

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

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

Casper

Well try uncommenting them, except this one;
// echo $template_album_list_cat;
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

yes, I went ahead and already did it.  IT WORKS !!!!!  thank you Casper.

shutiri.  I'm almost done !!