Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#457 2006-12-21 16:16:58
Re: [plugin] [ORPHAN] vdh_flickr
Ralph,
Something that would be very nice is if there was a way to put the gallery name and the image name into the <title> in the <head> section somehow. I’ve tried inserting <txp:vdh_flickr_set_title /> and other tags into my photos page but I just get errors (as expected I’m sure). Is this something that you think is possible, if not in 0.8.7, then in the new version?
Last edited by aswihart (2006-12-21 16:17:55)
Offline
#458 2006-12-21 19:08:03
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
This is possible by creating forms:
- Create a misc form
thumbnails_title
with<txp:vdh_flickr_thumbnails_title />
in it. - Create a misc form
img_title
with<txp:vdh_flickr_img_set_title />: <txp:vdh_flickr_img_title />
in it. - Create a misc form
empty
with nothing inside.
Then go to your page template and change your title like this (with your NSID):
<title><txp:sitename /><txp:vdh_flickr nsid="1234567N00" set_form="empty" thumbnails_form="thumbnails_title" img_form="img_title" /></title>
This is what works for me on my demo gallery.
Offline
#459 2006-12-21 19:41:19
Re: [plugin] [ORPHAN] vdh_flickr
brilliant. up and running now. I actually didn’t realize you can use several different layers of forms for each page like that for different elements of the page, apart from the main ones you put in the article body.
I am having some problems now though on my set_form page. In the <title>, I set the set_form to an empty form called “empty” as you said and for some reason I get a “Failed to connect to Flickr.com!” displayed in the place where the form output should be. Also, on this page my set_list doesn’t work anymore. It works fine as you navigate into one of the sets or the individual images, however. Any thoughts?
Thanks a ton Ralph!
Last edited by aswihart (2006-12-21 19:56:41)
Offline
#460 2006-12-22 00:44:32
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
I cannot reproduce this behaviour.
One thing (and this is due to my bad programming, and due to the face I never got the rewrite of this plugin production ready) you have to keep in mind is that you have to repeat parameters (including nsid) for any main output function you use. On your site I’ve seen that for example you did not use clean_urls="1"
for vdh_flickr_set_list
, so this should most probably be: <txp:vdh_flickr_set_list nsid="12345" listmode="text" clean_urls="1" />
(with your nsid, of course).
At least I just set up just what you want on my local MAMP-Server, and it seems to work just fine. Another thing you could try is put
in that empty form, but that is just a guess.
Offline
#461 2006-12-22 04:06:44
Re: [plugin] [ORPHAN] vdh_flickr
Ralph,
I tried putting the clean_urls=1 without any change, also tried the idea, no change. The one thing I am thinking may be the cause is that I changed something in the code as you instructed to workaround getting my set_list to work on every page on my site:
Here’s what I did:
- copy the source code from the plugin-manager to a text editor
- find every instance of $GLOBALS[‘s’] and replace it with “photos” (including quotes)
I’ll try reversing this later to see if this is the problem. Thanks again,
Andrew
Last edited by aswihart (2006-12-22 04:39:11)
Offline
#462 2006-12-28 19:49:14
- woollyhat
- Member
- Registered: 2006-12-28
- Posts: 12
Re: [plugin] [ORPHAN] vdh_flickr
I’ve just installed vdh_flickr 0.8.8 on Textpattern 4.0.4 on a server with PHP 4.4.4 and DOM/xml enabled.
Creating an article as described in the “Quickstart” documentation, returns only a blank page (the content is blank, but the rest of the page loads okay – just no photos).
Should it be working with my setup? Where can a make some basic checks to see why it’s not working? Ta
Offline
#463 2006-12-30 20:03:01
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
It should be working – just make sure you did not misspell anything, and that your nsid is correct.
Offline
#464 2006-12-30 20:28:21
Re: [plugin] [ORPHAN] vdh_flickr
Ralph,
Still having the issue with the “Failed to connect to Flickr.com!” when I run your plugin through my <title> tag, and this still only happens on the set_form page. Also on my set_form page my set_list isn’t working. Works everywhere else on my site just fine, including the thumbnails_form and img_form pages. When I remove your plugin from the <title> tag, this is fixed (but I want to have both working!).
I re-installed the plugin (v.0.8.8) and both of these problems persist. I haven’t been able to think of anything that could be wrong. Any idea as to the cause?
Thanks a lot,
Andrew
Last edited by aswihart (2006-12-30 20:33:53)
Offline
#465 2007-01-02 12:27:25
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
No, sorry, no idea what could be wrong.
Offline
#466 2007-01-02 22:34:46
Re: [plugin] [ORPHAN] vdh_flickr
Ralph,
It was my fault, sorry for the confusion. Somehow I left out the “@” in my nsid in the vdh_flickr tag I had put in my <title>, and it was still working correctly for the thumbnails and img forms (which is why I never questioned that I had typed in the nsid correctly), but it failed on the set preview forms. I just added that and everything works now. Man I feel like an idiot, oh well its great that its working now. Thanks again,
Andrew
Offline
#467 2007-01-03 04:36:10
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] vdh_flickr
is it possible to show the latest 10 images in a set?
my tag is
<txp:vdh_flickr_thumbnails nsid="ABCDE" set="12345" open="flickr" thumbnails_form="flickr-thumbs" />
Offline
#468 2007-01-03 12:56:27
- inakit
- Member
- Registered: 2005-09-30
- Posts: 12
Re: [plugin] [ORPHAN] vdh_flickr
ralph wrote:
@inakit:
The problem is fixed in 0.8.8, ready for download now.
Thanks very much Ralph. I will be happy to pay more thana drink if you came to barcelona.
Yes that issue is fix .
At the moment I think i Found a bug or i cuol d be having some mistake.
I used the form for the last pic and it is fine. But when I pass to the form of the image
i lost the detail of the set or tag. I see the image and the title m but i lost the other data.
Did you hear something like this.
Thanksvery mch
the issue is in
http://belver.net/ultimasImagenes
http://belver.net/ultimasImagenes/img/338099704
Thanks very much !
Offline