File upload field

Hello!

I am using Formidable plugin to create my forms. There are a lot of different fields available from plugin Saisies, eg Text field, Checkbox etc.
But i need my form to be able uploading files. So here is my question: is there any additional saisie to upload files?

Thanks in advance,
Aleksey Yaroshchuk.

Hi,

I don’t see any ‹ saisie › for uploading files, but you can easily create one, by adding two corresponding custom template in saisies and saisies-vues.
You can look at the plugin « Mediatheque » :
it introduces a form (#FORMULAIRE_JOINDRE_DOCUMENT) that can be used in Ajax to upload elements :
look at the template file plugins/mediatheque/prive/editer/colonne_document.html to see how it is used.
This template is used in the private area to upload documents and attach them to articles, sections, etc.
It’s generic, so it can certainly be used to attach documents to upload a file and prepare it for your post
(it’s limit is that you have to be connected to use it, because the uploaded document refers to your id_auteur when it’s used for the creation of an element)

Hope it helps,

.Gilles

On Wed, Mar 7, 2012 at 1:21 PM, Алексей Ярощук <a.yaroshuk@aloha.org.ua> wrote:

Hello!

I am using Formidable plugin to create my forms. There are a lot of different fields available from plugin Saisies, eg Text field, Checkbox etc.
But i need my form to be able uploading files. So here is my question: is there any additional saisie to upload files?

Thanks in advance,
Aleksey Yaroshchuk.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Le 07/03/2012 15:49, Gilles Vincent a écrit :

Hi,

I don't see any 'saisie' for uploading files, but you can easily create one, by adding two corresponding custom template in saisies and saisies-vues.
You can look at the plugin "Mediatheque" :
it introduces a form (#FORMULAIRE_JOINDRE_DOCUMENT) that can be used in Ajax to upload elements :
look at the template file plugins/mediatheque/prive/editer/colonne_document.html to see how it is used.
This template is used in the private area to upload documents and attach them to articles, sections, etc.
It's generic, so it can certainly be used to attach documents to upload a file and prepare it for your post
(it's limit is that you have to be connected to use it, because the uploaded document refers to your id_auteur when it's used for the creation of an element)

Sorry for my terrible english :slight_smile:

It's a lot more difficult to add a file with Formidable. #SAISIE{input, nom, label=A File, type=file} can generate the good input. But.
But you need to save the file anywhere.

I have a little plugin for PDF or JPG files that can add 1 file / input, but you need to have an identify user (a user connected to your site) to use it.

Maybe that plugin is a first step and you can upgrade it as you want. I do not put it on the Zone because I'm not really satisfied by it, but if someone wants to do that, lets go !

http://ftp.magraine.net/saisie_fichier_pdf.zip

Good luck, and share your work :slight_smile:

Marcimat.

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran

Any idea?


From: kamran Mir Hazar kamran_mirhazar@yahoo.com
To: spip-en spip-en@rezo.net
Sent: Friday, March 9, 2012 5:05 PM
Subject: [Spip-en] Deleting all articles under a particular section

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello Kamran,

Imho you should at first filter the articles you syndicate :
I suggest to use the Yahoo Pipes : http://pipes.yahoo.com/pipes/

Actually, to remove the articles that you have already inserted in your website, the best way is to use phpMyAdmin whith a query like : « delete from spip_articles where id_rubrique=NNN »
replace NNN by the number of the section that you want to flush

Does it help ?

.Gilles

On Sat, Mar 10, 2012 at 1:33 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Any idea?


From: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
To: spip-en <spip-en@rezo.net>
Sent: Friday, March 9, 2012 5:05 PM
Subject: [Spip-en] Deleting all articles under a particular section

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi Gilles,
If I want to delete articles under section 12 for example, I need to run this query using PHP My Admin :
« delete from spip_articles where id_rubrique=12 »

And I don’t need to filter articles using yahoo Pipes. Right?

Kamran


From: Gilles Vincent gilles.vincent@gmail.com
To: kamran Mir Hazar kamran_mirhazar@yahoo.com
Cc: spip-en spip-en@rezo.net
Sent: Saturday, March 10, 2012 2:44 PM
Subject: Re: [Spip-en] Deleting all articles under a particular section

Hello Kamran,

Imho you should at first filter the articles you syndicate :
I suggest to use the Yahoo Pipes : http://pipes.yahoo.com/pipes/

Actually, to remove the articles that you have already inserted in your website, the best way is to use phpMyAdmin whith a query like : « delete from spip_articles where id_rubrique=NNN »
replace NNN by the number of the section that you want to flush

Does it help ?

.Gilles

On Sat, Mar 10, 2012 at 1:33 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Any idea?


From: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
To: spip-en <spip-en@rezo.net>
Sent: Friday, March 9, 2012 5:05 PM
Subject: [Spip-en] Deleting all articles under a particular section

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,

On Sat, Mar 10, 2012 at 3:40 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi Gilles,
If I want to delete articles under section 12 for example, I need to run this query using PHP My Admin :
« delete from spip_articles where id_rubrique=12 »

Yes
(only if « spip_ » is the prefix that has been specified at the installation => sometimes is may be something else)

And I don’t need to filter articles using yahoo Pipes. Right?

Yahoo Pipes is only useful for the syndication (so you don’t need this to flush your sections)

Whatever, do a backup of your database before manipulating phpMyAdmin :wink:

.Gilles

Kamran


From: Gilles Vincent <gilles.vincent@gmail.com>
To: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
Cc: spip-en <spip-en@rezo.net>
Sent: Saturday, March 10, 2012 2:44 PM
Subject: Re: [Spip-en] Deleting all articles under a particular section

Hello Kamran,

Imho you should at first filter the articles you syndicate :
I suggest to use the Yahoo Pipes : http://pipes.yahoo.com/pipes/

Actually, to remove the articles that you have already inserted in your website, the best way is to use phpMyAdmin whith a query like : « delete from spip_articles where id_rubrique=NNN »
replace NNN by the number of the section that you want to flush

Does it help ?

.Gilles

On Sat, Mar 10, 2012 at 1:33 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Any idea?


From: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
To: spip-en <spip-en@rezo.net>
Sent: Friday, March 9, 2012 5:05 PM
Subject: [Spip-en] Deleting all articles under a particular section

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Thank you so much. I successfully deleted them
Kamran


From: Gilles Vincent gilles.vincent@gmail.com
To: kamran Mir Hazar kamran_mirhazar@yahoo.com
Cc: spip-en spip-en@rezo.net
Sent: Saturday, March 10, 2012 4:52 PM
Subject: Re: [Spip-en] Deleting all articles under a particular section

Hi,

On Sat, Mar 10, 2012 at 3:40 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi Gilles,
If I want to delete articles under section 12 for example, I need to run this query using PHP My Admin :
« delete from spip_articles where id_rubrique=12 »

Yes
(only if « spip_ » is the prefix that has been specified at the installation => sometimes is may be something else)

And I don’t need to filter articles using yahoo Pipes. Right?

Yahoo Pipes is only useful for the syndication (so you don’t need this to flush your sections)

Whatever, do a backup of your database before manipulating phpMyAdmin :wink:

.Gilles

Kamran


From: Gilles Vincent <gilles.vincent@gmail.com>
To: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
Cc: spip-en <spip-en@rezo.net>
Sent: Saturday, March 10, 2012 2:44 PM
Subject: Re: [Spip-en] Deleting all articles under a particular section

Hello Kamran,

Imho you should at first filter the articles you syndicate :
I suggest to use the Yahoo Pipes : http://pipes.yahoo.com/pipes/

Actually, to remove the articles that you have already inserted in your website, the best way is to use phpMyAdmin whith a query like : « delete from spip_articles where id_rubrique=NNN »
replace NNN by the number of the section that you want to flush

Does it help ?

.Gilles

On Sat, Mar 10, 2012 at 1:33 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Any idea?


From: kamran Mir Hazar <kamran_mirhazar@yahoo.com>
To: spip-en <spip-en@rezo.net>
Sent: Friday, March 9, 2012 5:05 PM
Subject: [Spip-en] Deleting all articles under a particular section

Hello,
I have used Flux RSS en articles plugin to syndicate articles from other sources. There are more than 90000 articles under 2 particular sections. I want to delete all these articles. Is there any way to delete all, without any problem for other articles and sections?
Thanks
Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en