The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB Login & Info on Non-VB Page Details »» | |||||||||||||||||||||||||
This is nothing too big, I just thought it might help some people out so I'm putting it up here.
===================== DEMO ===================== You can see exactly what I did at: http://www.forumfreedom.net/ ===================== DESCRIPTION ===================== If someone is logged in on your board, but they are on a non-vb page, this will display their username, amount of PMs (and if they have more than 0 it will be bold), and an option to logout (properly, using their logout hash so that it does it the first time), and has a couple more options. What I've done in mine is added two extra usergroups, Premium and Platinum, and if they are either of those then it tells them what usergroup they are in. In the install file, there are two different steps to take, one to install that part and one to not. So, if you have two usergroups that are premium and platinum accounts that people pay for, this will work good for you. You can of course add more premium usergroups easily. Otherwise, just install the other step and it will still work good . The code is simple, but I recommend knowing how vbulletin works before installing it. You will need to change some things in the code, but I think that it's worth it if you need something like this. This doesn't edit any code in vbulletin. ===================== INSTALL ===================== Install Time: Depends, if you already have a page with everything going then this should only take a few seconds, unless you have to troubleshoot it. Difficulty: Medium, I say this because there are a few things you might have to change. It's easy to install if you know what you are doing. PLEASE CLICK INSTALL! Supporters / CoAuthors Show Your Support
|
Comments |
#42
|
|||
|
|||
I'm using this and it works great. Though i'm wondering how would I set it to RE-Direct the person to my forums after logging in?
Though if the person is still logged in I want them to see this page. Basically just want the re-direction after they log in. |
#43
|
|||
|
|||
Just thought i'd post a change I made to the chdir part of this code. It means you don't have to worry about putting in the folder structure of your host, the code will figure it out for you.
PHP Code:
|
#44
|
|||
|
|||
Warning: chdir(): No such file or directory (errno 2) in /home/bauforum/public_html/forum/aa.php on line 3
Unable to add cookies, header already sent. File: /home/bauforum/public_html/forum/aa.php Line: 3 i see this error message what can i do please help me already i am using vb 3.5.2 |
#45
|
|||
|
|||
sesmatik, are you using my chdir script there? if so, you need to adjust what your forum directory is called.
|
#46
|
|||
|
|||
Adam - this is perfect! Thanks very much...
All worked first time - just in a fairly plain page at the moment to try it out. This is going to be really handy. |
#47
|
|||
|
|||
Quote:
|
#48
|
|||
|
|||
I have the basics of it working in 3.5.2. :up:
BTW, instead of all the if($vbulletin->userinfo['usergroupid']==xxx stuff, you could do a much simpler if(is_member_of($vbulletin->userinfo)) instead. You would have to include fuctions.php as well as the others, though. |
#49
|
||||
|
||||
thats all good but how do you get the GUESTS on that 1 page to show up on the Who's Online bit on the forum.. I.E, Guests viewing Unknown Location - http://blah.com/etc
How does that go about?? same with the user once logged in..? because on my board, yes some 1 can log in on a non vb page BUT they will not be shown on who's online. i want that to be shown and any guests viewing that page aswell... what will i need to do?? please help. thanks in advance! |
#50
|
|||
|
|||
Hi,
When I try out this code, it works perfectly in FF. When I test it out in the IE7 Beta, I am not seeing the log-in text fields. When I am already logged in though, both browsers displays the "Welcome...." message like they should. EDIT: Nevermind - the issue was with the <style type=text/css> line. Removing that fixed it! Thanks, Kirupa =) |
#51
|
|||
|
|||
Sorry people I've had problems logging in to vBulletin.org the last month and a half or so... anyways, the demo site isn't up because they were charging me too much for it and I couldn't keep it up. Sorry about that.
I have hosting somewhere else now and I'll look into putting up another vBulletin forum and having the demo there. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|