 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
October 16th, 2008, 06:41 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
Yes a comment can be added without captcha
I will need to talk with Michael it may be related to him moving that code block when you reported the thing about rating an image and not being able to do it
|
| |
October 16th, 2008, 10:37 AM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Chuck S Yes a comment can be added without captcha
I will need to talk with Michael it may be related to him moving that code block when you reported the thing about rating an image and not being able to do it |
thanks for checking into it.
only way I knew was with spam comments all of the sudden
|
| |
October 16th, 2008, 07:12 PM
|
#4 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,860
|
Okay, I think I know the problem here; line 286 in comments.php should read: Code: Content visible to verified customers only.
Now, do we want to require CAPTCHA for ratings, too? If so, I think we have to remove the strlen portion as well.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
October 16th, 2008, 08:10 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Michael P Okay, I think I know the problem here; line 286 in comments.php should read: Code: Content visible to verified customers only.
Now, do we want to require CAPTCHA for ratings, too? If so, I think we have to remove the strlen portion as well. | No, no captcha for ratings, that would defeat the purpose of quick rate
|
| |
October 16th, 2008, 08:13 PM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
code works.. thanks!
got one more problem now though, not captcha related, so feel free to split topic.
On the comment, when I click the Bold Italics, etc.. the page does nto apply the bbcode but rather, jumps to the top of the page..
the style buttons are pointing to this link: http://piqueshare.com/gallery/showphoto.php?photo=1669#
or whatever pic I am viewing
|
| |
October 16th, 2008, 08:17 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote: |
Now, do we want to require CAPTCHA for ratings, too? If so, I think we have to remove the strlen portion as well.
| Maybe in a future release, this issue should be optional??
|
| |
October 21st, 2008, 05:54 PM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
Michael,
Will this issue be updated in the version download?
|
| |
October 22nd, 2008, 09:27 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Michael P Okay, I think I know the problem here; line 286 in comments.php should read: Code: Content visible to verified customers only.
Now, do we want to require CAPTCHA for ratings, too? If so, I think we have to remove the strlen portion as well. | this seems to work, but if you click a rating within the comment field, it will still let the comment through,without the captcha. if there is NO rating selected, it needs to captcha to go through..
|
| |
October 23rd, 2008, 06:19 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
The way I read that line of code is simply that if you have captcha on and the user is a guest and the message is not empty meaning its more than a rating then CAPTCHA is required.
|
| |
October 23rd, 2008, 06:23 AM
|
#11 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Chuck S The way I read that line of code is simply that if you have captcha on and the user is a guest and the message is not empty meaning its more than a rating then CAPTCHA is required. | correct, but the code basically does: If Captcha is selected, and the message is NOT empty, go ahead and process the message. instead of captcha required.
|
| |
October 23rd, 2008, 06:28 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
Does captcha show on the page your on? Its a little early and coffee is not ready  Looking at the block all that determines is whether we check the captcha code against the database or not and pass the comment on fail you.
So obviously I dont have the whole picture here from what your posting. The code is NOT going to do what your saying it does not that section of code unless of course you dont have any catpcha on the page. Code: Content visible to verified customers only.
|
| |
October 23rd, 2008, 06:36 AM
|
#13 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
code is the same, except for the change on 268 that replaced: Quote: |
if ( isset($_POST['comid']) && $Globals['usecaptcha'] == "yes" && $User['userid'] < 1 && strlen($message) > 0 )
| to: Quote: |
if ( $Globals['usecaptcha'] == "yes" && $User['userid'] < 1 && strlen($message) > 0 )
| Perhaps you misunderstood my post the first time.
Captcha IS working, however, IF a rating is selected, And a message is entered, the captcha is bypassed... with the change that Micheal noted in the previous post
|
| |
October 23rd, 2008, 06:41 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
And thats with the removal of that one part of code
What is strange though is that section of code still requires that captcha be checked regardless of a rating or not if there is a message
|
| |
October 23rd, 2008, 06:49 AM
|
#15 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Chuck S And thats with the removal of that one part of code
What is strange though is that section of code still requires that captcha be checked regardless of a rating or not if there is a message |
I checked the code again. looks like I was missing a {
appears to be working now.
rating only, it is passed on. Rating with comment, captcha required.
thanks for you help there Chuck, with the dup code, that helped!
|
| |
October 23rd, 2008, 06:55 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
LOL Not a problem knew you had to be missing something
If clauses are pretty straight forward unless you mess up their logic and that login was sound which is why I was asking you if captcha was even showing on your page.
|
| |
October 23rd, 2008, 06:59 AM
|
#17 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
Yea - Captcha was showing, but just working right..
Enjoy the coffee there. I am off to work..
thanks!
|
| |
October 23rd, 2008, 07:09 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
I will be off to work soon as well but coffee is always a must in the morning for me.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:57 AM. | |