coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: rybosom on August 07, 2007, 05:55:34 PM

Title: How to change?
Post by: rybosom on August 07, 2007, 05:55:34 PM
How to change this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg517.imageshack.us%2Fimg517%2F8144%2F46907286zm9.th.jpg&hash=9ed941f4e76fab77db72b2eb78e1b405e4fa67c2) (http://img517.imageshack.us/my.php?image=46907286zm9.jpg)
for this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg47.imageshack.us%2Fimg47%2F3326%2F23944602ex7.th.jpg&hash=baad136ee4064d763374f9541d2352b5d63b8d59) (http://img47.imageshack.us/my.php?image=23944602ex7.jpg)
?
Title: Re: How to change?
Post by: Nibbler on August 07, 2007, 06:02:13 PM
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.
Title: Re: How to change?
Post by: rybosom on August 07, 2007, 09:15:00 PM
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
Title: Re: How to change?
Post by: Nibbler on August 07, 2007, 09:19:58 PM
You need to move the blocks of code, not the order of the parameters. Again, search the board as this has been explained before.
Title: Re: How to change?
Post by: rybosom on August 07, 2007, 09:46:30 PM
... 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";

}
Title: Re: How to change?
Post by: Nibbler on August 07, 2007, 10:00:14 PM
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.
Title: Re: How to change?
Post by: rybosom on August 07, 2007, 10:10:53 PM
ok, I will redo my changes every time before update Coppermine's gallery - it's only one future redo in themes.inc.php ;)