Different Album View on front page then rest of albums Different Album View on front page then rest of albums
 

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

Main Menu

Different Album View on front page then rest of albums

Started by ryanhowdy, July 07, 2006, 05:04:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ryanhowdy

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?

Gizmo

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. Not sure what you mean by showing on every album so if you provide a link tp your gallery that would help.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

ryanhowdy

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?

ryanhowdy

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.

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

ryanhowdy