4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: vwman on April 16, 2002, 07:32:46 PM

Title: comments not working. and small problem with search
Post by: vwman on April 16, 2002, 07:32:46 PM
first thing,  I love this script!.      okay I got it installed on windows 2000 w/ iis 5 php 4.x and mysql for windows.  so far it runs pretty darn good.    I have been able to upload some pics,  and am getting things setup.   the first problem is the comments don't work,  once I click post I go back to the main menu and the comment is not posted.    I have no idea where to begin to look for this problem.   also the search does not work very well.   it works fine for key words,  but if I search the descriptions it will not work.  any ideas?   any tips for makeing sure this program will work for a long time on win2k?    I will have 1k+ pics and my site get 20k visits a month, so I assume there will be some activity.    Thanks for your time!

Dan
Title: comments not working. and small problem with search
Post by: Jan on April 16, 2002, 08:31:24 PM
Hi,

check if in your comment_form.html this line is correct:

Code: [Select]
<form method="post" action="{self}">
{self} is important!

If you have this and it doesn't work, try to add this line below this
Code: [Select]
<input type="hidden" name="image_id" value="{image_id}">

I guess you also have to do this for rate_form.html

Jan
Title: comments not working. and small problem with search
Post by: vwman on April 16, 2002, 09:27:56 PM
okay I added
<input type="hidden" name="image_id" value="{image_id}">

below

<form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">

and it worked!    

thanks!
Dan
Title: comments not working. and small problem with search
Post by: Jan on April 16, 2002, 09:33:52 PM
Ok, sorry. I posted the wrong code.

Add under this line:
Code: [Select]
<input type="hidden" name="image_id" value="{image_id}">

Jan

P.S.: Please enable BBCode in your posting if you use BBCode-Tags.
Title: comments not working. and small problem with search
Post by: Jan on April 16, 2002, 10:20:21 PM
I noticed that you have the same problem with the rating. Add the line i posted above also to rate_form.html.

I tried to register at your gallery, but i got no email. You have to check this.

Jan
Title: comments not working. and small problem with search
Post by: vwman on April 16, 2002, 10:47:28 PM
okay  fixed the email problem,   it should work now.     and I think the rateing is fixed   thanks again

Dan
Title: comments not working. and small problem with search
Post by: vwman on April 19, 2002, 01:34:58 AM
okay  the vote does not work anymore   here are the lines...

 <input type="hidden" name="action" value="rateimage" />

   <input type="hidden" name="image_id" value="{image_id}">
     
   <input type="submit" value="Vote" class="button" name="submit" />


any ideas?
Title: comments not working. and small problem with search
Post by: Jan on April 19, 2002, 07:36:39 AM
Hi,

add this:
<input type="hidden" name="id" value="{image_id}">

Looks a little bit strange because you have "image_id" and "id" but you need one for showing the image and one for saving the rating.

Greets Jan
Title: comments not working. and small problem with search
Post by: vwman on April 19, 2002, 07:54:56 AM
where do you want that?   edit one of the lines or add that full line?    how should the 4 lines work?   is this a problem with iis 5?   thanks

Dan
Title: comments not working. and small problem with search
Post by: Jan on April 19, 2002, 08:05:23 AM
You have to add this line above your three lines you posted above.
It should look:
Code: [Select]
<input type="hidden" name="id" value="{image_id}">
<input type="hidden" name="action" value="rateimage" />
<input type="hidden" name="image_id" value="{image_id}">
<input type="submit" value="Vote" class="button" name="submit" />


I don't know whats wrong. It could help if you make a phpinfo() file and post the link.

Thanks
Jan