Welcome, Guest. Please login or register.
March 21, 2010, 06:34:27 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110567 Posts in 15967 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  UPD: Flickr Image Gallery Module Released (version 1.3.)
Pages: [1] 2 3 4 Go Down Print
Author Topic: UPD: Flickr Image Gallery Module Released (version 1.3.)  (Read 31802 times)
Woudloper
Guest
« on: October 13, 2005, 04:06:37 PM »

Introduction

As some of you might have noticed. I am working on a new module for 'Website Baker'. This is again a gallery module, but it has some advantages in relation to the other gallery modules that have been developed for 'Website Baker'. One of the advantages is that the images are not stored in 'Website Baker', but that you can manage this images online on the external source.

For the external source I am using flickr.com. Flickr.com is one of the best online photo management and sharing applications I could find. Many people are already using this to manage their photos. As I found this tool very usefull and I found (as mentioned in the other post) a nice example and php class that could be used, I started to work on this gallery.

Explenation

To learn more about this module I would advice you to install (see 'completed modules' thread) it and test it out. Within the module you can find a help, that will be accesible after you created a new page (based upon the module). There are two things that are imported when you want to work with the module. 1. You need an API key so you can communicate via the flickr api and 2. you need a username and photos so you can show photos on the page.

The module is fully working now and is suitable for most people if I can say so myself.

Future changes (todo list)

There are still some points I would like to work on:

  • Implement the 'nr of photos on page' as this is not working
  • Make it possible to show the previous/next image when viewing a single photo
  • Show more data information at the single photo (like published date, etc)
  • Implement caching functionality

I could even add the uploading/managing of images to the module, but decided to leave that part over at flickr.com since they have a good tool for this.

If you all might have some suggestions, don't hesitate to mention them over here.

Example link

Unfortunatly I could not show you a live example since my website is not online yet. If you sent me a PM I can redirect you to a test website I am working on. To get the basic idea how the module looks like you can take a look at this page as this was the basis for this module.

Questions

If you have questions you can post a message in this thread an I will try to answer you a.s.a.p. I also have a question for other people (module developers, developers, users, etc.). Q. Could some of you also look at the code (mainly of the 'view.php') and examine the code how it has been written. I am not an experienced php developer (in fact I'm not an developer at all) and could made some unlogical choices.

For the rest I could only say enjoy the module and please post your results  smiley

New version released (1.3.)

See this reply in the 'complete modules' thread to download a new version of the flickr gallery module. Two main things have been changed in this module and that are: cache rebuild and updated the phpflickr class.

[attachment deleted because of being too old]
« Last Edit: December 21, 2005, 06:50:24 PM by Woudloper » Logged
Argos
Forum administrator
*****
Offline Offline

Posts: 1349


WWW
« Reply #1 on: October 13, 2005, 11:41:36 PM »

Hey, very interesting module!! I'll wait until it's a bit more mature to use it, but I think it's a great idea!
Logged

Jurgen Nijhuis
Argos Media
www.argosmedia.nl/portfolio (mostly WB sites)
----------------------------------------------------------------
Please don't request personal support, use the forums!
Woudloper
Guest
« Reply #2 on: October 13, 2005, 11:51:25 PM »

Hey, very interesting module!! I'll wait until it's a bit more mature to use it, but I think it's a great idea!

Thanx for the compliment. If you have any suggestions about the premature phase it is now your comment is more then welcome. Even suggestions, etc. Like if you would have done something different or that you would like to change a part in the admin interface...
Logged
kibmcz

Offline Offline

Posts: 214



WWW
« Reply #3 on: October 14, 2005, 01:09:59 AM »

isn't the api key supposed to be included in the module? I used the windows xp upload tool and it didn't ask me for a api key.
Logged
Woudloper
Guest
« Reply #4 on: October 14, 2005, 07:22:59 AM »

isn't the api key supposed to be included in the module? I used the windows xp upload tool and it didn't ask me for a api key.

Yes that could have been done. I actually considered distributing the API key embedded in the module but in the end I decided that I would prefer if users got their own keys. If you are working with multiple 'Website Baker' website you can use the same API key over and over again as that wouldn't be a problem. Furthermore the request for an API key isn't so hard. Just fill in the form and hit the submit button and you have yourselve an API key.
Logged
LarsVegas

Offline Offline

Posts: 4


« Reply #5 on: October 27, 2005, 08:18:08 PM »

that's a cool module, thanks for sharing...
works fine
Logged
Woudloper
Guest
« Reply #6 on: October 31, 2005, 05:09:11 PM »

that's a cool module, thanks for sharing...
works fine

Thanks for the compliments. If you have any suggestions are questions about this module don't hesitate to ask me. Currently I am working on the final points of the next release of this module which holds the following changes/fixes:

  • Removal of the search entries has been fixed. These where still available in that specific database table.
  • Additional options for single photo implemented (Like: [PHOTOFLICKRURL], [PHOTODATEPOSTED], [PHOTODATETAKEN], [PHOTOPREVURL], [PHOTOPREVLINK], [PHOTONEXTURL], [PHOTONEXTLINK])
  • Implemented caching functionality (so retrieval of flickr image sets is faster)
  • Update the help with the new changes
  • Implement the option to navigate between the nr. of photos inside a photoset. In release 0.1. all photos in a set where displayed. Now it is possible to limit this.

If nobody has any suggestions the new version will be release by the end of this week.
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #7 on: November 01, 2005, 01:08:19 PM »

unfortunately i am getting an error with this Sad

Warning: Invalid argument supplied for foreach() in /home/pmarkley/public_html/play/modules/flickrgallery/view.php on line 92

any ideas as im not php guru Sad
Logged

http://www.markley.co.uk
webhosting packages available
Woudloper
Guest
« Reply #8 on: November 01, 2005, 05:09:54 PM »

unfortunately i am getting an error with this Sad

Warning: Invalid argument supplied for foreach() in /home/pmarkley/public_html/play/modules/flickrgallery/view.php on line 92

Thanks for reporting this issue. The reason why you receive this error message is that you did not defined any photo set within your flickr.com profile.  This module only works when you have put the photos in sets. This way you can view photos per thema or event.

Nevertheless you should not receive such an error message. I will fix this and add a message for the output that the end-user should work with photosets whithin his flickr.com profile.
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #9 on: November 02, 2005, 09:36:26 AM »

ahh now i see Cheesy created a set and worked fine, thanks..

this is a great module, really looking forward to the next release with the integrated <next> <previous> etc..
good work there Woudloper  afro

EDIT: i come across something today in your MOD. "Set the Flickr Group name:" in the page section. This should read "set name" and not group. I created a group and i kept getting an error saying that the name didnt exist for the user. I then realised that it should be the set and not a group.
« Last Edit: November 02, 2005, 04:46:44 PM by mysticfreeman » Logged

http://www.markley.co.uk
webhosting packages available
Woudloper
Guest
« Reply #10 on: November 03, 2005, 03:02:57 PM »

New Version Release (0.2.)

I would like to thank all of you for testing the 0.1. release of the Flickr Gallery Module. Today I finally would like to release the new version 0.2. Attached you will the new version. If nobody finds a bug anymore or comes with more suggestions for this module this version will become the 1.0 release of this module.

Changelog
  • Fixed: Removal of the search entries has been fixed. These where still available in that specific database table.
  • Fixed: Implemented a warning message when no sets have been created for the provided flickr.com username.
  • Fixed: The text 'group' has been replaced with 'set' since this is the correct naming within flickr.com.
  • Fixed: Saving of the settings. The special characters (like: &nbsp;, &lt; and &gt;) where displayed wrong on the settings page.
  • Added: Additional options for single photo implemented (like: [PHOTOFLICKRURL], [PHOTODATEPOSTED], [PHOTODATETAKEN], [PHOTOPREVURL], [PHOTOPREVLINK], [PHOTONEXTURL], [PHOTONEXTLINK])
  • Added: Implemented the caching functionality
  • Added: Implement the option to navigate between the nr. of photos inside a photoset. In release 0.1. all photos in a set where displayed. Now it is possible to limit this. The tags for this navigation can be used in the set header. The following tags have been added: [SETNAVFIRST], [SETNAVPREV], [SETNAVCUR], [SETNAVLAST], [SETNAVNEXT].
  • Changed: Update the help with the new changes
  • Changed: Updated the default field values (header, loop, footer) with the new implemented options

[attachment deleted because of being too old]
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #11 on: November 03, 2005, 04:10:49 PM »

cheers i shall have a play with it Cheesy
Logged

http://www.markley.co.uk
webhosting packages available
Woudloper
Guest
« Reply #12 on: November 16, 2005, 09:03:55 PM »

Since there where no replies anymore about issues regarding this module I worked on it this evening and added one additional option.

  • Added: Now the different text of the frontpage file (view.php) and the modification (modify.php) within the admin console are stored in a language file

Furthermore nothing else has changed. Therefore this version becomes the final version of the Flickr Image Gallery module. If someone has any questions you can ask them in this thread.
Logged
drcarlnett

Offline Offline

Posts: 6


« Reply #13 on: November 23, 2005, 04:37:13 AM »

I am having problems with the module on pages with multiple sections where each section is a flickr gallery. Basically, only the first flickr gallery shows up on the page. I tried separating the flickr gallery sections with WYSIWYG sections, to no avail. Any ideas? Thx!
Logged
Woudloper
Guest
« Reply #14 on: November 23, 2005, 09:37:02 AM »

I am having problems with the module on pages with multiple sections where each section is a flickr gallery.

Interesting that you are using the Flickr Gallery module on pages with multiple sections. Never tried that before. Don't know if this is working correctly.

Quote
Basically, only the first flickr gallery shows up on the page. I tried separating the flickr gallery sections with WYSIWYG sections, to no avail. Any ideas? Thx!

That is strange. I think something is going wrong in the declaration of some functions within PHP as opening the page two times will also trigger calling several functions (in PHP) and this can cause an error. Q: Could you post the error you are getting when you work with multiple Flickr Gallery sections on a page. This way I can maybe help you.

Update: I have looked into the problem and could solve the error that was occuring. This all had to do with the fact that a function is in the view.php. When you put two Flickr Gallery's on one page this function is declared twice (or even more) and this caused the error.

Furthermore I looked into the fact about putting multiple Flickr Gallery's on one page, but I don't think I can get this working as you want it to get working. This requires a complete rewrite (if you ask me) for this module as this module works with input parameters in the file (like: filename.php?setid=1234567) Within the source code the setid is used to display a set. When working with multiple Flickr Gallery's the same set will be shown for both Gallery's and if working with several users/sets only one of the sets will be displayed correcty.

Advice: My advice would be not work with multiple Flickr Gallery modules on one page. You can use the gallery with other modules, but you can't use two Flickr Gallery's on one page.
« Last Edit: November 23, 2005, 06:11:43 PM by Woudloper » Logged
i2Paq

Offline Offline

Posts: 500


Tempelier, on bare feet!


WWW
« Reply #15 on: November 23, 2005, 08:50:02 PM »

So this can only be used with Flickr then? Because I'm looking for one where I can link to images somewhere else on a website.
« Last Edit: November 23, 2005, 09:04:42 PM by i2Paq » Logged

Opensource is my life,  osCommerce and PrestaShop..
Woudloper
Guest
« Reply #16 on: November 23, 2005, 10:56:51 PM »

So this can only be used with Flickr then? Because I'm looking for one where I can link to images somewhere else on a website.

Yes, this Gallery module can only be used when you have a flickr.com account and your pictures are stored on their location. The Gallery is fully integrated into the website, but it retrieves the images from another (flickr.com) location...
Logged
teressa

Offline Offline

Posts: 24



« Reply #17 on: December 01, 2005, 10:36:25 PM »

I like this module very much, I would like to ask you if this error message is my server or the configuration?

Code:
Warning: Missing argument 1 for http_request() in /usr/local/lib/php/HTTP/Request.php on line 209

thanks
Logged

baker's man, bake me a cake as fast as you can
Woudloper
Guest
« Reply #18 on: December 02, 2005, 12:18:15 AM »

That's an strange error!? I have never seen this one. Hopefully some other person (here on the forum) could answer your question and is it has something to do with the gallery module I will fix it in the near future...
Logged
teressa

Offline Offline

Posts: 24



« Reply #19 on: December 02, 2005, 07:40:20 PM »

I have asked my sysadmin to check it out. I will let you know what we discover.

UPDATE: here is mysysadmin's response to the question

Quote
Really the person who wrote the software is going to be the only person who can help you with this.

HTTP_Request is not part of the standard PHP library. It is a PEAR module (part of the PHP extension library). Perhaps the author wrote the software on a machine where the PEAR extension library was available but didn't know where or how. Typically, to make any part of the PEAR extension library available you'd have to install it yourself into your own site directory, and then us it from there.

It looks like instead the module is trying to call the http_request() function inside of /usr/local/lib/php/HTTP/Request.php

I do not know what this directory is-- but it certainly is not part of your site. It is possible that this part of the PEAR library has been installed here and was triggered automatically somehow when the function was used-- although this part I do not know.

In any case, my advice for the programmer is this: Never expect other people's PEAR libraries to be available, install the PEAR modules you need directly and always use your self-installed PEAR extension libraries and not any default ones which happen to be on the server you are working on.

By doing it this way, you will ensure that the software is using the version of the library function that you want it to be using-- the one it was written to work with--- not some other version of that particular function which a happens to be on the server ...

If I had to guess I'd say that they are trying to use a library that is inconsistent or incompatible with the software module-- likely because the module was written on someone else's server with different implementation of http_request(). But like I said that's just a guess.

As a further recommendation-- why not use fsockopen(), which is in the PHP library and not the extension library -- fsockopen() can probably do everything you need http_request to do and you won't have to worry about the PEAR library issues.

I hope this is helpful.
« Last Edit: December 02, 2005, 10:00:46 PM by teressa » Logged

baker's man, bake me a cake as fast as you can
Woudloper
Guest
« Reply #20 on: December 13, 2005, 08:55:52 AM »

Update (new version)

As some of you might have noticed I have updated the Flickr Image Gallery module to version 1.2. This version is more a maintainance release since I noticed that the 'Flickr Image Gallery' module caused an error in the search.

This now has been solved and the download file has been updated. If you would like to update the module you can best remove the page you have created based upon the module. Uninstall the module and reïnstall the module.



@ teressa: Thanks for that reply. The strange thing is that the PEAR module is included inside the Flickr Image Gallery module. To find the module I inserted an path update so it will also search for the PEAR module inside that specific directory. Don't know why you have this problem. If someone else has a glue I am glad to know...
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #21 on: December 19, 2005, 03:44:46 PM »

as ive previously said, i love this gallery module even though i cant quite get the hang of page arrangment yet Cheesy

anyway, ive been using it on my test site for a while now with no problems. the other day i uploaded 10 new images to my Flickr account and created a new set. For some reason the module will not grab and show the new images. The sets work fine and display my old previous images just no new sets Sad has Flickr changed something in their set creation method or something? is anyone else having the same problem?

EDIT: i have just created a new set and added old images (previously uploaded) into it and they displayed fine with the module. however no matter what image i upload to my account now they will not display using the module but work fine on Flickr
« Last Edit: December 19, 2005, 04:27:48 PM by mysticfreeman » Logged

http://www.markley.co.uk
webhosting packages available
Woudloper
Guest
« Reply #22 on: December 20, 2005, 08:22:50 AM »

Think this has something to do with the cache table. I implemented a new option to the flickr gallery module and that is a 'rebuild cache' option. See the attachment. You can completely reïnstall the module or just copy the modified files (help.php, modify.php, rebuildcache.php) to the server.

Hopefully this does the trick.
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #23 on: December 20, 2005, 11:00:25 AM »

nice new addon that Smiley but im still having a problem with the images Sad take a look:

http://www.pmarkley.com/play/pages/flickr-gallery-test/my-car.php

dont know why but only certain ones show up.. maybe its now uploading to the flickr site right? im at a loss cos i cant get any new pics up there to work Sad and i really like this module
Logged

http://www.markley.co.uk
webhosting packages available
Woudloper
Guest
« Reply #24 on: December 20, 2005, 11:55:52 PM »

dont know why but only certain ones show up.. maybe its now uploading to the flickr site right? im at a loss cos i cant get any new pics up there to work Sad and i really like this module

Very strange indeed. Don't know what is going on and why this problem occurs. Maybe I need to ask the person who has developed the PHP Flickr class I am using. Will dive into this problem. Maybe this only occurs to newer sets and not to old sets!?

/Edit: See this blog entry over at phpflickr.com. It seems I need to update the phpflickr module or you should change it by hand...
« Last Edit: December 20, 2005, 11:58:54 PM by Woudloper » Logged
Pages: [1] 2 3 4 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!