The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Login Session
How To Use Login Session On other PHP Pages?
This Code 's=$session[sessionhash]' Not Work... Help Me Please : ( |
#2
|
|||
|
|||
You could include vb's global.php in your script, like in this article: https://vborg.vbsupport.ru/showthread.php?t=228112 . Otherwise I'm not sure if there's any other way to do it.
|
Благодарность от: | ||
juronx |
#3
|
|||
|
|||
Very Very Tnx...
but I Have Been Made A PHP File In This Address: localhost/nuke-test/vb-login.php PHP Code:
localhost/nuke-test/blocks/user-block.php PHP Code:
Code:
Fatal error: Call to undefined method vB_Database::sql_query() in... |
#4
|
|||
|
|||
I'm not sure but I think it might be a "current directory" problem. I think you need to chdir to the vbulletin install directory from wherever the orignially requested script is, not from where vb-login.php is.
|
#5
|
|||
|
|||
TnQ,
Directory Changed to the VBulletin Install, And This Error: Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\global.php(29) : eval()'d code on line 33 Fatal error: Call to undefined method stdClass::set() in D:\Install\xampp\htdocs\vb\global.php(29) : eval()'d code on line 46 |
#6
|
|||
|
|||
Sorry, maybe I said that wrong. Just to make sure, you don't want to change to the install subdirectory, I meant to make sure that the chdir ends up at localhost/nuke-test/vb.
But if you did that, then it looks like the problem is with a plugin using hook global_start. I've seen that error when you try to use vb3 plugins with vb4, but if that were your problem you'd see it when you went directly to the forum, and not just when you use your script. |
#7
|
|||
|
|||
Many Thanks...
The Problem was Solved. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|