stupid issue I can't fix .... stupid issue I can't fix ....
 

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

stupid issue I can't fix ....

Started by Fed, April 30, 2005, 04:38:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fed

Hi guys
I have a stupid issue and I can't go through fixing it

see my gallery at www.imagetemple.com/gallery

when I click on the categories in the gallery home page the links don't work

as you can see the links are wrong, they took a wrong path, that one is the path of my temporary working folder and I'd like to fix this problem but I dunno where to put my hands

I'm sure you'll be able to give me the solution...

thanks a lot

Fed

donnoman

It looks like you opened your theme.php with a graphical editor like frontpage... Never ever do that.

to solve this issue specifically I would start looking at your theme.php and  start looking for problems at where "$template_cat_list=" is.

There are likely other problems that were introduced into your theme.php.

Fed

Quote from: donnoman on April 30, 2005, 05:19:33 PM
It looks like you opened your theme.php with a graphical editor like frontpage... Never ever do that.

to solve this issue specifically I would start looking at your theme.php and  start looking for problems at where "$template_cat_list=" is.

There are likely other problems that were introduced into your theme.php.

sure...I open them in dreamweaver from that folder....

I immediately try your sugestion....thanks!

Fed

this is what it contains....

what do I have to change?

$template_cat_list = <<<EOT

<!-- BEGIN header -->

...

donnoman

In dreamweaver theres something you can turn off like code beautification or something, search the forums for "dreamweaver"

post the contents of $template_cat_list = <<<EOT all the way until the next EOT;

Fed

$template_cat_list = <<<EOT

<!-- BEGIN header -->

        <tr>

                <td class="tableh1" width="80%"><b>{CATEGORY}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>

                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>

        </tr>

<!-- END header -->

<!-- BEGIN catrow_noalb -->

        <tr>

                <td class="tableh2" colspan="3"><table border="0" ><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

        </tr>

<!-- END catrow_noalb -->

<!-- BEGIN catrow -->

        <tr>

                <td class="tableb"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

                <td class="tableb" align="center">{ALB_COUNT}</td>

                <td class="tableb" align="center">{PIC_COUNT}</td>

        </tr>

     <!--if (isset(CAT_ALBUMS)){-->

          <tr>

            <td class="tableb" colspan=3>{CAT_ALBUMS}</td>

      </tr><!--};-->

<!-- END catrow -->

<!-- BEGIN footer -->

        <tr>


                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>

        </tr>

<!-- END footer -->

<!-- BEGIN spacer -->

        <img src="images/spacer.gif" width="1" height="17" /><br />

<!-- END spacer -->



EOT;

Fed

UP :D

I'm still here with the problem, and didn't find the way to disable code beautification in Dreamweaver....

someone who has an idea?( maybe for both the problems  8) )

Joachim Müller

use a plain text editor (notepad is fine)

Fed

Quote from: GauGau on May 01, 2005, 11:51:29 AM
use a plain text editor (notepad is fine)

and what about the problem of my wrong links ?

what do I have to change to have them working again?  :-\\

Tranz

Quote from: Fed on May 01, 2005, 11:28:37 AM
UP :D

I'm still here with the problem, and didn't find the way to disable code beautification in Dreamweaver....

someone who has an idea?( maybe for both the problems 8) )
http://forum.coppermine-gallery.net/index.php?topic=11903.msg58141#msg58141

donnoman

The problem isn't with your theme, as you can switch to classic and the problem persists.

Look in your index.php

look specifically at this function "function get_subcat_data"

Did you apply any mods?

Fed

I found thos wrong links in index php, I tried changing something but it didn't work, it retook the wrong ones....

what if I upload a standard index.php file from the coppermine packet?

donnoman

That would be a good starting point.

Fed

Quote from: donnoman on May 02, 2005, 01:17:46 AM
That would be a good starting point.

will I loose any configuration setting or something I made? (except any code change I could have made but I don't think I have...)

Tranz

Configuration settings are stored in the mysql database so you will not lose them if you are only replacing index.php

Make sure to backup your version. Then use winmerge to compare yours and the cpg version to see what changes occurred.

Fed

it seems to work fine now

if you find any bugs please advise me ;)

thanks for the support guys!