![]() |
|
Article Options |
#166
|
|||
|
|||
What do you do if only a few users have the issue and no one else?
No members have liked this post.
|
#167
|
|||
|
|||
![]()
Guys,
Lynne directed me to this thread and after over a week of no one responding to my cries for help my problem is solved. THANK YOU LYNNE!!!!! ![]() ![]() Users were getting a Security Token message when they tried to use the search function and this thread helped rectify the issue within a short amount of time. As an FYI we are running VB 3.8+ over at our place. No members have liked this post.
|
#168
|
|||
|
|||
hello, i have a problem with security token in IBPROarcade whem i go submit the score, it show in this page of forum. i have vb 4
foro/index.php?act=Arcade&do=newscore where template or i have to modify to fix that? Thank's No members have liked this post.
|
#169
|
||||
|
||||
Questions/Problems regarding modifications need to be asked in the modification thread. That is where the support for modifications is - not out here in the main forums. Please note that if a modification is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#170
|
|||
|
|||
I am creating an application form that posts info to my officer forums. It was very easy to make in SMF but I keep getting the security token error when doing it in VB4 gold.
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'epeen_application.php'); define('CSRF_PROTECTION', true); ..... blah blah // ###### YOUR CUSTOM CODE GOES HERE ##### $pagetitle = 'ePeen Application'; $application_form = '<div id="appForm"> <div id="innerGutsApp"> <form id="ePeenApp" class="appnitro" method="post" action="submit_app.php"> <div class="form_description"> <h2>ePeen Application</h2> <p>Flex Your ePeen Here!</p> </div> ... ... blah blah <li class="buttons"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="form_id" value="111237" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> </li> </ul> </form> </div> </div>'; // ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### $templater = vB_Template::create('ePeen_application'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', $pagetitle); $templater->register('application_form', $application_form); print_output($templater->render()); ?> I have what is required but I still get the security token error. Any idea how I can make this work? I have tried taking the form out of my php file and put it directly into the template with no change. I need to get this site done and this is one of my last road blocks. No members have liked this post.
|
#171
|
|||
|
|||
using vBulletin version 3.8.1.
We have some users using IE and Firefox who get this security token error when trying to upload images. Our footer has the code below in it. <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="s" value="$session[sessionhash]" /> Thank you for any help No members have liked this post.
|
#172
|
|||
|
|||
Originally Posted by niteflyer32
Just putting that in the footer wont help. It has to be within the <form>...</form> properties of what you are doing. If it is outside of the form properties it will be disregarded for that form and considered to be part of something else.
![]()
No members have liked this post.
|
#173
|
|||
|
|||
So for a member uploading pics to a post, where in the template code would I add the new code?
Where is the form for uploading pics? Thanks No members have liked this post.
|
#174
|
||||||||
|
||||||||
For those wondering how to do this in vB4, if you have not done so already, in every form youy have within your home-made mods, where before you would have placed:
Now use:
I just spent quite a bit of time trying to figure out what exactly was wrong, and figure this might save someone some time. Cheers. Peter
__________________
EntropiaPlanets - Entropia Universe information, wiki and tools | AfterWorldForum - AfterWorld information, wiki and tools No members have liked this post.
|
#175
|
||||||||||||||||
|
||||||||||||||||
Originally Posted by AfterWorldForum
Hi there,![]()
Thanks for that, so are you saying delete
and replace it with
Thanks Mat No members have liked this post.
Last edited by mathewka010; 29 Aug 2010 at 08:18. |
#176
|
|||
|
|||
Security Token Uploading PDF
Hi,
When attempting to upload a pdf file, I get the missing security token error message. When I tried a different file type (png), I didn't receive the error. I've checked the attachment related templates and the codes mentioned are there. Any ideas? Thank you! Ken Disregard this. The problem is that the pdf file too large. Right now my server has an upload limit in the php.ini of 24MB. The file I was going to upload is about 32MB... No members have liked this post.
Last edited by keharris53; 30 Aug 2010 at 10:55. |
#177
|
|||
|
|||
I realize this is an old issue, but how do you add CSRF support to pages that are not posted, but the page decides what to display based on a url parameter?
For example, this works 'thesecool.php?do=apples' (using 'do'). But, 'thesecool.php?s=apples' will do an auto-logout and force the user back to the login screen. However, if I change it to 'thesecool.php?s=apples&do=apples' (trying to get the 'do' back) - that still doesn't work even though the 'do' parameter is there - and it does an auto-logout and forces the user back to the login screen. So with a 'post' without a <form> to pass variables...but you're passing url parameters...how do you add the security token? EDIT: Apparently, using 's' as a parameter is a bad thing. I changed my 's' (just arbitrarily used it, could have been anything) to a 'do' and everything works. Not sure why 's' would be an issue. Very strange. I should mention that I've used 'b', 'd', 'y', 'm', etc. without problems on other pages; doesn't make sense to me. No members have liked this post.
Last edited by go2phil; 19 Jul 2011 at 10:51. Reason: found fix? |
#178
|
||||||||
|
||||||||
Originally Posted by go2phil
I hope you do realize that the answer to that question is on this very same page. 's' is the parameter name used by vBulletin for the session hash.![]()
vB3:
vB4:
In general when dealing with vBulletin you should avoid custom parameters using a single character as vBulletin use many of them as shorthand notations. For example: t for thread, p for post, f for forum, etc.. No members have liked this post.
Last edited by Marco64Th; 19 Aug 2011 at 12:07. |
#179
|
||||
|
||||
im getting the security token errors on 3.8.7
running The query shows most templates all of a sudden need editing BUT when I check them they all have the required code Im lost error im getting is
any ideas are welcome No members have liked this post.
|
#180
|
|||
|
|||
Originally Posted by Wayne Luke
![]()
Thank You! I was getting the Security Token error in the NavBar Search and Quicklinks/Mark Forums Read. I opened my Header Template, found the "Value="$session[sessionhash]" within the 'NavBar Popup Menus' section and added the security token code you quoted. Search function fixed. Quicklinks/Mark Forums read still generating a security token issue. Suggestions? No members have liked this post.
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Show Thread Enhancements Stamps (CSRF protection added) | misr.cc | vBulletin 3.7 Add-ons | 98 | 14 Oct 2012 14:54 |
Add-On Releases vBTube 1.2.9 (CSRF protection added) | Playa82 | vBulletin 3.7 Add-ons | 434 | 22 Jan 2012 23:08 |
Mini Mods [ITECH] Inferno CSRF Auto Protection | Inferno Tech | vBulletin 3.6 Add-ons | 15 | 02 Nov 2010 04:01 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 05:24.