The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i want a login area on a non-vb page. but i dont just want the login box, once logged in i want it to display the:
"Welcome X Users. You last visited...." How can you use if conditions like you'd need to on a non-vb page? |
#2
|
|||
|
|||
![]()
bump.
|
#3
|
|||
|
|||
![]()
You can just use vB's conditionals by requiring global.php.
Add: PHP Code:
If you're using an HTML file, ofcourse use PHP Code:
|
#4
|
|||
|
|||
![]()
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home2/******/forum/global.php on line 18
Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/******/forum/global.php on line 18 |
#5
|
|||
|
|||
![]()
you will have to chdir to your forum directory before calling global.php
|
#6
|
|||
|
|||
![]()
I'd appriciate showing how to do this as my knowledge is limited. The forum directory is /forum
|
#7
|
|||
|
|||
![]() PHP Code:
|
#8
|
|||
|
|||
![]()
<a href="http://www.pesinsight.com/indexdev.php" target="_blank">http://www.pesinsight.com/indexdev.php</a> - more progress... but still, not working? if you look at code you can see global is called for...
well, actually you cant see it when you view source, but i definitley have it at the top before the html |
#9
|
|||
|
|||
![]()
Mae sure no http header is send before the global.php is being called.
|
#10
|
|||
|
|||
![]()
OK well I give up its causing all sorts of errors, maybe ill try and get it working further down the line.
for now can someone just give me a simple way of sending those who log in on the main non-vb page to the forum home. at the moment they are returned the non-vb page. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|