Hi helpfull people :-)
I've got a situation and wonder if anyone has any idea on how to minimize the amount of work I'll do.
What I need is to have users rating and commenting on a number or images (up to 90) the form fields will only have the score and 2 commenting fields, fairly basic with all being stored to the database for later compilation of results. My problem is that I cannot find a way to:
1. Have one form only embedded in an article where I could capture what image a particular vote is linked to. (Eg. pass on the unique ALT details of the image in the article to a hidden field in the form?)
2. As alternative, have the images in a folder and load them dynamically to the html form with php and use the image name as a hidden form field?
3. after the user voted in the pictures in a thank you page I wanted to capture their name so it's in another db as a record they completed the voting process, we'd like to keep the voting anonymous if possible but monitor if all users have voted.
Again all I'm trying to do is avoid having one form for each image so in the end as result I have in my db (img_name, score, comments) while in the form front end omitting the img name unless it's loaded dynamically, ideally in a multi-page form where a user votes in a few images before submitting it, then in the thank you page capture the user id for the monitoring who is yet to vote(I've read in an old post that embedding multipages in an article is difficult, is it still the case?).
Sorry it sounds a bit confusing but I'm happy to clarify it further if needed,
thanks in advance for all advice/ideas
anderson.
I've got a situation and wonder if anyone has any idea on how to minimize the amount of work I'll do.
What I need is to have users rating and commenting on a number or images (up to 90) the form fields will only have the score and 2 commenting fields, fairly basic with all being stored to the database for later compilation of results. My problem is that I cannot find a way to:
1. Have one form only embedded in an article where I could capture what image a particular vote is linked to. (Eg. pass on the unique ALT details of the image in the article to a hidden field in the form?)
2. As alternative, have the images in a folder and load them dynamically to the html form with php and use the image name as a hidden form field?
3. after the user voted in the pictures in a thank you page I wanted to capture their name so it's in another db as a record they completed the voting process, we'd like to keep the voting anonymous if possible but monitor if all users have voted.
Again all I'm trying to do is avoid having one form for each image so in the end as result I have in my db (img_name, score, comments) while in the form front end omitting the img name unless it's loaded dynamically, ideally in a multi-page form where a user votes in a few images before submitting it, then in the thank you page capture the user id for the monitoring who is yet to vote(I've read in an old post that embedding multipages in an article is difficult, is it still the case?).
Sorry it sounds a bit confusing but I'm happy to clarify it further if needed,
thanks in advance for all advice/ideas
anderson.
Hi anderson,
You can do this dynamically in several ways. How do you call the different image pages/articles?
The simplest way is to create a ChronoForm that displays the image and includes the form fields you need to get the results and track the user and image info. (And not use articles at all.)
If they are registered users then you can capture their user id very easily.
Bob
You can do this dynamically in several ways. How do you call the different image pages/articles?
The simplest way is to create a ChronoForm that displays the image and includes the form fields you need to get the results and track the user and image info. (And not use articles at all.)
If they are registered users then you can capture their user id very easily.
Bob
Hi Bob
Thanks for your reply.
The problem I have is that all users are registered with a generic login to access the site on a intranet sort of scenario. It would have been great but I cannot capture the users like that.
Thats why on the thank you page the user will give me their details just to track their participation, for the time being this helps.
The major problem is really how do I associate the comments and scores for each individual image using one form only with up to 90 different images? I thought of having a field where the user gives me the image they're voting for but that's not practical and opens the door for errors while capturing the data.
I also thought of a basic php script that could dynamically add the images from a folder to the form as an img and the file name as a hidden field however I'm stuck with my limited php knowledge and don't know if I can call any variables from a folder and add to the chronoforms form I've got.
Does that make sense? do you think its possible?
thanks again.
Thanks for your reply.
The problem I have is that all users are registered with a generic login to access the site on a intranet sort of scenario. It would have been great but I cannot capture the users like that.
Thats why on the thank you page the user will give me their details just to track their participation, for the time being this helps.
The major problem is really how do I associate the comments and scores for each individual image using one form only with up to 90 different images? I thought of having a field where the user gives me the image they're voting for but that's not practical and opens the door for errors while capturing the data.
I also thought of a basic php script that could dynamically add the images from a folder to the form as an img and the file name as a hidden field however I'm stuck with my limited php knowledge and don't know if I can call any variables from a folder and add to the chronoforms form I've got.
Does that make sense? do you think its possible?
thanks again.
Sorry forgot to add that,
I've got two tests going on:
1st I use a multi page form that has an image and the 3 inputs fields with a next button that brings a different img but the same 3 inputs(score, positives and negatives) however at this rate I will have around 12 diff. images and input groups in 12 different forms all this times 8.
2nd I have the images in articles, one per img (same problem as above) but one form only, the thing is that I cannot capture the img file name from the article along with each form submission making identifying in the db to which img the votes and comments relate.
cheers
I've got two tests going on:
1st I use a multi page form that has an image and the 3 inputs fields with a next button that brings a different img but the same 3 inputs(score, positives and negatives) however at this rate I will have around 12 diff. images and input groups in 12 different forms all this times 8.
2nd I have the images in articles, one per img (same problem as above) but one form only, the thing is that I cannot capture the img file name from the article along with each form submission making identifying in the db to which img the votes and comments relate.
cheers
This topic is locked and no more replies can be posted.