Posted by pmurphy on March 12, 2009 at 1:13am
4 followers
Jump to:
| Project: | album photos |
| Version: | 6.x-2.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I like your Album Photo, and would also like to use it with http://www.cooliris.com/
Apparently all it takes is one line of code to link the picture to the cooliris plugin.
This should be fairly easy to do.
Then an Album Photo with lots of pictures should be able to get the Cooliris 3D plugin effect.
Comments
#1
http://drupal.org/project/PicLens
<?php/**
* Implementation of hook_mediarss_items.
*/
function example_module_mediarss_items($args = array()) {
$items = '';
// get all my items
$my_items = db_query("SELECT * FROM {my_table}");
while ($my_item = db_fetch_object($my_items)) {
$item = array(
'title' => $my_item->title,
'link' => $my_item->link,
'thumbnail' => file_create_url($my_item->thumbnail),
'content' => file_create_url($my_item->content),
);
$items .= mediarssapi_format_item($item);
}
$piclens['items'] = $items;
$piclens['title'] = 'My optional title';
return $piclens;
}
?>
http://drupal.org/node/246104
#2
Would I add this code to the photos.module?
I have cooliris working for images, and added an rss_feed field to the Album type in the Content types. This addition I think enable Cooliris for images since it's similar to Album Photos. I could have done the same with images, but wanted to see if it would work with the Album type which it did.
If you could give me some code suggestions on how to implement the feature I'll try my best to do it without bother you, I have a couple of books on Drupal module development which I'm currently going through. When it works I can then show you the updates, and you can choose to add the feature into the official release if you want. It's a really nice feature!
Additionally, I have a couple of simple requests. I want to the these Menus under the Album photos menu; Album photos, Latest albums, Latest images, and Share code. I want to use the Album photos to show just individual user photos, so that a user can only see their photos and no one elses. Which modules would I modify to perform this?
I'd really appreciate your suggestions, I'm sure it will save me a ton of time.
Thanks...
#3
subscribe
#4
subscribe
#5
Although the postings are more than a Year old: Dear PMurphy, Did you get any solution that how to integrate cooliris with Album photos module? Could you please share with us kindly?or anybody please?