Author Topic: comments not working. and small problem with search  (Read 15871 times)

0 Members and 1 Guest are viewing this topic.

Offline vwman

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.vwsport.com
comments not working. and small problem with search
« 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
comments not working. and small problem with search
« Reply #1 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline vwman

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.vwsport.com
comments not working. and small problem with search
« Reply #2 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
comments not working. and small problem with search
« Reply #3 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.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
comments not working. and small problem with search
« Reply #4 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline vwman

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.vwsport.com
comments not working. and small problem with search
« Reply #5 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

Offline vwman

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.vwsport.com
comments not working. and small problem with search
« Reply #6 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?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
comments not working. and small problem with search
« Reply #7 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline vwman

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.vwsport.com
comments not working. and small problem with search
« Reply #8 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
comments not working. and small problem with search
« Reply #9 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search