coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: talkpoppycock on October 24, 2011, 12:16:20 PM

Title: User galleries
Post by: talkpoppycock 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.
Title: Re: User galleries
Post by: Αndré on October 24, 2011, 02:36:46 PM
If you want to show the user galleries on the main page, try the following solution:
Quote from: Αndré on February 09, 2011, 04:56:30 PM
Open index.php, find
                    if ($breadcrumb != '' || count($cat_data) > 0) {
                        theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                    }

and replace with
                    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);
                    }

Title: Re: User galleries
Post by: talkpoppycock 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?
Title: Re: User galleries
Post by: Αndré on October 27, 2011, 12:18:16 PM
Do you have any other categories/albums beside the user galleries?
Title: Re: User galleries
Post by: talkpoppycock on October 27, 2011, 01:09:09 PM
Yes there other categorys and I'm planning some more.
Title: Re: User galleries
Post by: Αndré on October 27, 2011, 02:37:40 PM
Open index.php, find
$categories[$row['cid']] = $user_galleries;
and replace with
//$categories[$row['cid']] = $user_galleries;
Title: Re: User galleries
Post by: talkpoppycock on October 27, 2011, 04:50:40 PM
Again, many thanks, worked perfectly.
Title: Re: User galleries
Post by: Αndré on October 27, 2011, 05:12:02 PM
Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
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.