vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=132996)

Billspaintball 12-04-2006 01:06 AM

Quote:

Originally Posted by mathias (Post 1130608)
from conflicting with the vBExternal? i found this is the only way i can do it

Yes there is a conflict between this and vB external.
We tried to track it down with an earlier release of this but with no luck.

A workaround others have used is use vBexternal for the front page and this hack on the rest to provide access control.

mathias 12-04-2006 06:30 AM

Quote:

Originally Posted by Billspaintball (Post 1131318)
Yes there is a conflict between this and vB external.
We tried to track it down with an earlier release of this but with no luck.

A workaround others have used is use vBexternal for the front page and this hack on the rest to provide access control.


np, thanks for that :D

unit3029 12-04-2006 09:58 PM

Just what the docotor ordered :) Great hack

Thanks

Osterling 12-05-2006 01:44 AM

It works great! I have one question however, how can I display the username?

Billspaintball 12-05-2006 01:54 AM

Quote:

Originally Posted by Osterling (Post 1132134)
It works great! I have one question however, how can I display the username?

To display the username just put
PHP Code:

echo $vbulletin->userinfo['username']; 

in the page where you want it.

Osterling 12-05-2006 11:55 PM

I am trying to put $vbulletin->userinfo['username'] into a variable named $username, however it isn't working. Here is my code, is there something I am missing?

$username = $vbulletin->userinfo['username'];

eob 12-06-2006 09:50 PM

I'm having an interesting problem...

If I run this hack, it deletes any variable called before it, for example, if id=6 before global.php, id = NULL afterwards?

Otherwise a great hack, but mucho help would be appreciated?

Billspaintball 12-07-2006 03:43 AM

Quote:

Originally Posted by Osterling (Post 1132875)
I am trying to put $vbulletin->userinfo['username'] into a variable named $username, however it isn't working. Here is my code, is there something I am missing?

$username = $vbulletin->userinfo['username'];


That should work as long as the page with that code includes global.php

You dont have anything else that uses the variable $username do you?
What happens if you name the variable something else like $member_name ?

svoec 12-07-2006 03:57 AM

I have one strange issue, when someone is logged out, and they log in (or if they click the log out link) -- it opens in a new window --
is that normal behavior ?

the plan I had for this makes it a look a bit strange...
thanks for the help

SunderlandJ 12-07-2006 09:36 AM

I need help....

please check http://gunge.gothic-craving.com/links.php for a demo

I had to remove chdir line as it wasnt finding a file, which kept causing errors, now when I use the login box, it logs me in, but the login box stays there and at the bottom of the screen it says "done, with errors on page"

I know nothing about php so I would appreciate some help here. I have no idea what im doing or anything :(

Leigh


All times are GMT. The time now is 02:07 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.01252 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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