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: Showing spcific user galleries on front page  (Read 4932 times)

0 Members and 1 Guest are viewing this topic.

m0gb0y74

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Showing spcific user galleries on front page
« on: June 16, 2006, 12:39:43 pm »

Hi,

I am trying to showcase specific galleries/folders on the front page via the anycontent.php

What I want to do is pick and handful of galleries and then render them in the same way as the rest are rendered on the front page. I have looked at the code but I got lost as i am not that proficient with PHP. Could anyone give me a pointer on how I could do this?

Thanks,

james :-)
« Last Edit: June 22, 2006, 06:55:38 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Showing spcific user galleries on front page
« Reply #1 on: June 16, 2006, 01:56:21 pm »

This need some php coding experience
Paver may help you ;)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Showing spcific user galleries on front page
« Reply #2 on: June 17, 2006, 12:38:54 pm »

It's not clear by what you mean by
Quote
render them in the same way as the rest are rendered on the front page
because the front page can be set up to display in several different ways using the Configuration panel and even more if you code it yourself. Some galleries have photos on the front page and others do not such as my sports gallery because there are many different galleries to chose from and it would be too "busy" with all those galleries showing so the front page is based on the year and sport. If you can attach some screenshots and a description of how you want it to look, we would be better able to help you.

Cheers,

Gizmo
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

m0gb0y74

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Showing spcific user galleries on front page
« Reply #3 on: June 20, 2006, 11:23:09 am »

Hi,

thanks for the response. If you take a look at my current site http://www.infinitedreamers.co.uk/cpg132/ you can see the way I have layed out my front page. What i want to do is specify a set of albums that are within 'My friends galleries' to be rendered in extactly the same way. i.e. the album listing at http://www.infinitedreamers.co.uk/cpg132/index.php?cat=10008.

Here is what I am trying to get:

(http://www.infinitedreamers.co.uk/fs.jpg)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Showing spcific user galleries on front page
« Reply #4 on: June 20, 2006, 10:45:05 pm »

1) Not related to your question, but you're running cpg1.4.5 - it's mandatory to upgrade to cpg1.4.8!
2) Category thumbnail is a missing feature for user galleries
3) Expandable sub-categories for user galleries is a missing feature
4) Only workaround: create custom content using anycontent or miniCMS
Logged

m0gb0y74

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Showing spcific user galleries on front page
« Reply #5 on: June 21, 2006, 12:46:42 pm »

Hi,

I knew it would have to be via anycontent.php, it's just that my knowledge of PHP isn't that great and so I was wondering if I could get any pointers on where in teh code to look for how you generate the display tables so I could cut'n'paste and then modify the code to do what I want to do (or even better someone posts the code so I can just cut'n'paste the working code in ;-)

James :-)
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Showing specific user galleries on front page
« Reply #6 on: June 21, 2006, 03:22:08 pm »

Here's some quick code for anycontent.php that will list specified user galleries:
Code: [Select]
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%", "Featured Friends Galleries");

?>
<tr><td class="tableb" >
<?php 
$friend1_albums list_cat_albums(10001); 
$friend2_albums list_cat_albums(10002);
echo $friend1_albums;
echo $friend2_albums;
?>

</td></tr>
<?php
endtable
();

?>

As you can see, just put in the user ID for each user to grab the albums, then echo them out.

Of course, you probably want the albums to be all together, not in separate tables . . .
And maybe you even want to pick only certain albums from each user . . .
Logged

m0gb0y74

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Showing spcific user galleries on front page
« Reply #7 on: June 22, 2006, 10:01:16 am »

Thanks for that. It does what I currently want to do.

James :-)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Showing spcific user galleries on front page
« Reply #8 on: June 22, 2006, 10:11:02 am »

you see there is a powerful Paver ;)
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.