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: User galleries  (Read 2870 times)

0 Members and 1 Guest are viewing this topic.

talkpoppycock

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
User galleries
« on: October 24, 2011, 12:16:20 pm »

I would like to be able to show the users who have galleries (the users galleries main page) on the home page. Is there a setting to achieve this or possibly a mod? I have searched for this & found some referances, but no solution. Can anyone help please.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User galleries
« Reply #1 on: October 24, 2011, 02:36:46 pm »

If you want to show the user galleries on the main page, try the following solution:
Open index.php, find
Code: [Select]
                    if ($breadcrumb != '' || count($cat_data) > 0) {
                        theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                    }
and replace with
Code: [Select]
                    if ($breadcrumb != '' || count($cat_data) > 0) {
                        if (isset($cat) && $cat != USER_GAL_CAT) {
                            starttable(-1, 'Benutzeralben');
                            echo "<tr><td>";
                            list_users();
                            echo "</td></tr>";
                            endtable();
                        }
                        theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                    }
Logged

talkpoppycock

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: User galleries
« Reply #2 on: October 27, 2011, 12:13:04 pm »

Worked perfectly, many thanks.
The next and obvious question is how do I get rid of the now unrequired User Galleries in the Category section?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User galleries
« Reply #3 on: October 27, 2011, 12:18:16 pm »

Do you have any other categories/albums beside the user galleries?
Logged

talkpoppycock

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: User galleries
« Reply #4 on: October 27, 2011, 01:09:09 pm »

Yes there other categorys and I'm planning some more.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User galleries
« Reply #5 on: October 27, 2011, 02:37:40 pm »

Open index.php, find
Code: [Select]
$categories[$row['cid']] = $user_galleries;and replace with
Code: [Select]
//$categories[$row['cid']] = $user_galleries;
Logged

talkpoppycock

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: User galleries
« Reply #6 on: October 27, 2011, 04:50:40 pm »

Again, many thanks, worked perfectly.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: User galleries
« Reply #7 on: October 27, 2011, 05:12:02 pm »

Please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.