+ Reply to Thread
Results 1 to 7 of 7

Thread: Image verification of comments error

  1. #1
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6

    Image verification of comments error

    I've allowed unregistered users to post comments in the blog in the permissions but they're still unable to do so. Whenever a new comment is posted, the user will encounter the following error:

    The following errors occurred when this message was submitted:
    1. The string you entered for the image verification did not match what was displayed.
    The problem is that no image verification was displayed in the page prior to the comment form submission.

    Here's a sample URL: http://forum.istyles.com/blog_post.php?do=comment&b=3 . Does anyone know what might be wrong or whether a particular template might be responsible? Our templates are hardly modified - only the header, footer and headinclude templates were changed. I could not find any settings to disable/enable image verification for comments or did I miss that out?

    Comments made by registered users do not encounter such problems.

  2. #2
    Customer Support Manager Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol's Avatar
    Join Date
    Jul 2000
    Location
    Jelsoft InterGalactic HQ
    Posts
    142,698
    Looks like a problem with your custom style. Try this. Create a new style and choose no parent style. This will force it to use the default templates. Then change to this style and view your forums with it. Do you have the same problem?

    If you do, empty your browser cache, close all browser windows and try again.
    Steve Machol, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  3. #3
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6
    Thanks for the suggestion. I created a new style with no parent and the same issue still occurs even after a complete flush of the browser cache (+reload)

  4. #4
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6
    To add further - I just disabled every product on the forum with the exception of the Blog but it's still not working.

  5. #5
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6
    I'm assuming that a sort of image verification will appear on the same page "new comments" page but it does not.

    GD works fine on the server ( http://forum.istyles.com/register.php?do=register ) . If I disable the image verification settings, new comments can be posted. Is anyone running their Blog with Unregistered posting comments + image verification successfully or is this a bug?

    With GD disabled, comments go through but there should be an if statement to disable avatars as an unregistered user does not have an avatar and the comment shows a broken image: http://forum.istyles.com/blog.php?b=3

  6. #6
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6
    I've managed to fix the issue. This is probably specific to my case. I have GD enabled for new registrations but I've disabled image verification for new posts as I couldn't figure out how to integrate the image verification into the feedback form I use for our oscommerce customers.

    Line 1544 of blog_post.php trips because of this set up.

    Code:
        if ($vbulletin->options['postimagecheck'] AND !$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
        {
            require_once(DIR . '/includes/functions_regimage.php');
            $imagehash = fetch_regimage_hash();
            eval('$imagereg = "' . fetch_template('imagereg') . '";');
        }
        else
        {
            $imagereg = '';
        }
    Changing this to the following resolves the problem for me.

    Code:
        if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
        {
            require_once(DIR . '/includes/functions_regimage.php');
            $imagehash = fetch_regimage_hash();
            eval('$imagereg = "' . fetch_template('imagereg') . '";');
        }
        else
        {
            $imagereg = '';
        }
    Another bug fix required will be to change line 1289 from

    Code:
        if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'])
        {
            require_once(DIR . '/includes/functions_regimage.php');
            if (!verify_regimage_hash($vbulletin->GPC['imagehash'], $vbulletin->GPC['imagestamp']))
            {
                $blogman->error('register_imagecheck');
              }
        }
    to

    Code:
        if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['regimagetype'] AND $vbulletin->options['postimagecheck'])
        {
            require_once(DIR . '/includes/functions_regimage.php');
            if (!verify_regimage_hash($vbulletin->GPC['imagehash'], $vbulletin->GPC['imagestamp']))
            {
                $blogman->error('register_imagecheck');
              }
        }
    Note: The first fix is specific to my case. The second fix however should go into the blog codes for future versions.
    Last edited by Ming Keong; Fri 14th Sep '07 at 7:36am.

  7. #7
    New Member Ming Keong is on a distinguished road
    Join Date
    Feb 2002
    Location
    Paris
    Age
    32
    Posts
    6
    A more elegant solution will be to create a new blog option to determine if the forum owners would like image verification for comments from unregistered users. Eg, to use something like $vbulletin->options['blogcommentimagecheck'] instead of $vbulletin->options['postimagecheck']

    This will give users more flexibility in configuration (and will save me the trouble of hacking future blog revisions as I need image verification for comments and none for forum posts )

+ Reply to Thread

Similar Threads

  1. Image verification image shows as missing image
    By cdaniel in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Fri 7th Sep '07, 2:04pm
  2. Don't make user retype the image verification if they have an error
    By delaen in forum vBulletin Suggestions and Feedback
    Replies: 3
    Last Post: Thu 17th May '07, 2:37am
  3. Spam Post/Bots - Even after Image Verification/Email Verification
    By OS, in forum vBulletin 3.5 'How Do I' Questions and Troubleshooting
    Replies: 2
    Last Post: Fri 19th Jan '07, 8:40pm
  4. (FIXED) Image Verification Image not showing.
    By Wannakno in forum vBulletin 3.6 Questions, Problems and Troubleshooting
    Replies: 0
    Last Post: Sat 11th Nov '06, 8:57pm
  5. 3.6.1 Guests searching are not presented with image verification - only after error?
    By Make Money?-old in forum vBulletin 3.6 Questions, Problems and Troubleshooting
    Replies: 2
    Last Post: Wed 20th Sep '06, 12:49pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts