Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Different style for album list on main page  (Read 3875 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Different style for album list on main page
« on: January 13, 2014, 05:14:47 pm »

Due to the site outage we lost an already solved thread which could be useful for other people, that's why I post it again.

It's currently still available in Google's cache: http://webcache.googleusercontent.com/search?q=cache:kDjatP42uzIJ:forum.coppermine-gallery.net/index.php%3Ftopic%3D77006.0+&cd=2&hl=de&ct=clnk&gl=de&client=firefox-a


Question:
Quote from: allvip
Can I wrapp the album list in a div only on index.php?


Answer:
Quote from: Αndré
Copy the function theme_display_album_list from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Find
Code: [Select]
starttable('100%');and above, add
Code: [Select]
    global $CPG_PHP_SELF;
    if (!$cat) {
        echo '<div class="your_class_here">';
    }

find
Code: [Select]
endtable();and below, add
Code: [Select]
    if (!$cat) {
        echo '</div>';
    }
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.