forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: natrlhy on July 20, 2004, 02:48:06 am

Title: [Solved]: Change item order on album browse page
Post by: natrlhy on July 20, 2004, 02:48:06 am
I was wondering how one could change the order in which an album is displayed. When browsing an album/gallery on the page with the rating/coments, etc. I would like to be able to have them in this order:

Rating
File Info
Comments
Album Navigation Bar
Album Picture

I have tried modifying the order of things at the bottom of the displayimage.php file.  It works to a degree, but this looked odd

Here is the default order in the displayimage.php file:

    }
    theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip);
    pagefooter();
    ob_end_flush();

And I tried to modify it like:

    }
    theme_display_image($nav_menu, $votes, $pic_info, $comments, $picture, $film_strip);
    pagefooter();
    ob_end_flush();

When I click on the Hide/Display file infomation icon, it hides the comments instead. It seems to call some java or php fuction but I just don't know how to change that...

Hope someone can help...

THanks!
Title: Re: Change item order on album browse page
Post by: Joachim Müller on July 20, 2004, 07:18:10 am
you can't just change the order or parameters. Instead: edit themes/yourtheme/theme.php, find
Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)and change the stuff that comes after it.

GauGau
Title: Re: Change item order on album browse page
Post by: natrlhy on July 20, 2004, 09:59:45 pm
That was it!

Thanks for the pointer!  Makes much more sense now how PHP works, etc!
I can even add another nav bar :)