Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2005-10-13 10:17:23

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [plugin] [ORPHAN] vdh_flickr

Larf – Thanks for all your work on this, it’s a great plugin!

Offline

#152 2005-10-13 11:19:44

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [plugin] [ORPHAN] vdh_flickr

I get an error with the random attribute…
My tag looks like this:
<code><txp:vdh_flickr_thumbnails nsid=“12345678@N00” random=“3” /></code>

…and the error I get is this:

Fatal error: Call to a member function isValid() on a non-object in C:\Program Files\xampp\htdocs\millstone\textpattern\lib\txplib_misc.php(429) : eval()’d code on line 550

Last edited by Martagnan (2005-10-13 11:20:36)

Offline

#153 2005-10-13 11:29:26

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] vdh_flickr

You have to specify where to take the random pictures from, like a tag, a set number or latest pics.

Example here:

http://forum.textpattern.com/viewtopic.php?id=11760

Last edited by larf (2005-10-13 11:30:28)

Offline

#154 2005-10-14 05:32:53

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [plugin] [ORPHAN] vdh_flickr

The “tags” part looks great. Unfortunately, I am getting an error that I got before- “Failed to connect to Flickr.com”

What’s wrong?


bludrop studios .::. Creative Expression

Offline

#155 2005-10-14 08:30:35

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] vdh_flickr

EDIT: I just released 0.8.2.

Your problem most probably occurs because of php4 not being able to get the flickr xml file. In 0.8.1 I implemented only one method of getting the xml file (domxml_open_file) which does not seem to work on every host.
In 0.8.2 I’ve implemented three methods of receiving the xml file (curl, file_get_contents and domxml_open_file), and vdh_flickr automagically checks which one is available.

php5 still only uses simplexml_load_file. Anyone having problems with vdh_flickr and php?

So please try the new version and report back if it works for you. It could help me improve the plugin.

Greetings
Ralph

Last edited by larf (2005-10-14 10:12:50)

Offline

#156 2005-10-14 16:29:41

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

Re: [plugin] [ORPHAN] vdh_flickr

larf wrote:
<blockquote>So please try the new version and report back if it works for you. It could help me improve the plugin.</blockquote>

I did and… HEEEELP !

This message appeared on the top of every pages as soon as I updated to 0.8.2 (on a standard 4.0.1 r888 txp)
I had do disable the plugin (and the galeries, then) to get rid of it.

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/xxx/www/xxx/textpattern/lib/txplib_misc.php(429) : eval()'d code on line 787

.

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/xxx/www/xxx/textpattern/lib/txplib_misc.php(429) : eval()'d code on line 793

.

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/xxx/www/arr/xxx/lib/txplib_misc.php(429) : eval()'d code on line 799

.

Some informations :

The site is in Live mode

Excepting this huge load of PHP warnings, the galery seems to work normally when the plugin is turned on…

and…

PHP version: 5.0.3
Register globals: 1
Magic quotes: 1/0
MySQL: 4.0.21-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix)

Last edited by Niconemo (2005-10-14 16:46:07)


Nico

Offline

#157 2005-10-14 16:43:32

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [plugin] [ORPHAN] vdh_flickr

<blockquote>
> larf wrote:

> EDIT: I just released 0.8.2.

Your problem most probably occurs because of php4 not being able to get the flickr xml file. In 0.8.1 I implemented only one method of getting the xml file (domxml_open_file) which does not seem to work on every host.
In 0.8.2 I’ve implemented three methods of receiving the xml file (curl, file_get_contents and domxml_open_file), and vdh_flickr automagically checks which one is available.

php5 still only uses simplexml_load_file. Anyone having problems with vdh_flickr and php?

So please try the new version and report back if it works for you. It could help me improve the plugin.

Greetings
Ralph
</blockquote>

Thanks. It works great.


bludrop studios .::. Creative Expression

Offline

#158 2005-10-14 17:08:57

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

Re: [plugin] [ORPHAN] vdh_flickr

Larf, is it possible to have a 0.7 version again before you can fix the issue ? Thank you by advance ;)


Nico

Offline

#159 2005-10-14 20:31:26

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] vdh_flickr

OK, the old versions are online now.

But I’d like to get your issue resolved in the current version, so I will contact you soon, if you don’t mind.

Offline

#160 2005-10-15 07:26:14

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

Re: [plugin] [ORPHAN] vdh_flickr

No problem : I’ll try in a test install of TXP ;-) Thank you

Edit. A little more information, if it can help :

  • 0.8.1 : same problem
  • 0.8 is OK

Thank you again…

Last edited by Niconemo (2005-10-15 07:39:26)


Nico

Offline

#161 2005-10-15 08:32:09

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] vdh_flickr

@ Niconemo:

I’ve just put 0.8.3 online, which adresses your problem. I hope this one will last longer.

Anyway, the next days are the last chance to utter feature requests. Soon university will take the most of the time of my daily work. Version 0.9 will most probably have pagination for set preview, because of the growing number of sets I have. Anything else that’s cool?

Offline

#162 2005-10-15 11:10:43

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

Re: [plugin] [ORPHAN] vdh_flickr

Everything’s fine with 0.8.3 :)

Once the documentation read from top to bottom… no more particular request for the moment. ;)


Nico

Offline

#163 2005-10-15 17:35:08

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [plugin] [ORPHAN] vdh_flickr

First off, this is a great plugin and I have got it set up and working. Really sorry if this is easy but I just can’t seem to get my head around it.

Can somebody tell me if it’s possible to have the preview page output in the following way…

PREVIEW PAGE:

<code><dl>
<dt>Image and Title</dt>
<dd>Description</dd>
<dl></code>

TXP Possibly something like this…

PAGE =
<code><txp:vdh_flickr_set form=“flickr_preview wraptag=“dl” /></code>

FORM =
<code><dt><txp:vdh_flickr_set_link><txp:vdh_flickr_set_title /></txp:vdh_flickr_set_link></dt>
<dd><txp:vdh_flickr_set_description /></dd></code>

Cheers

Offline

#164 2005-10-15 17:49:13

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] vdh_flickr

If I got your right, try this:

In the article or page template:
<txp:vdh_flickr nsid="123456N00” set_form=“flickr_preview” />@

And then create the form “flickr_preview” exactly as you described above.

Offline

#165 2005-10-15 20:22:56

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [plugin] [ORPHAN] vdh_flickr

Thanks for your time Larf.
I used the tag as you suggested and added wraptag=“dl” but the dl didn’t show up in the code suggesting that wraptag doesn’t work here. I put a dl tag into the page (around the txp:vdh_flickr tag) but that just made it show up on the thumbnails and image pages too. Of course if I put the dl into the form it will just become part of the loop. I just need to get the wraptag to work without effecting the subsequent pages.

Earlier on I tried the vdh_flickr_if_preview tag but this produced no results (or maybe I used it wrongly), but could this be an option?

Again… thanks for you help!

Offline

Board footer

Powered by FluxBB