Status
Not open for further replies.

ryan

Customer
Hello Dark,
I have installed the pro version of VBcredits. I want to let people buy credits. It seems that everything works until they come back to my site. At this time they get error:


Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Talk Disney


And no credits are added to the account?

Can you please help with this. This was one of the major reasons I went with the pro.

Thanks,
ryan
 
UPDATE on this.....

If I do NOT enter a user not on the credits it works, I still get the message about security token missing BUT the credits are added to my account and I DO get a PM.

If i DO ADD a note it does not work. I get the error about the security token missing but i do NOT get credits.

Both ways paypal is charged and sent to my account.

Thanks,
ryan
 
Edit the credits_popup template, find

HTML:
    popup.parent().submit(function(e)
    {    //submit ajax form
        e.preventDefault();

        $.post('credits.php', SESSIONURL + 'securitytoken=' + SECURITYTOKEN + '&ajax=1&' + $.param($(this).serializeArray()), function(data)
        {    //post whole form
            var error = $('error', data);

            if (error.length) alert(error.text().replace(/<br ?\/?>/gi, '\n')); else
            {    //parse vb error
                var test = data.split('|');

                if (test.length == 3)
                {    //send to somewhere
                    $('<form action="' + test[0] + '" method="' + test[1] + '">').html(test[2]).appendTo('#credits_purchase_form').submit();
                }
                else
                {    //show message
                    popup.hide();
                    alert(data);
                }
            }
        });
    });

replace with

HTML:
    popup.parent().submit(function(e)
    {    //submit ajax form
        e.preventDefault();
        var fields = $(this).serializeArray();
        fields[0].value = PHP.urlencode(fields[0].value);

        $.post('credits.php', SESSIONURL + '&ajax=1&' + $.param(fields), function(data)
        {    //post whole form
            var error = $('error', data);

            if (error.length) alert(error.text().replace(/<br ?\/?>/gi, '\n')); else
            {    //parse vb error
                var test = data.split('|');

                if (test.length == 3)
                {    //send to somewhere
                    $('<form action="' + test[0] + '" method="' + test[1] + '"></form>').html(test[2]).appendTo('#credits_purchase_form').submit();
                }
                else
                {    //show message
                    popup.hide();
                    alert(data);
                }
            }
        });
    });

let me know how this improves things :)
 
OK I did the change:

Code:
Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Talk Disney

and NO Credits...


Both with a note and with out a note...
 
error-2.jpgIt goes back to what ever page I clicked the credit purchase on. In this case It was

http :// www. talkdisney. com/forums/premium-forum/48222-welcome-colette.html#.UE-tnLUkqSo
 
Last edited:
Status
Not open for further replies.

Similar threads

Legacy vBCredits II Deluxe

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
845
Customer rating
0.00 star(s) 0 ratings
Top