The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP Module loses user session info on form submit
Creating a form inside the php module.+
The form calls itself.+ Quick little snippet example Code:
global $vbulletin; if (!empty($_POST['sbutton'])){ Do some stuff, but we can't userid = 0 $vbulletin->userinfo['userid'] and even vB::getCurrentSession()->get('userid') returns 0 }else{ <form class='block' action='/forum/SituationReport' method='post' id='sitrep' name='sitrep'> <input type='submit' class='button' name='sbutton' id='_save' value='Submit'> } I tried adding the normal loading scripts but I get Couldn't read config file config.php Which is typical if its already loaded (Or at least in my experience) What else am I missing here. Script works outside of vbulletin as an external page. --------------- Added [DATE]1473374738[/DATE] at [TIME]1473374738[/TIME] --------------- @#%#@$% Figure out cause I was calling ./global.php I missed that. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|