![]() |
Hiyis :)
I want to be able to have a message such as 'Welcome, username on a non-vB page (ie, the rest of my site!), if the user is registered and has the cookie present (obviously), or if the user isn't logged in or registered, show the login boxes/registration link... Is this possible? My main site uses PHPNuke, but I'm guessing if I coded in a require for whatever vB files I needed, it'd ref the vB database for the username etc......? I'm not a PHP/SQL guru, so please excuse my ignorance if this is a simple thing to do:p Thanks :) Mark |
Anyone? :(
|
Hi Mark .... well I wait with you for a response if there is one :)
|
PHP Code:
|
That's it?
|
Quote:
|
If you want to geht the loginform, you have to change the code a bit:
PHP Code:
|
Thx you for fast response ... but it doesn't works to me :confused: :confused:
Gives error on the global.php |
Quote:
|
Yes I ' v created a new file and then copied your code.
Then i modified this: require("forum/global.php"); and test it. This is the result: Warning: Undefined variable: REQUEST_URI in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 33 Warning: Undefined variable: QUERY_STRING in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 41 Warning: Undefined index: HTTP_POST_VARS in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 58 Warning: Undefined index: action in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 58 Warning: Undefined index: action in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 61 Fatal error: Failed opening required './admin/config.php' (include_path='') in C:\Inetpub\wwwroot\swzone.it\forum\global.php on line 66 My server (I host directly) is an IIS5 with Php 4.0.6 Thx for your interest :) |
All times are GMT. The time now is 12:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|