Martín Gaitán | 12 Feb 06:34
Picon
Gravatar

plugin to retrieve photos from picasa web album

I was working again, after a few months, in my attempt of plugin: spicasa [1]

Basicly, it's a clone of flickr_cc [2][3] developed by Arno, using this unofficial library [4] to work with picasaweb API.

It works, but partially. The problem is that the function copie_locale() [5] fails if the full-size image is bigger than 800px, wich is the maximum "embeddable" size that google allow [6].

So, if I try to retrieve a bigger size, (see this line [7]), I can get the absolut URL to the image, but copie_locale() return False;

There is a way to pass over this restriction? I think if I want download the file from picasa and host it in my own server it should be possible.

thanks
Martin

[1] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_dev_/spicasa/
[2] http://plugins.spip.net/Flickr-CC
[3] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_test_/flickr_cc
[4] http://cameronhinkle.com/blog/id/3696159074811309536
[5] http://doc.spip.org/ <at> copie_locale
[6] http://code.google.com/intl/es-AR/apis/picasaweb/reference.html#Parameters 
[7] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_dev_/spicasa/spicasa_options.php#L94

Gilles VINCENT | 12 Feb 08:51
Picon
Gravatar

Re: plugin to retrieve photos from picasa web album

Maybe you only have to add this line to mes_options.php : <at> define('_COPIE_LOCALE_MAX_SIZE',2097152); // Max Size in byte


.Gilles
---
On Thu, Feb 12, 2009 at 6:34 AM, Martín Gaitán <gaitan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I was working again, after a few months, in my attempt of plugin: spicasa [1]

Basicly, it's a clone of flickr_cc [2][3] developed by Arno, using this unofficial library [4] to work with picasaweb API.

It works, but partially. The problem is that the function copie_locale() [5] fails if the full-size image is bigger than 800px, wich is the maximum "embeddable" size that google allow [6].

So, if I try to retrieve a bigger size, (see this line [7]), I can get the absolut URL to the image, but copie_locale() return False;

There is a way to pass over this restriction? I think if I want download the file from picasa and host it in my own server it should be possible.

thanks
Martin

[1] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_dev_/spicasa/
[2] http://plugins.spip.net/Flickr-CC
[3] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_test_/flickr_cc
[4] http://cameronhinkle.com/blog/id/3696159074811309536
[5] http://doc.spip.org/ <at> copie_locale
[6] http://code.google.com/intl/es-AR/apis/picasaweb/reference.html#Parameters 
[7] http://zone.spip.org/trac/spip-zone/browser/_plugins_/_dev_/spicasa/spicasa_options.php#L94
_______________________________________________
spip-en-JM9gtpQu/Ho@public.gmane.org - http://listes.rezo.net/mailman/listinfo/spip-en


Heiko Jansen | 12 Feb 10:07
Picon

Plugin Champs Extra 2

Hello,

perhaps somebody can help me: I want to use the plugin "Champ Extra 2"
in SPIP 2.0.3. to generate some extra fields. Installation works fine,
but my question is: is it possible to limit some fields to certain
rubriques? (e.g. I want a special field "adress" only for the rubrique
"local shops", but only in this rubrique and not in another rubrique).

best regards
Heiko
L'oiseau2nuit | 12 Feb 10:28
Picon
Gravatar

Re: Plugin Champs Extra 2

Hi,

I think it is but don't know really how.

If you read a bit French, you should drop an eye here : http://marcimat.magraine.net/Ajouter-un-champ-dans-une-table

I think you can manage with a slight modification on postscriptum_pipelines.php

if ($flux['args']['type']=='rubrique' & id_rubrique = the one you wish ) ... but you'd better ask someone else for the real php syntax to use ;)

Good luck.
Etienne.



On Thu, Feb 12, 2009 at 9:07 AM, Heiko Jansen <heiko.jansen-lnqqDxZ76pI@public.gmane.org> wrote:
Hello,

perhaps somebody can help me: I want to use the plugin "Champ Extra 2"
in SPIP 2.0.3. to generate some extra fields. Installation works fine,
but my question is: is it possible to limit some fields to certain
rubriques? (e.g. I want a special field "adress" only for the rubrique
"local shops", but only in this rubrique and not in another rubrique).

best regards
Heiko
_______________________________________________
spip-en-JM9gtpQu/Ho@public.gmane.org - http://listes.rezo.net/mailman/listinfo/spip-en

Fil | 12 Feb 10:43
Favicon
Gravatar

Re: Plugin Champs Extra 2

This must be the #1 request on this plugin. Someone needs to get her
hands into the code and add a config panel and so on.

-- Fil
Heiko Jansen | 12 Feb 10:51
Picon

Re: Plugin Champs Extra 2

Thanks for the answer, but my French is proudly presented by Babelfish
or Google Translate ;-)
so I'll have a look or - according to Fil's message - wait until
someone with more knowledge about plugin-making will fix this
No.1-Issue.

best regards
Heiko

On Thu, Feb 12, 2009 at 10:28, L'oiseau2nuit
<l.oiseau2nuit@...> wrote:
> Hi,
>
> I think it is but don't know really how.
>
> If you read a bit French, you should drop an eye here :
> http://marcimat.magraine.net/Ajouter-un-champ-dans-une-table
>
> I think you can manage with a slight modification on
> postscriptum_pipelines.php
>
> if ($flux['args']['type']=='rubrique' & id_rubrique = the one you wish ) ...
> but you'd better ask someone else for the real php syntax to use ;)
>
> Good luck.
> Etienne.
>
>
>
> On Thu, Feb 12, 2009 at 9:07 AM, Heiko Jansen <heiko.jansen@...> wrote:
>>
>> Hello,
>>
>> perhaps somebody can help me: I want to use the plugin "Champ Extra 2"
>> in SPIP 2.0.3. to generate some extra fields. Installation works fine,
>> but my question is: is it possible to limit some fields to certain
>> rubriques? (e.g. I want a special field "adress" only for the rubrique
>> "local shops", but only in this rubrique and not in another rubrique).
>>
>> best regards
>> Heiko
>> _______________________________________________
>> spip-en@... - http://listes.rezo.net/mailman/listinfo/spip-en
>
>
L'oiseau2nuit | 12 Feb 10:52
Picon
Gravatar

Re: Plugin Champs Extra 2



On Thu, Feb 12, 2009 at 9:43 AM, Fil <fil-JM9gtpQu/Ho@public.gmane.org> wrote:
This must be the #1 request on this plugin. Someone needs to get her
hands into the code and add a config panel and so on.

Not sure this is the #1

This request has allready been made before, but not really handled as you suggest :-P


Etienne.
"Dear Santa, would you please bring me natural abilities in PHP for next Christmas ?
 Even before if you have 5 minutes, i'll get coffee ready..."

 


-- Fil

Fil | 12 Feb 11:02
Favicon
Gravatar

Re: Plugin Champs Extra 2

> Not sure this is the #1

It is for sure. Check the forum on spip-contrib.

-- Fil
Martín Gaitán | 14 Feb 06:27
Picon
Gravatar

plugin to retrieve photos from picasa web album


well, I was working on this a few hours more tonight and although I couldn't fix it, I add a few new features and improved. I think it's working fairly well.

I like very much to receive some feedback, so if somebody have a little time to try it, I'll be glade.

thanks.
Martin
Picon

Can U use spip codes and not HTML with thickbox

I installed thickbox, and loves it!
But is there a way to use spip codes like [bla bla->http://] instead of html ??
Tried a few times, but did not find a way!?

guess its just me !?

btw..
I keep getting a lot more codes, that I would love to use some more..
Unfortunately I allways have to go find the last article ( I used them in to remember what #some-name-I-keep-forgetting )
Is it possible to avoid having 10 articles "open" with the codes in them..
could you eg. have them in the "workspace" in the private area.. visible, so you allway can copy paste, when needed..
Especially, now, since ( I think) the codes starts getting longer an longer..!?
kindly
Tom

Here just the I frame code (in HTML), got an answer in "spip" I would love it..



<a href="http://mir.dk/IMG/png_redrodck.png?keepThis=true&TB_iframe=true&height=500&width=500" title=RedRock" class="thickbox">konkurrenterne fra redrock</a>

Gmane