Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Change item order on album browse page  (Read 4178 times)

0 Members and 1 Guest are viewing this topic.

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
[Solved]: Change item order on album browse page
« 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!
« Last Edit: July 21, 2004, 12:58:55 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change item order on album browse page
« Reply #1 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
Logged

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Change item order on album browse page
« Reply #2 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 :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.