![]() |
VB Login & Info on Non-VB Page
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! |
Hmm ... where is it? ;)
|
hasnt this been created already?
|
Must've uploaded it wrong.
There have been things like this, but nothing that I found that worked right and displayed the stuff this does. |
I tested this. The colours don't match my vB styles. In my case the result is very poor.
1st attachment is how this looks on a non-vB page with the code. 2nd attachment is how my login screen looks on the forums. |
Well, if you don't include the CSS of your forum it wont change the colors and such. (Atleast that's what I think)
@topic, very nice mod and this will surely become handsome. |
Zelda-King: Yeah... you can change it to suite your needs. You will have to if you want it to look like you want it to. I tried to remove all of my CSS from it, but I kind of assumed most people would have a style different from their forum so it shouldn't use the CSS from the forum.
|
just downloaded this as it's 100% what I need. However, I run my forums on a subdomain (as should everyone really), so I can't change folders. Is there another way around this?
//edit - scrub that, it's not possible, i'm moving my forums to the main domain. //edit2 - just thought i'd drop back and say that it's working great... thanks for making my life very easy, I was expecting this to be a nightmare... |
Quote:
|
does anyone know if there's a way of using the wysiwyg on non vb pages?
|
Thanks for sharing Adam. Works like a charm and had no problem adding the code. Gracias.
|
I have been wanting to add a login & info block to my header.....will this mod work?
|
Received this error message:
Unable to add cookies, header already sent. File: /var/www/mysite.com/html/index.php Line: 3 |
Does this work in vBulletin 3.5.0 final? I tried it... but doesn't seem to be catching the cookie, as in, you can log into the main page fine, but when I get to to the forums, I'm under a guest (meaning it shows that I never logged in). BUT... when I look on the Who's Online list, I fond myself logged in... only I'm not...
Hope that isn't confusing. |
Anybody have an idea why i get these errors?
Code:
Notice: Undefined index: REQUEST_URI in d:\myforums\htdocs\includes\class_core.php on line 1840 |
im gonna bump this because it doesnt seem to work and this seems to be the closest thing to logining into the vb db and session from a non VB page
|
I'd love to be able to use membership permissions and such on non-vb pages, without installing a portal, etc.
will this mod work for vb 3.5? |
this mod works in my 3.5 gold install, thanks. that's exactly what I needed. As simple as I wanted it to be. I don't like the other login addons, they try to do too much for you... :o
Thanks! |
noone else get ?
Unable to add cookies, header already sent. File: /home/*******/public_html/testlogin.php Line: 2 hmm it works if ur already logged onvia the forum |
the way around that error is to remove the line 'chdir' and put the non-vb page in your forums directory. That's what i did.
|
Still doesn't seem to be working for me properly; I can log in, but when I go to the forums, it shows me as logged out (or guest). When I go back to the page which I logged in from, it shows me as logged in. Anyone know the cause and have a fix for it? Much appreciated.
|
Yea, when i installed this script, i put it on my non-vb-page but when you submitted, it redirected you without doing anything. So i tested it on my forums, it would log me in, but it wouldnt say i was logged in. I went to forums, logged out, did the login from the page i wanted, and it logged me into forums, but didnt say i did on the page. I think this script needs some major fixes
|
is it me or when your logged out and view the page with IE theres a javascript error?
|
Hi, I used your code and everything, followed each step as you stated on the document you wrote. I edited the codes to the correct information what I have on my forums, such as renamed forum to forums, because thats what i have on my website.
Here is the test site i created; http://totalfrag.com/test.php Now when you browse the website, it says the following error; Fatal error: Cannot redeclare class vbulletinhook in /home/totalfr/public_html/forums/includes/class_hook.php on line 29 Please advice! Thank You! |
Quote:
http://www.dcsclan.net/b.php Fatal error: Cannot redeclare class vbulletinhook in /home2/=====/public_html/forums/includes/class_hook.php on line 29 |
Sorry guys, forgot about this hack... will try to figure out why you are having your problems and I'll post back here.
I have tried this on a 3.5.1 Fresh install of vBulletin and it worked fine. Please post which vBulletin version you have if you are having errors. |
I am using "vB Version: 3.5.1 " thanks for any help you can provide.
|
I am using vB Version : 3.5.0, but soon converting to 3.5.1 = )
|
Have you found the solution?
|
Wow, excellent idea for a hack!
Please post when this is working well in 3.5.1 ! Stachel |
I updated my forums to 3.5.1 but the problem still occurs! Is there a solution for this please? I tried both codes, "premium" and "normal" but both gave me the same exact error!
|
i have vb 3.5.1 and im having this error msg :
Fatal error: Cannot redeclare construct_usercp_nav() (previously declared help please |
Quote:
<?PHP chdir("forum/directory/"); require('./global.php'); chdir("../back/to/folder/you/want/"); ?> And to Quozt: Make sure your code is on the VERY top line... the VERY top. Above all head and everything. Should solve your problem. THis hacks works on 3.5.1 Its very easy to use if you have any php knowledge. Once someone figures out the stats on non-vb page, i can add some to this code, make it kind of a welcome panel |
I checked it over and over, and as long as you do everything right, then it should work
If not I can help you for $5 payable via paypal. You will have to pay only after I am done and everything is working. |
Works fine for me with 3.5.0, but I am getting a "Call to a member function on a non-object" in my error logs.
|
Quote:
Why should i donate 5 bucks for a coding mistake that didnt make sense and is in the original vb files? :mad: |
works fine for us. we are using 3.5.2. now i am wondering how if possible, i can put like; users online, birthdays, ect like the portal page does. i.e. left col, right col, center col. anyone?
edit- where can i find a list of all the variables such as, $vbulletin->userinfo['pmunread']; is there a b-day variable and whatnot? |
I am using vb 3.5.2 working 3.5.2 please answer
|
get a new demo please! page suspended! :(
|
Quote:
www.mousepilot.co.uk and www.british-mercenaries.co.uk |
All times are GMT. The time now is 04:50 PM. |
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:
|