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)
-   -   Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=100992)

Billspaintball 04-24-2007 02:54 PM

Updated
  • Fixed - // in paths bug
  • Fixed - Javascript warning in some browsers
  • Fixed - Tidied up some code
  • Fixed - Avatar display code bug

Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues.

Emma 05-02-2007 09:25 PM

This is exactly what I was looking for! One question though, what if I want the user to be redirected to the main page (the non-vb page where the login is) after the login instead of the forums homepage. What would I need to change?

Billspaintball 05-02-2007 11:02 PM

Quote:

Originally Posted by Emma (Post 1240113)
what if I want the user to be redirected to the main page (the non-vb page where the login is) after the login instead of the forums homepage. What would I need to change?

They are redirected back to the page they logged in from.

Emma 05-02-2007 11:14 PM

It's taking me to the forum home page though instead of back to the site's index page. :\ Any thoughts?

powerbook 05-03-2007 08:56 PM

I get logged on when I hit the"logon" button on the custom site page. It temporarily redirect me to the VB login.php page and recognizes me and says welcome in the VB splash screen.

It then redirects me back to the page I logged in from with the same login box as if I haven't logged on. If I run the code below on it's own it works properly and takes me back to the page I used for logon and welcomes me without the login text boxes.

1) Any idea what might be causing this,
2) Can you specify where it should redirect to if you don't want to be redirected to the logon page again?

Thanks

Quote:

<?php
$curdir = getcwd ();
chdir('/home/XXX/public_html');
require_once('/home/XXX/public_html/global.php');
chdir ($curdir);
?>
<html>
<body>
This is a heading<br />
This is some more stuff <br />
And another line<br />
You get the idea<br />
Just place stuff as you normally would with HTML<br />
I use CSS to style and position on my site fwiw<br />
<br />
How about we put the login box right under here?<br />
<br />
<?php
require_once('/home/XXX/public_html/test/login_inc.php');
?>
</body>
</html>

Emma 05-29-2007 03:59 AM

Still need some help with this myself. Also, I'm placing this code on all of my external forum pages, and while it shows me logged in on the main one, if I go to another page, it shows up saying I need to login again. Is there something I need to do with the cookies that I'm not aware of?

ZomgStuff 06-26-2007 04:47 AM

I'm having problems with 3.6.7 PL1

I'm seeing this at the very top of my external page, but everything else works.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2

CP, 07-05-2007 05:48 PM

Great hack ive installed it.. i just have a small query.. i would like my users to login and be redirected to a custom php file ive made, a page for members at the same time i would like the forum and user login session to be still active...

Cheers!

ApplePro 07-09-2007 12:03 PM

Hello guys,

When I run sample script (test.php), I'm getting an error about headers:

https://vborg.vbsupport.ru/

I've checked script and there are no spaces before first 4 lines of code.

By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this:

https://vborg.vbsupport.ru/

How can I fix this?

PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread).

beejeebers 07-21-2007 05:32 PM

This works wonderfully, but one question. How would I pull the password value out before it gets encrypted? I need that value for my main site's login script which I'm calling from login.php for the forums.

Any ideas?


All times are GMT. The time now is 11:15 AM.

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.01486 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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