How to change? How to change?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to change?

Started by rybosom, August 07, 2007, 05:55:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Nibbler

Copy the theme_display_image() function from the sample theme into your theme and move the code blocks up and down as you want. Search the board if you need more details, this has been discussed before.

rybosom

have problems, the change CPGPluginAPI::filter('post_breadcrumb',null);
    theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip);
    pagefooter();
    ob_end_flush();
for this     CPGPluginAPI::filter('post_breadcrumb',null);
    theme_display_image($nav_menu, $votes, $picture, $comments, $pic_info, $film_strip);
    pagefooter();
    ob_end_flush();
makes errors in display

Nibbler

You need to move the blocks of code, not the order of the parameters. Again, search the board as this has been explained before.

rybosom

... it works, thank you, thank you, thank you  ;D

I have change, in displayimage.php into theme_display_image($nav_menu, $votes, $picture, $comments);
and in include/themes.inc.php into function theme_display_image($nav_menu, $votes, $picture, $comments)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    echo $votes;

    starttable();
    echo $picture;
    endtable();

    echo "<div id=\"comments\">\n";
echo $comments;
echo "</div>\n";

}

Nibbler

Don't change include/themes.inc.php - instead do as suggested and copy the function from the sample theme to your theme. If you modify themes.inc.php you will need to redo your changes every time you update Coppermine.

rybosom

ok, I will redo my changes every time before update Coppermine's gallery - it's only one future redo in themes.inc.php ;)