Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Apr 12, 2007, 13:26   #1
Zoe
SitePoint Community Guest
 
Posts: n/a
Build a Photo Gallery Using CakePHP and Flickr

Notice: This is a discussion thread for comments about the SitePoint article, Build a Photo Gallery Using CakePHP and Flickr.
__________

Great tutorial, but I wish there was a finished example to see at the end. Am I missing something?
  Reply With Quote
Old Apr 14, 2007, 21:48   #2
Tot
SitePoint Community Guest
 
Posts: n/a
dude... cakephp suxs , it doesnt have aported anything good to PHP, so please just stop making articles about cakephp,
you should talk about zend or codeigniter
thanks
  Reply With Quote
Old Apr 15, 2007, 21:30   #3
saumendra
SitePoint Member
 
Join Date: Apr 2004
Location: india
Posts: 1
Great Article!.
Even google has come up with an API with the same structural and functional properties
saumendra is offline   Reply With Quote
Old May 18, 2007, 04:17   #4
jack
SitePoint Community Guest
 
Posts: n/a
very informative article, thanks

i look forward to see more articles about Cake from sitepoint.
  Reply With Quote
Old May 21, 2007, 16:43   #5
jonern
SitePoint Community Guest
 
Posts: n/a
Nice article! CakePHP is a great framework, looking forward to your next tutorial =) Thanks!
  Reply With Quote
Old Jul 19, 2007, 15:24   #6
Axl
SitePoint Community Guest
 
Posts: n/a
Thanks for the great article. That's some really simple but slick Javascript code. Very nice!

CakePHP rocks!
  Reply With Quote
Old Aug 16, 2007, 05:34   #7
Microbike
SitePoint Community Guest
 
Posts: n/a
Hi there, could you give any working examples of this Flickr/Cake web app? I'd love to see one in action... thanks.
  Reply With Quote
Old Aug 27, 2007, 21:14   #8
Tom
SitePoint Community Guest
 
Posts: n/a
super cool! This will be an awesome addition to my image gallery script...have an option to setup a gallery by pulling in a flickr feed instead of uploading images... or maybe in addition to.

thanks for posting!
  Reply With Quote
Old Sep 21, 2007, 12:38   #9
kilinkis
SitePoint Community Guest
 
Posts: n/a
i cant make it work :(

kilinkis
  Reply With Quote
Old Sep 24, 2007, 13:48   #10
katu
SitePoint Member
 
Join Date: Jun 2007
Posts: 15
I couldn't get this to work either. I don't think the tutorial is very clear. I appreciate all the effort in the tutorial but at the end of the day i've spent hours following something that doesen't work
katu is offline   Reply With Quote
Old Dec 14, 2007, 08:33   #11
jonathansnook
SitePoint Member
 
Join Date: Dec 2005
Posts: 5
If you are continuing to have issues, you can reach me via my site and I can step you through any issues you might be having.
jonathansnook is offline   Reply With Quote
Old Mar 11, 2008, 16:31   #12
doohinkus
SitePoint Community Guest
 
Posts: n/a
It took me while to get this to work, but I did get it working. Maybe, that's because I'm new to CakePHP.

The line that deals with routing needs to be updated because the syntax has changed from:

$Route->connect('/gallery/*',
array('controller' => 'gallery', 'action'=>'index'));

to

Router::connect('/gallery/*', array('controller' => 'gallery', 'action'=>'index'));

Other than that. I think this was an awesome tutorial. The CakeFlickr component for PHPFlickr is genius. I'm definitely going to use it for other projects.
  Reply With Quote
Old Apr 18, 2008, 13:55   #13
hugo alvarado
SitePoint Community Guest
 
Posts: n/a
nice! i will definitely use this, thanks
  Reply With Quote
Old May 17, 2008, 20:29   #14
Mike Thomas
SitePoint Community Guest
 
Posts: n/a
This tutorial outputs the thumbnails in an unordered list, for those who wish to display the images in a table here is some code you can modify to suit your needs:

$total_records = count($thumbs['photo']); // the number of records in your result set

$num_cols = 5; // the number of columns
$num_rows = ceil($total_records / $num_cols); // the number of rows
$num = 0; // don't change this value, this is the first number of each record inside a record set

echo "<table align=\"center\" cellpadding=\"5\" cellspacing=\"10\">\n";
// next the loop for the table rows
for ($rows = 0; $rows < $num_rows; $rows++) {
echo "<tr>\n";
// this is the loop for the table columns
for ($cols = 0; $cols < $num_cols; $cols++) {
if ($num < $total_records) { // show records if available (reduce by one because the first record is no. "0" (zero)
// first create variables with the values of the current record
$href = $flickr->buildPhotoURL($thumbs['photo'][$num], 'medium');
$thum = $flickr->buildPhotoURL($thumbs['photo'][$num], 'thumbnail');
$title = $thumbs['photo'][$num]['title'];
echo "<td><a href=\"".$href."\"title=\"".$title."\" rel=\"lightbox[]\"><img src=\"".$thum."\"></a><td>\n";

} else { // show an empty cell
echo "<td>&nbsp;</td>\n";
}
$num++; // raise the number by one for the next record
}
echo "</tr>\n"; // there are no more cols in this row, close the table row tag
}
echo "</table>\n"; // end of the region = closing tag for the table element
?>
  Reply With Quote
Old May 22, 2008, 21:28   #15
Pierre
SitePoint Community Guest
 
Posts: n/a
Hi,

I am new to all this and can't get it working.. I followed all the steps above.. am getting the following error.. please help:

Missing Method in GalleryController

You are seeing this error because the action index is not defined in controller GalleryController

If you want to customize this error message, create app/views/errors/missing_action.thtml.

Fatal: Confirm you have created the GalleryController::index() in file : app/controllers/gallery_controller.php

<?php
class GalleryController extends AppController {
function index() {
}
}
?>
  Reply With Quote
Old Nov 5, 2008, 00:41   #16
Auzigog
SitePoint Community Guest
 
Posts: n/a
Note that the Flickr Component linked to above needs to be updated to no longer use the vender() function. That line should be replaced with:

App::import('Vendor', 'phpFlickr', array('file' => 'phpflickr'.DS.'phpFlickr'.DS.'phpFlickr.php'));
  Reply With Quote
Old Sep 21, 2009, 10:56   #17
tomgrygory
SitePoint Member
 
Join Date: Sep 2009
Location: Usa
Posts: 0
This has been occurring in the past 2 or 3 weeks. With Internet Explorer (7) on, after awhile its memory usage (as seen in Windows Task Manager) just gets larger and larger until it finally locks up, at which time it's not even possible to view Task Manager any more in order to end its process or shut the application. I have to force a shutdown to start using the computer again.
no fax payday loans
What is going on here? I didn't seem to have this problem before. Not sure how to fix it.
payday loan online
Any info or help appreciated.
Thanks
payday loans
tomgrygory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 16:28.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved