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)

imtwoods 08-20-2007 02:44 AM

This hack looks like it will work for my site, but before I try it, will it work with version 3.6.8?

Topuk 08-23-2007 07:29 PM

ok we have a version that will allow someone of a certain primary group to see the page like this:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "This is only visible to people in usergroup 6";}
?>

has anyone worked out how to do it with a secondary group? i.e. if they are members of 3 or 4 groups and the page is available to them as a secondary member??

txsbmw 09-04-2007 05:15 PM

Quote:

Originally Posted by Billspaintball (Post 1207023)
There is a guide on using this script with vBexternal right here
https://vborg.vbsupport.ru/showpost....&postcount=399


I have vbexternal, tried this fix but it still just redirects me back to the page after logging in and instead of it showing I am logged in, it shows the log in box. I have also checked my cookie settings as well. Running 3.6.8

Anyone know how to get it to work correctly?

wsdeluxe 09-20-2007 10:39 AM

I'm having problems with this.

I have my forums at domain1.com/forums/ and a site at site1.com

I've followed all the instructions and everything and its not working correctly. If I clear my cookies, I login and it redirects me to site1.com and shows me as logged in however in the address bar there is ?s= then the long session ID string. If I navigate to another page, this goes and I'm logged out.

Any idea whats going on here? I'm pulling my hair out over this! :(

The connection to the vB files is working, the redirect is working, but it is not setting the cookies correctly. I've tried the cookie domain as blank, .site1.com, .domain1.com and its just not working. It keeps me logged in on the forums, just not the site.

I've got root access so can modify any settings if needed (however I don't think its server-side related).

Thanks for your time & hard work.

imtwoods 09-22-2007 07:09 PM

Does anyone know if this hack will work with iframes? Specifically, it I have the login box and login detection code within an iframe (say login.php), and this iframe is part of index.html, if I enter my username/password in the login box, it seems to recognize that I've logged in, but it won't redirect me back to the main page, which is index.html. It seems to redirect back to my iframe page, login.php, which is not the behavior I want. Does anyone know how to make it redirect to the main page, index.html, which includes my login.php in an iframe? This is my first time using this hack.

Triky 10-16-2007 10:49 AM

I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>


jags2ooo 10-18-2007 12:41 PM

Hi, been using this for a while its great, wondering if its possible to allow additional user group members to access a certain page? Not only primary.

Snatch 10-18-2007 02:00 PM

Quote:

Originally Posted by Triky (Post 1361491)
I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>



The same Problems by me since I have upgrade to MySQL 5

Have you fixed it?

Triky 10-19-2007 07:04 AM

No man, I'm still waiting for a reply. :p

adonfun 10-22-2007 11:21 AM

Quote:

Originally Posted by Triky (Post 1361491)
I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>


ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');

should be something in the format of:

chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');


Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618

I had this problem before. After moving the code to the very top of any codeblock should solve it.


All times are GMT. The time now is 09:32 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.01266 seconds
  • Memory Usage 1,757KB
  • 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
  • (7)bbcode_code_printable
  • (3)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