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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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