vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VB Login & Info on Non-VB Page (https://vborg.vbsupport.ru/showthread.php?t=96013)

adamgessel 09-09-2005 10:00 PM

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!

Andreas 09-10-2005 09:31 PM

Hmm ... where is it? ;)

Blaine0002 09-10-2005 09:33 PM

hasnt this been created already?

adamgessel 09-10-2005 09:36 PM

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.

Zelda-King 09-11-2005 06:55 AM

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.

Yorixz 09-11-2005 09:29 AM

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.

adamgessel 09-12-2005 02:07 AM

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.

Snetty 09-26-2005 10:40 AM

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...

Zelda-King 10-01-2005 10:35 PM

Quote:

Originally Posted by adamgessel
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.

The problem is when you have your board closed or disable certain groups from seeing the boards (eg: if forums aren't viewable by guests). Logging in from the main site page in a situation where the vB login box is overriding the site code would take them to login.php which doesn't exist outside the forums' directory. Fix by using a full URL for login.php in the STANDARD_ERROR template.

Snetty 10-07-2005 01:00 PM

does anyone know if there's a way of using the wysiwyg on non vb pages?

Fuzz 10-14-2005 05:45 PM

Thanks for sharing Adam. Works like a charm and had no problem adding the code. Gracias.

JimmyJames 10-14-2005 06:17 PM

I have been wanting to add a login & info block to my header.....will this mod work?

ludachris 10-17-2005 06:12 PM

Received this error message:

Unable to add cookies, header already sent.
File: /var/www/mysite.com/html/index.php
Line: 3

Onimua 10-18-2005 04:56 PM

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.

auz1111 10-18-2005 08:43 PM

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

Notice: Undefined index: REQUEST_URI in d:\myforums\htdocs\includes\class_core.php on line 1840

Notice: Undefined index: PATH_INFO in d:\myforums\htdocs\includes\class_core.php on line 1846

Notice: Undefined index: PATH_INFO in d:\myforums\htdocs\includes\class_core.php on line 1846

Notice: Undefined index: REDIRECT_URL in d:\myforums\htdocs\includes\class_core.php on line 1850

Notice: Undefined index: REDIRECT_URL in d:\myforums\htdocs\includes\class_core.php on line 1850



 
Unable to add cookies, header already sent.
File: d:\myforums\htdocs\includes\class_core.php
Line: 1840


Quozt 10-27-2005 12:26 PM

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

dvn 10-28-2005 06:59 PM

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?

ruinernix 10-30-2005 06:03 PM

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!

Quozt 10-31-2005 02:49 PM

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

Mu5icMan 11-02-2005 01:46 PM

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.

Onimua 11-06-2005 04:52 PM

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.

Dark Riku 11-11-2005 09:02 PM

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

danb00 11-13-2005 01:59 PM

is it me or when your logged out and view the page with IE theres a javascript error?

TF|Scorpion 11-20-2005 03:49 AM

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!

1nsane 11-20-2005 12:54 PM

Quote:

Originally Posted by TF|Scorpion
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!

Yup... thats what I get :(

http://www.dcsclan.net/b.php

Fatal error: Cannot redeclare class vbulletinhook in /home2/=====/public_html/forums/includes/class_hook.php on line 29

adamgessel 11-20-2005 01:36 PM

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.

1nsane 11-20-2005 05:48 PM

I am using "vB Version: 3.5.1 " thanks for any help you can provide.

TF|Scorpion 11-21-2005 05:17 AM

I am using vB Version : 3.5.0, but soon converting to 3.5.1 = )

TF|Scorpion 11-22-2005 08:16 AM

Have you found the solution?

Stachel 11-22-2005 09:31 AM

Wow, excellent idea for a hack!

Please post when this is working well in 3.5.1 !

Stachel

TF|Scorpion 11-25-2005 04:52 AM

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!

Sn3s 11-28-2005 03:04 PM

i have vb 3.5.1 and im having this error msg :

Fatal error: Cannot redeclare construct_usercp_nav() (previously declared

help please

Dark Riku 11-30-2005 08:37 PM

Quote:

Originally Posted by Mu5icMan
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.

YOu didnt have to do you... you could just do this...
<?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

adamgessel 12-01-2005 12:43 AM

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.

garrynz 12-01-2005 10:39 AM

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.

TF|Scorpion 12-01-2005 08:13 PM

Quote:

Originally Posted by adamgessel
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.


Why should i donate 5 bucks for a coding mistake that didnt make sense and is in the original vb files? :mad:

malfuncion 12-21-2005 05:25 PM

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?

sesmatik 12-21-2005 10:23 PM

I am using vb 3.5.2 working 3.5.2 please answer

Smiry Kin's 12-21-2005 10:49 PM

get a new demo please! page suspended! :(

Snetty 12-21-2005 10:53 PM

Quote:

Originally Posted by Smiry Kin's
get a new demo please! page suspended! :(

I have 2 sites that both use this, check them out in place of the real demo.

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
  • Page Generation 0.03040 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete