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

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

[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 :)