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 08-16-2006 05:18 AM

Quote:

Originally Posted by grayloon
Since the chdir code must be first on the page, how do you handle the sending of headers (like cookies)?

As long as its all before any page output there shouldant be any problems.

Billspaintball 08-16-2006 05:21 AM

Quote:

Originally Posted by quadude
Something maybe worth mentioning is that to prevent script issues from happenning(due to path changes) You can do something like this:
Code:

$cwd = getcwd();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir($cwd);


Yeah I should have done that I spose.

Zidane007nl 08-21-2006 10:02 PM

Good hack, got it running successfully finally.
But when someone who is banned on my forums is watching the website and is still logged in they get the forum banned message (which doesn't look well).

Billspaintball 08-23-2006 03:39 AM

Quote:

Originally Posted by Zidane007nl
Good hack, got it running successfully finally.
But when someone who is banned on my forums is watching the website and is still logged in they get the forum banned message (which doesn't look well).

I will look at that and see if I can do something about that.

Sparky_s 08-25-2006 08:35 PM

Works perfect on 3.6.0.

I added a little code in the login_irc.php to inform users that they can proceed to the forums.

Code:

//Added by Sparky-s 25/08/06
echo "<a href=\"".$forumpath."index.php";
echo "\">";
echo "<font size=\"1\" face=\"verdana\">You may click to proceed to the forums.</font></a>
";

echo "<font size=\"1\" face=\"verdana\">You may also </font></a>
";

The last bit is to lead to the log out link.

I'm mainly using this as a cover page for users with access masks before they get to the forum.

I'm not sure it it has been altered already like this, as I couldn't be bothered reading 14 pages.:D

I assume I'm allowed edit the login_inc file?
Thanks.

Sparky

Bahawolf2 08-27-2006 04:20 AM

Can anyone provide me with any assistance ot my problem above?

When i try to login it ends up going to

link.com/support/forums/login.php

instead of link.com/forums/login.php

UtilityGeek 08-29-2006 09:29 PM

I'm using this script with no issues however when I close the forums down, any non-vb page with the global.php included on it gives me the forum down message. Is there a way to check this (forum up/down) and display something else instead?

Billspaintball 08-30-2006 06:00 AM

Quote:

Originally Posted by Sparky_s

I assume I'm allowed edit the login_inc file?
Thanks.

Sparky

Sure can!

Billspaintball 08-30-2006 06:03 AM

Quote:

Originally Posted by UtilityGeek
I'm using this script with no issues however when I close the forums down, any non-vb page with the global.php included on it gives me the forum down message. Is there a way to check this (forum up/down) and display something else instead?

Problem with that, is if your using your vB login so you can do access control on your site like many are, you will loose that access control.
You would have anyone including guests having unrestricted access.

ocdotcom 08-30-2006 10:06 PM

Thanks very much - Im having fun playing with this


All times are GMT. The time now is 10:55 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.01292 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (5)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