The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Site-wide integration
Hello,
I am moving from phpBB to vB, which I just purchased. I had a script for my phpBB which allowed me to display user information on any page on my website, and allowed users to login on any page of my website. With this script I could write my own little scripts, like: if (user is logged in) { do this } else { do this } The script also allowed me to retreive the users name if they were logged on. Does anything like this exist for vB? Thank you. |
#2
|
|||
|
|||
Yes it does...you may also want to check out vBAdvanced CMS
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
<a href="http://www.ajquick.com/programming/phpbb/tutorial/" target="_blank">Here</a> is the script I used.
|
#5
|
|||
|
|||
If you include vB's global.php on your php page, it basically does what you're looking for I'm pretty sure.
PHP Code:
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
Hey Tekton, that works. Is there any way to retreive the users username if they are logged in?
|
#7
|
|||
|
|||
Quote:
Not sure if you need the quotes like 'username'; I can't remember off-hand. By the way, if you didn't know this is an interesting fact. You can user the $bbuserinfo[] on ANY field in your database's user table. $bbuserinfo[posts] $bbuserinfo[ipaddress] $bbuserinfo[gold] etc... Just in case you wanted to know! ^__^;; |
#8
|
|||
|
|||
Tekton, thanks alot! Now I can display all sorts of user information on any page of my site when the user is logged in.
|
#9
|
|||
|
|||
No problem It's all done already in the global file, so no use running any unnecessary queries to get that data at least. Good luck!
|
#10
|
|||
|
|||
I spotted a problem. It will display the users information even if they have not been activated by a moderator. Is there a way to write a test as to whether the user is actually active and logged in?
Edit: I guess I should say, can I write a test script if the user is apart of the "awaiting moderation" usergroup? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|