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 Album View on front page then rest of albums  (Read 2980 times)

0 Members and 1 Guest are viewing this topic.

ryanhowdy

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Different Album View on front page then rest of albums
« 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?
« Last Edit: July 10, 2006, 07:52:45 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Different Album View on front page then rest of albums
« Reply #1 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. Not sure what you mean by showing on every album so if you provide a link tp your gallery that would help.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Different Album View on front page then rest of albums
« Reply #2 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?
Logged

ryanhowdy

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Different Album View on front page then rest of albums
« Reply #3 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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Different Album View on front page then rest of albums
« Reply #4 on: July 07, 2006, 11:59:26 pm »

add this
Code: [Select]
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
Code: [Select]
case 'random':it should be look like this
Code: [Select]
                    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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

ryanhowdy

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Different Album View on front page then rest of albums
« Reply #5 on: July 10, 2006, 05:50:06 pm »

worked perfectly... thank you so much.

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.