The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Integrate vbulletin login / session info sitewide
Hi, I know there are robust hacks out there that will do this and more, but I am looking for something extremely simple. What I want is a snippet of code I can include on all the pages on my site that are outisde the forum that will :
a) recognize a user as logged in, start their session, add them to the who's onling list, and show some stats, like: Welcome back: zeropaid You last visited: 29. Mar 2005 11:10 View New Posts Your Buddies Mark Forums Read Log Out There are 297 users online, 45 members and 252 guests b) not recognize a user as logged in, start their session, and present them with a login box and some who's online stats I also need to be able to grab this user's userid for use in other applications, so that either needs to be a session variable I have access to or a cookie or something once they are logged in. Please let me know if there is an exisiting hack for this, if not I will pay for one. Thanks, Chris |
#2
|
|||
|
|||
Is the site across different domain names or just sub-domains! You could do it both ways just the first way would be more work to get by the browser not letting you read or manage a cookie that is not a member of the current domain.
I have a script that I use for chat logins that I think I could convert to do this, it creates a small login box that you can place on any PHP page! You call it like so! Code:
$box = not_user_login(); If this is what your wanting tell me and I will post you some code to do it! It might not be until tomorrow as I am busy at the moment! Sonia |
#3
|
||||
|
||||
yeah, thats kind of what we are looking for, if you can please post the code and I will try it out. All our pages are ont he same domain.
|
#4
|
|||
|
|||
I'm looking for a similar script that basically lets a visitor show up "online" even if they aren't in a forum page. There should also be a way to validate if they're logged in so that they can be denied access to certain pages accordingly.
|
#5
|
||||
|
||||
just rename your files into php files, like so:
PHP Code:
|
#6
|
|||
|
|||
hey, so did tyler's method worked? anyone?
|
#7
|
||||
|
||||
I'm also looking for something like this, I have a number of inefficient methods of getting the username or guest welcome displayed, but I can't seem to get people browsing non-vb pages to end up in online.php.
In vb 3.0.0 including global made it work fine |
#8
|
|||
|
|||
Quote:
There are a few integration hacks/frameworks available, but often it would require customisation for your specific situation. |
#9
|
||||
|
||||
No, I'm asking for vb 3.5.4
I'm saying that this was easy in vb 3.0.0 lol |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|