News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Bugs in Themes 5-6.0

Started by ArniesAirsoft, September 29, 2003, 05:34:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ArniesAirsoft

Okay.. there's a heap of bugs in the Nuke port of the themes.

In any theme.php that you want to use there's a typo throughout.

"USER_ID" is used as a template variable. This is incorrect, it should be "UID". All variables in coppermin/themes/[themname]/theme.php need to be changed.

Next up.. I prefer to link the profile back to the forum profile for that user, rather than to the coppermine profile. Just a personal choice.

If you want to do so, change the code (again in your theme.php you are using) from (around line 348):

// HTML template for the USER info box in the user list view
$template_user_list_info_box = <<<EOT

        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
                <tr>
                        <th><a href="modules.php?name=coppermine&file=profile&uid={UID}">{uname}</a></th>
                </tr>
                <tr>
                        <td>{ALBUMS}</td>
                </tr>
                <tr>
                        <td>{PICTURES}</td>
                </tr>
        </table>

EOT;


to:

// HTML template for the USER info box in the user list view
$template_user_list_info_box = <<<EOT

        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
                <tr>
                        <th><a href="modules.php?name=Forums&file=profile&mode=viewprofile&u={UID}">{uname}</a></th>
                </tr>
                <tr>
                        <td>{ALBUMS}</td>
                </tr>
                <tr>
                        <td>{PICTURES}</td>
                </tr>
        </table>

EOT;

sigi

Quote from: "ArniesAirsoft"Okay.. there's a heap of bugs in the Nuke port of the themes.

In any theme.php that you want to use there's a typo throughout.

"USER_ID" is used as a template variable. This is incorrect, it should be "UID". All variables in coppermin/themes/[themname]/theme.php need to be changed.

mhmm , to me it seems theres a connection between the template variable "USER_ID" and the phpnuke database field name User_id from nuke_users... that is, für phpNuke 6.5 and up, this should be USER_ID, for 6.0 and less it should be UID ...
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

ArniesAirsoft

Well I'm using phpnuke 6.0 and using the port for Nuke 6, rather than 6.5 and above. There are two ports in the nuke distribution zip file sorry I should have said which I was using.