Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Using the form function of JFU
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=2946
Page 1 of 1

Author:  Endless [ 31. Mar 2011, 22:09 ]
Post subject:  Using the form function of JFU

Hi,

I'm considering upgrading to the professional license for my website.
Before doing so however i want to make sure it will do what i want.

I want to create a form, enter a few text fields, like name, age, etc and then use this information on a different page.
The information must be stored so it won't be lost. On the new page i want to display all the images ever uploaded including the description/tekst people enter when uploading the image. Maybe use a paginator or something to display maximum 20 on each page.
Do i need to use javascript to redirect to a new page and capture the GET values there? How do i make sure that data will stay available, i don't want to create some custom code just to store the info.

I'm using the latest version of JFU with joomla 1.6.
Currently i have the upload up and running, but i have no option to use description or form tekst fields.

Thanks for reading this!

Author:  TinyWebGallery [ 1. Apr 2011, 00:08 ]
Post subject:  Re: Using the form function of JFU

If you use the form functionality this values are sent to the server and you have to handle them in a plugin like described in the howto.

I you want to redirect to a different page using Javascript is the easiest option.

How you store your data (in the session, file based, db) is up to you. The same is the data your get from the description. I have implemented 2 defaults but you are free do do in your plugin what ever you like.

- Michael

Author:  Endless [ 1. Apr 2011, 11:30 ]
Post subject:  Re: Using the form function of JFU

Hi Michael,

Thanks for the quick answer and the great work you've done with the plugin.

The HowTo for the form describes how to enable the fields, can you add any input type?
I would like to add the input to the DB (or even better, directly into an article), is there a plugin that achieves this?
I've got my hopes up for the 'Database Log' plugin, maybe it can already achieve this, or i can easily update the code to store other fields as well?

Secondly, i want to be able to put the image including the input on a page, is it difficult to achieve this?

Sorry if i ask newbie questions, but i'm relatively new to joomla and i don't want to invest any money into something that doesn't do 100% what i need it to do.

Thanks for your answer.

Author:  TinyWebGallery [ 1. Apr 2011, 14:10 ]
Post subject:  Re: Using the form function of JFU

It is a normal form. The Javascript does read the form fields you configure. You can always enhance the Javascript to read anything you like.

I have a sample how to read form fields on the plugin page. You should use this as a base.

How do you like to include something directly into an article? I don't see a connection here.
Same is with the page - which page? Because if I understand you right this is a page you have to have some php in it which does read the uploaded information an includes it - But this has nothing to do with JFUploader anymore. This is just your code...

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/