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)

Jon. 10-06-2006 04:12 PM

Hello

Having problems with it logging me in. I've got my forum at thecarforum.net, and this page at imagecan.net. Both the forum folder and the imagecan folder are in my public html folder.

All logs in fine, but it just can't remember me. I log in and then it's forgotten about it. My cookie domain and path are both set to blank. Any ideas?

TosaInu 10-07-2006 09:55 PM

Thanks for the examples Billspaintball, they really helped me out.

Now I'm about to add a link into a template and I run into another problem. Normally <a href ="http://domain/vb/script.php" target="_blank">Script</a> works without problems. But when using something like that on a log page I just get a new blank screen that says about blank.

Just calling the page directly in the browser works fine. I tried things like ?[sessionurl], but that doesn't work. How to call a page inside a template?

There's at least a problem with the trailingslash in forumpath and
Code:

// If logged in display logout link
echo "<a href=\"".$forumpath."login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash";

in login_inc.php
forumpath should not have trailing and logout
Code:

// If logged in display logout link
echo "<a href=\"".$forumpath."/login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash";


TosaInu 10-10-2006 08:16 PM

Seems to be a browserissue, it also happens when the link to the login protected PHP is posted in a forumtopic. Firefox opens the page, but IE gives the about blank page. When looking closely, it actually requests the script URL but quickly procedes with the about blank page.

johnn 10-15-2006 08:39 AM

Quote:

Originally Posted by Billspaintball
Try this.
It should change you back to the origional directory.

PHP Code:

<?php  
$curdir 
getcwd (); 
chdir('/path/to/your/forums');     
require_once(
'/path/to/your/forums/global.php');  
chdir ($curdir); 
?>


PS, if this works and you use this hack please click instal :)


That all worked for me, but when I attempt to use one of the php scripts I wrote, it isn't letting this script insert data into my MySQl database. It's an information script. It'll read the data from the mysql db just fine, but when I try to use a webpased php form to submit/edit information to my DB it doesn't work.

I don't get any PHP errors, it just.....doesn't work..Lol.

When I remove all the chdir things and forum inclusions for my login/page restrictions it works just fine.

Any thoughts on this?

masss 11-01-2006 01:43 AM

Ok now if this would just work with the new forums

wingVTA 11-01-2006 06:41 AM

Hi guys....

I get a problem tryig to incorporate this script!!

I actually get this problem with a lot of scripts!!

Quote:

Notice: Undefined index: REQUEST_URI in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1907

Notice: Undefined index: REQUEST_URI in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1907

Notice: Undefined index: PATH_INFO in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1913

Notice: Undefined index: PATH_INFO in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1913

Notice: Undefined index: REDIRECT_URL in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1917

Notice: Undefined index: REDIRECT_URL in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1917

Notice: Undefined index: HTTP_REFERER in C:\Sites\Single30\vtamundane\webroot\forum\include s\class_core.php on line 1574
Welcome Back, =VTA= teh-wing !
Log Out
^^ But as you can see, it knows who I am and I am logged in!!!

So the code is working!!

The problem is with using the global.php

I have tried adding "define('SKIP_REFERRER_CHECK', true);" to the login.php in the forum, but this does not help with anything...

Does anyone know what is causing this to go wrong, and if there is a way to fix it??

Cheers

wing

Billspaintball 11-02-2006 12:58 AM

Quote:

Originally Posted by masss
Ok now if this would just work with the new forums

New forums?

You mean vB 3.6.x ?
If so, it works fine with 3.6.1 (Havent tested with 3.6.2 but should work)

masss 11-12-2006 08:19 PM

ok what gives man

Unable to add cookies, header already sent.
File: /home/animelib/public_html/index.php
Line: 1

Billspaintball 11-15-2006 11:33 PM

Quote:

Originally Posted by masss (Post 1115681)
ok what gives man

Unable to add cookies, header already sent.
File: /home/animelib/public_html/index.php
Line: 1

The first item in the troubleshooting guide is your friend.
https://vborg.vbsupport.ru/showpost....98&postcount=2

You have some whitespace or html before a couple of lines.

dklassen 11-24-2006 08:21 PM

Got it installed ok and it seems to be working except for the fact that when I put in my user name and password it takes me to my forum but doesn't log me in. Any thoughts? I'm running 3.6.3


All times are GMT. The time now is 01:06 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.01320 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (4)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