Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#451 2006-12-03 13:01:58

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

Re: [plugin] [ORPHAN] vdh_flickr

It is called “File Upload Path” in your Screenshot.

Offline

#452 2006-12-06 03:19:12

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [plugin] [ORPHAN] vdh_flickr

I finally upgraded to txp 4.0.4 (still using the vdh flickr 0.8.7). I get the following error on the page where I am listing all of my flickr sets: (The page does not show up, just the error)

Fatal error: Call to a member function on a non-object in /home/carolip6/public_html/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 1062

I figured out that the error is due to using the vdh_flickr_set_link tag in this list form (gallery_list):

<li><txp:vdh_flickr_set_link><txp:title /></txp:vdh_flickr_set_link> </li>

The list form is called from a page with the following code:

<txp:article form="gallery_list" sort="custom_1 asc" limit="30" />

Prior to upgrading to txp 4.0.4, the gallery_list form worked using with the vdh_flickr_set_link in it. The artist names listed in alphabetical order in the left column of the page (using the gallery_list form above). Each artist name would link directly to the thumbnails page for each artist (bypassing the preview page).

However, in order to make the page work, I had to take out the vdh_flickr tag and change the gallery_list form to the following:

<li><txp:permlink><txp:title /></txp:permlink> </li>

The error is gone now and the page shows up: http://www.carolinecarlisle.com/gallery

The problem is that when you CLICK ON AN ARTIST NAME (left column), it will take you to the preview page for the artist (using the permlink to article), rather than the thumbnails page (where I would prefer it to go – cuts down on clicks and doesn’t confuse visitors with the lonely preview thumb page). I guess the problem has to do with a change in the new version of TXP.

Any chance that there is a quick fix for this issue — perhaps in the vdh_flickr code? Thanks in advance for any help!

Offline

#453 2006-12-07 18:35:47

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

Re: [plugin] [ORPHAN] vdh_flickr

Have you changed anything else?

The error is thrown by this line in the 0.8.7 source code:
return $gal->set_link($params, $result);

The message means, that the $gal variable does not point to an object, so vdh_flickr has not been initialized yet. So most probably the set_link function is not the problem.

Offline

#454 2006-12-17 23:22:28

inakit
Member
Registered: 2005-09-30
Posts: 12

Re: [plugin] [ORPHAN] vdh_flickr

ralph Did you see this?

http://rvdh.net/vdh_flickr/demo4/tags/

i get this from your tags img
here
http://rvdh.net/vdh_flickr/demo4/set/1277515/img/59045368
and I get the same problem ,
Do you know why?
Thanks very much for your plugg anyway.
Inaki

Offline

#455 2006-12-18 08:35:22

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

Re: [plugin] [ORPHAN] vdh_flickr

I’ll check out why this happens…

Offline

#456 2006-12-19 18:21:31

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

Re: [plugin] [ORPHAN] vdh_flickr

@inakit:

The problem is fixed in 0.8.8, ready for download now.

Offline

#457 2006-12-21 16:16:58

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

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:

  1. Create a misc form thumbnails_title with <txp:vdh_flickr_thumbnails_title /> in it.
  2. Create a misc form img_title with <txp:vdh_flickr_img_set_title />: <txp:vdh_flickr_img_title /> in it.
  3. 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

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

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 &nbsp; in that empty form, but that is just a guess.

Offline

#461 2006-12-22 04:06:44

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

Re: [plugin] [ORPHAN] vdh_flickr

Ralph,
I tried putting the clean_urls=1 without any change, also tried the &nbsp; 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

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

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

Board footer

Powered by FluxBB