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: Mostviewed/lastcom/lastup is pointing to user gallery  (Read 3640 times)

0 Members and 1 Guest are viewing this topic.

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
Mostviewed/lastcom/lastup is pointing to user gallery
« on: June 08, 2005, 05:43:42 pm »

Hello dear Coppermine users,

I love the script, use it already a year but got a problem now :-\\.. The links "Most viewed", "Last comments", "Last upped" are pointing to an user gallery..

If I point my mouse to "Last comments", it goes to this url:
http://fotos.lasa.nl/thumbnails.php?album=lastcom&cat=10006

What am I doing wrong? Something miss in the config? Or is the template not 100% right?

I'm sorry, but I just don't know where to start..

Thanks for all users who wants to help me! Thnx
« Last Edit: June 09, 2005, 05:53:29 pm by kegobeer »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #1 on: June 08, 2005, 06:00:46 pm »

It's related to your theme.  When I switch to your classic theme the links are correct.  Have you modified your theme in any way?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #2 on: June 08, 2005, 07:21:57 pm »

Yes I have modified the english texts to the dutch ones.. (Netherlands).. Not more I guess, but I can be wrong..

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #3 on: June 08, 2005, 08:57:33 pm »

Your theme is attaching the cat=xxxxxx to the links.  Compare your theme.php file to the classic theme.php file to see what the difference is.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #4 on: June 08, 2005, 10:26:36 pm »

Hi KegoBeer. I have replaced the theme.php with the original theme.php of the Kubrick Rar. But it still gives the cat=xxxxxx.. Maybe it's Kubrick? Do I need to give some debug info?

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #5 on: June 08, 2005, 10:50:42 pm »

It's not the theme - I downloaded and installed Kubrick on my 1.3.3 gallery and it works fine.  I think the jump to category/user select box at the bottom of your page may be reacting with that particular theme.  Try removing that mod.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
Re: Mostviewed/lastcom/lastup is pointing to user gallery
« Reply #6 on: June 09, 2005, 05:41:23 pm »

You are right!! Thanks for your tip!

I've changed:
Code: [Select]
      while ( $fetched_row  = mysql_fetch_row($result) )
         {
            $cat = $fetched_row[0];
            $owner = ucwords($fetched_row[1]);

            echo "<OPTION VALUE='$cat'>$owner</OPTION>";

         }

to:

Code: [Select]
      while ( $fetched_row  = mysql_fetch_row($result) )
         {
            $catje = $fetched_row[0];
            $ownertje = ucwords($fetched_row[1]);

            echo "<OPTION VALUE='$catje'>$ownertje</OPTION>";

         }

THANKS KegoBeer!
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.