Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#406 2006-10-25 13:24:49

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

Customized forms are possible, but there is a more flexible system with different identifiers.

  • set_preview_form: This form is applied to every set in order to preview all the available sets.
  • thumbnails_form: If one set is selected, this form is parsed. Note that this form is parsed only once, while the form thumbnail_img_form is parsed for each photo.
  • thumbnail_img_form: This form is parsed for each photo when you are showing e.g. all the photos of a set as thumbnails.
  • img_form: If you are showing a simgle image, this form is applied.

Take a look at the source code (lines 40 and following) to see some examples, because some tag names did change, too. Forms are applied like in the old version (<txp:vdh_flickr set_preview_form="lala" />), although it might make sense to put this funtionality into the Admin panel.

I definately need to add more documentation, I think.

Offline

#407 2006-10-25 16:41:23

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] vdh_flickr

because some tag names did change

OK. That’s probably why my forms don’t work.

I’ll have a look at the source code and try to see if I’m clever enough.
I see it’s very well commented.


Nico

Offline

#408 2006-10-26 10:44:21

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] vdh_flickr

I could achieve almost everything I wanted. I had to dig a little in the php script to find and compare the new and old tags but it’s quite easy with your comments.

There’s one think I can’t do the same way I do with the old plugin :
How to link the image (in the image form) to the full-size image (direct link to the flick full size image) ?

This is how I used to call the image in the old way in the image form:

<txp:vdh_flickr_img_link><txp:vdh_flickr_img_naked /></txp:vdh_flickr_img_link>

This is how I try to call it now :

<txp:vdh_flickr_img_link><txp:vdh_flickr_img_tag size="medium"/></txp:vdh_flickr_img_link>

-> The image is there but the link isn’t OK (it links back to the same page)

And this is the vdh_flickr call in the body of my article :

<txp:vdh_flickr set_preview_form="flickr-preview" thumbnails_form="flickr-thumbnails" img_form="flickr-image" link="original_size" original_size="b" thumbnail_size="s" img_size="n" set_preview_size="s" />

-> I’ve only changed the new tag set_preview_form="flickr-preview" here. I’m not sure about the way link="original_size" works now… Don’t know the opportunity of link="original_size" original_size="b" thumbnail_size="s" img_size="n" as well…

I don’t necessary need a link on the image itself but I need, somewhere, a direct link to the naked original size flickr image. That’s the very last thing I need to be happy now. :-D

Last edited by Niconemo (2006-10-26 11:15:19)


Nico

Offline

#409 2006-10-26 12:21:57

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

OK, this is one thing that should be done in ten minutes. I think I can achieve this on the weekend.

Offline

#410 2006-10-26 12:38:43

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] vdh_flickr

ralph wrote:

OK, this is one thing that should be done in ten minutes. I think I can achieve this on the weekend.

Wow ! Thank you so much !


Nico

Offline

#411 2006-10-26 17:29:24

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] vdh_flickr

Please share the code when it’s done :)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#412 2006-10-28 11:57:06

whick
Member
Registered: 2006-07-08
Posts: 12

Re: [plugin] [ORPHAN] vdh_flickr

I’m getting this error when i try to open the page where i typed <txp:vdh_flickr />

Fatal error: main(): Failed opening required ‘PEAR.php’ (include_path=’.:/usr/share/pear:/home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern/plug/phpFlickr/PEAR’) in /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern/plug/phpFlickr/PEAR/HTTP/Request.php on line 46

is there something wrong with my config or something?

Offline

#413 2006-10-29 13:46:09

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [plugin] [ORPHAN] vdh_flickr

Ralph, simply need to know one thing at the moment: If 0.8.7 is working fine on 4.0.3, do have to worry about anything with an upgrade to 4.0.4?

EDIT: Oh, and good luck with school. I’m sure someone will grab hold of this thing.

Last edited by Destry (2006-10-29 13:56:19)

Offline

#414 2006-10-29 14:14:55

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

0.8.7 does work fine on TxP 4.0.3 and 4.0.4.

Offline

#415 2006-10-29 15:06:34

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] vdh_flickr

Has anyone tried Ralph’s example code to add to the .htaccess file to achieve clean urls? I did everything in the instructions, and the urls are working up until I click on an image within a set (on the thumbnails form), then the url is correct in the browser, but it just stays on the thumbnails page. Further clicking on images at that point leads to a 404 error as it tries to go to the image again, becoming a redundant mess. See my photos page for yourself, if you have any clue about editing the .htaccess, or if I could possibly be missing something. Thanks a lot, I’ll leave my photo page urls messed up for a couple days to see if anyone responds.

Last edited by aswihart (2006-10-29 15:13:10)

Offline

#416 2006-10-29 18:01:03

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

@aswihart:

The error you are getting is most probably caused by on old version of Textile, which did not parse some lines of the example .htaccess correctly. This should be corrected now. So just try to update your .htaccess again with the current example on the docs page.

Offline

#417 2006-10-29 18:39:43

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

vdh_flickr_alpha_03.zip is online, with many small corrections, especially the ones mentioned by Niconemo.

Offline

#418 2006-10-29 19:20:36

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] vdh_flickr

ralph, you rock, that fixed it, this plugin is the coolest thing about my site, all thanks to your hard work, much appreciated man!

One other thing I was wondering, do you have the ability to link to a set’s slideshow from the image page (image form)? I have it currently on my site on the thumbnails form, but I wasn’t able to get it to work the same way on my image form without causing an error. I tried using <txp:vdh_flickr_thumbnails_slideshow>, which only works on the thumbnails form, and I also guessed and tried <txp:vdh_flickr_image_slideshow> but that didn’t seem to be a valid tag. Thanks for any help, and again I love the plugin.

Last edited by aswihart (2006-10-29 20:04:09)

Offline

#419 2006-10-29 21:07:51

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] vdh_flickr

Thank you Ralph, I think I’m going to test that ASAP.


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#420 2006-10-30 09:07:24

ralph
Member
Registered: 2005-02-28
Posts: 106

Re: [plugin] [ORPHAN] vdh_flickr

@aswihart:

No, this is not possible without tweaking the code.

Offline

Board footer

Powered by FluxBB