[Solved]: Change item order on album browse page [Solved]: Change item order on album browse page
 

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

[Solved]: Change item order on album browse page

Started by natrlhy, July 20, 2004, 02:48:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

natrlhy

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!

Joachim Müller

you can't just change the order or parameters. Instead: edit themes/yourtheme/theme.php, find function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)and change the stuff that comes after it.

GauGau

natrlhy

That was it!

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