coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: lasa on June 08, 2005, 05:43:42 PM

Title: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: lasa 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
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: kegobeer 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?
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: lasa 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..
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: kegobeer 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.
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: lasa 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?
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: kegobeer 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.
Title: Re: Mostviewed/lastcom/lastup is pointing to user gallery
Post by: lasa on June 09, 2005, 05:41:23 PM
You are right!! Thanks for your tip!

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

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

         }


to:

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

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

         }


THANKS KegoBeer!