coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ryanhowdy on July 07, 2006, 05:04:19 PM

Title: Different Album View on front page then rest of albums
Post by: ryanhowdy on July 07, 2006, 05:04:19 PM
Is there a way to include the latest uploads and latest comments, but only on the front page.  I have it working now except it also shows latest uploads and comments on every album.  I want it to only show on the front page.

Can this be done?
Title: Re: Different Album View on front page then rest of albums
Post by: Gizmo on July 07, 2006, 09:23:47 PM
If you set the breadcrumb to show these items, they should only be on the main page: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list). Not sure what you mean by showing on every album so if you provide a link tp your gallery that would help.
Title: Re: Different Album View on front page then rest of albums
Post by: ryanhowdy on July 07, 2006, 09:34:29 PM
I'd rather not give out the address of my gallery.  Let me see if I can expain it better.

the front page (gallery/index.php) shows the following
the categories block
the latest uploads block
the latest comments block

if you click on any of those categories (gallery/index.php?cat=1) for example it shows the latest uploads block and comments block also.  i don't want these to show up anywhere but on the front page.  just on index.php and no where else.

does that make sense?
Title: Re: Different Album View on front page then rest of albums
Post by: ryanhowdy on July 07, 2006, 09:37:44 PM
i have been saying albums, because that is where you edit the latest comments stuff, but i guess technically it only shows up in the category view.

i don't want that to happen.  just the front page.
Title: Re: Different Album View on front page then rest of albums
Post by: Sami on July 07, 2006, 11:59:26 PM
add this

if($_GET['cat']==0 || !$_GET['cat'])

after each case under index.php around line 796 ~ 832
if you want to remove random block add that code after case 'random':
it should be look like this

                    case 'random':
                        if($_GET['cat']==0 || !$_GET['cat'])
display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

and same for other
Title: Re: Different Album View on front page then rest of albums
Post by: ryanhowdy on July 10, 2006, 05:50:06 PM
worked perfectly... thank you so much.