Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2013, 07:21 PM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default security token was missing

Im getting this message from my custom plugin:

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.
I have included these on the plugin codes but im still getting the error.
Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
I also added
Code:
define('CSRF_PROTECTION', true);
Inside my plugin file..

It seems like security token is changing after the Paypal redirects back to my forums..
Reply With Quote
  #2  
Old 10-01-2013, 08:11 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think the whole code would need to be seen in order to debug it.
Reply With Quote
  #3  
Old 10-01-2013, 08:22 PM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the code of the form..

Code:
		<form action="{vb:raw ptpnt_action}" method="post">
		<vb:if condition="$ptpnt_total_price">
			<input type="hidden" name="cmd" value="_xclick" />
			<input type="hidden" name="business" value="{vb:raw ptpnt_ppemail}" />
			<input type="hidden" name="item_name" value="{vb:rawphrase post_new_thread}" />
			<input type="hidden" name="item_number" value="{vb:raw ptpnt_item}" />
			<input type="hidden" name="currency_code" value="{vb:raw foruminfo.ptpnt_currency}" />
			<input type="hidden" name="amount" value="{vb:raw ptpnt_total_price}" />
			<input type="hidden" name="no_shipping" value="1" />
			<input type="hidden" name="shipping" value="0.00" />
			<input type="hidden" name="return" value="{vb:raw vboptions.bburl}/forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw foruminfo.forumid}" />
			<input type="hidden" name="cancel_return" value="{vb:raw vboptions.bburl}/forumdisplay.php?f={vb:raw foruminfo.forumid}" />
			<input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/buythread.php?do=paypal" />
			<input type="hidden" name="custom" value="{vb:raw bbuserinfo.username}" />
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="process" />
			<input type="hidden" name="no_note" value="1" />
			<input type="hidden" name="tax" value="0.00" />
		<vb:else />
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="process" />
			<input type="hidden" name="f" value="{vb:raw foruminfo.forumid}" />
			<input type="hidden" name="do" value="{vb:raw ptpnt_do}" />
		</vb:if>

		<h2 class="blockhead">{vb:rawphrase post_new_thread} - {vb:rawphrase ptpnt_payment_required}</h2>
			<div class="blockbody formcontrols settings_form_border">	
				<div style="width:100%">
					<div style="float:left;width:50%;"><h3 class="blocksubhead">{vb:rawphrase title}</h3></div>	
					<div style="float:left;width:50%;"><h3 class="blocksubhead">{vb:rawphrase ptpnt_description}</h3></div>
				</div>
			<div class="section"">
				<div class="blockrow">	
					<div style="float:left;width:50%;">{vb:rawphrase ptpnt_forum_for_thread}</div>	
					<div style="float:left;width:50%;"><a href="forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw foruminfo.forumid}">{vb:raw foruminfo.title}</a></div>				
				</div>
				<div class="blockrow">	
					<div style="float:left;width:50%;">{vb:rawphrase ptpnt_price_per_thread}</div>	
					<div style="float:left;width:50%;">{vb:raw ptpnt_price} {vb:raw foruminfo.ptpnt_currency}</div>				
				</div>
				<div class="blockrow">	
					<div style="float:left;width:50%;">{vb:rawphrase ptpnt_maximum_threads_allowed}</div>	
					<div style="float:left;width:50%;">{vb:raw foruminfo.ptpnt_threads}</div>				
				</div>
				<vb:if condition="$ptpnt_total_price">
				<div class="blockrow">	
					<div style="float:left;width:50%;">{vb:rawphrase ptpnt_number_of_threads}</div>	
					<div style="float:left;width:50%;">{vb:raw ptpnt_num_threads}</div>				
				</div>
				<div class="blockrow">	
					<div style="float:left;width:50%;font-weight:bold;">{vb:rawphrase ptpnt_total_price}</div>	
					<div style="float:left;width:50%;">{vb:raw ptpnt_total_price} {vb:raw foruminfo.ptpnt_currency}</div>				
				</div>				
				<vb:else />
				<div class="blockrow">	
					<div style="float:left;width:50%;">{vb:rawphrase ptpnt_enter_number_of_threads_to_purchase}</div>	
					<div style="float:left;width:50%;"><input type="text" name="num_threads" value="1" /></div>				
				</div>
				</vb:if>				
			</div>
				
			</div>
			
			<div class="blockfoot actionbuttons settings_form_border">
				<div class="group">				
				<vb:if condition="$ptpnt_total_price">
					<input type="submit" class="buybutton" value="{vb:rawphrase ptpnt_purchase}" />
				<vb:else />
					<input type="submit" class="buybutton" value="{vb:rawphrase submit}" tabindex="1" accesskey="r" />
				</vb:if>
				</div>
			</div>	
		</form>
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06478 seconds
  • Memory Usage 2,194KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete