The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
where does this code go?
I'm running a 3rd-party uploading program. Works fine in IE, but not Firefox. The author of it said it has something to do with sessionID not being passed on by Firefox, and Adobe only supporting IE, etc, etc, etc.
He gave me some extra code that has to be added to a template, but I'm not sure what template. He said: You should put this code to the top of file processing script. Here is code to restore session: //trying restore browser cookie if(isset($_POST['MultiPowUpload_browserCookie'])) { $cookies = split(";", $_POST['MultiPowUpload_browserCookie']); foreach($cookies as $value) { $namevalcookies = split("=", $value); $browsercookie[trim($namevalcookies[0])] = trim($namevalcookies[1]); } $_COOKIE = $browsercookie; } //restore session if possible if(isset($browsercookie) && isset($browsercookie['PHPSESSID'])) { session_id($browsercookie['PHPSESSID']); session_start(); } -- anyone know where this code would go to restore a Firefox session when attaching files? |
#2
|
||||
|
||||
Well, I'm not sure exactly where that would go.... but I can definately tell you that you can't add that to a template
|
#3
|
||||
|
||||
A "file processing script" usually means code - like a php file. It is not a template (you can't put code in a template). As for which file, you'll have to ask him.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|