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

Spinball 05-09-2006 10:59 AM

Quote:

Originally Posted by Spinball
I have posted a problem on the simple version of this hack but without any resolution.
Maybe someone here can help.
I've installed as instructed.
I have two websites on the same server. I want the forums login to be working on pages from a different website.
I have the other domain set in my forums to be allowed to post. And I have set the cookie domain to be blank.
When people log in, the action succeeds and the 'thanks for logging in' message pops up, but then I'm returned to the login screen. Not logged in.
It's possibly a cookie issue. But I don't have a clue how to fix this.
Can anyone help, please?

Further to this, there is no solution. Cookies can not be used by different domains. My solution was to change avplay.com to avplay.avforums.com. I.e. made the second website a subdomain of the first and it now all works.

However, I'm getting reports that people are being asked to log in every 15 minutes. Is this simply because they didn't click the 'remember me' button? Or is there something else going on?
Thanks folks

Billspaintball 05-09-2006 01:25 PM

Quote:

Originally Posted by Spinball
Further to this, there is no solution. Cookies can not be used by different domains. My solution was to change avplay.com to avplay.avforums.com. I.e. made the second website a subdomain of the first and it now all works.

However, I'm getting reports that people are being asked to log in every 15 minutes. Is this simply because they didn't click the 'remember me' button? Or is there something else going on?
Thanks folks

Is everyone having that problem or just a few people?

You could try adjusting your cookie timeout settings (they are set at 15min by default)
AdminCP -> vBulletin options -> Cookies and HTTP header options -> Time-out for cookie
I know this setting effects AdminCP timeout, it might do the same for users across a subdomain???

Martin64 05-12-2006 09:10 PM

Quote:

Originally Posted by erinys
Nopes, no profixes at all are being used :) and i just checked in phpmyadmin and the table "post" is there, with offcourse all the records/posts in it :S

About the javascript error.. i only get it @ work..
windowsxp
ie 6.0.2900.xxxx
dont know if my users are reporting the same.. never heard about it, and i only get this error at my work pc.. not at home :)
webserver is a linux one, but i dont know much more specs.

this is the error:
line 104
expected '('

weird thing is.. if i check the source, and line 104.. its an empty line..

====
<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == 'Gebruikersnaam') this.value = ''; size=10 />
line 104 is here
<br>Wachtwoord:<br>
<input name=vb_login_password type=password size=10 />

====

I'm getting the same error for when you're not logged in. When logged in it's fine. Just happens with IE, not Firefox. It's a minor but annoying issue. :p

EDIT: This is the line in login_inc.php that causes it:

PHP Code:

<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]'this.value ''size=10 /> 

Replace with:

PHP Code:

<input name=vb_login_username type=text id=navbar_username size=10 /> 

No more error. :)

erinys 05-15-2006 05:51 AM

What does that line do? is it safe to replace that?

Luigi^ 05-21-2006 01:01 PM

Blank, excused for my English but are Italian, I have a problem with this mod, practically once made login filler me to the page of login same and me new extension of the form to complilare to the place of the welcome message, where mistake?

my login page: http://pronostici.chorse.it/include/login_inc.php
my forum http://forum.chorse.it/forum/

the page test gives error to me to line 17 http://pronostici.chorse.it/include/test.php

line 17 is:
PHP Code:

 require_once(D:\Inetpub\vhosts\chorse.it\subdomains/pronostici/httpdocs/include/login_inc.php'); 

the formulations of the cookie are made your guide second

thanks

Luigi^ 05-21-2006 05:13 PM

sorry i have misses a ' at line 17

pokerie 05-23-2006 08:36 AM

I'm getting this error too:

Fatal error: Call to a member function on a non-object in /path/to/my/forums/login_inc.php on line 150

(I've changed the path to the forum in this message)

Thanks

EDIT: Nevermind, managed to fix it. I finally learned exactly what I was doing when using chdir and used this instead of using absolute paths. This seems to have fixed it.

Best mod I've found so far by the way!!!
Thanks again!!!

Billspaintball 05-24-2006 01:08 AM

Quote:

Originally Posted by pokerie
Best mod I've found so far by the way!!!
Thanks again!!!

Thanks!! :D

Yukino_AE 05-24-2006 06:02 AM

Quote:

Originally Posted by pokerie
I'm getting this error too:

Fatal error: Call to a member function on a non-object in /path/to/my/forums/login_inc.php on line 150

(I've changed the path to the forum in this message)

Thanks

EDIT: Nevermind, managed to fix it. I finally learned exactly what I was doing when using chdir and used this instead of using absolute paths. This seems to have fixed it.

Best mod I've found so far by the way!!!
Thanks again!!!

can someone explain how to fix this... cuz i have the same problem. thanks. ^_^

C.Birch 05-27-2006 11:54 AM

I have a few errors,

First i get the following database error.

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT COUNT(*) AS count FROM post AS postLEFT JOIN threadread AS threadread ON (threadread.threadid = post.threadid AND threadread.userid = 1) WHERE dateline >= 1148732430 AND dateline > IF(threadread.readtime IS NULL, 1148301836, threadread.readtime);

MySQL Error : Unknown table 'post' in on clause
Error Number : 1109
Date : Saturday, May 27th 2006 @ 12:43:56 PM
Script : http://www.lisascottlee.com/test.php
Referrer :
IP Address :
Username : LSL Webmaster
Classname : vb_database



The next error is the avatar dont show it outputs the following what is surely not right.

<img src="http://forums.lisascottlee.com/image.php?u=1.1" align="middle" border="0">


All times are GMT. The time now is 06:30 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.01632 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_php_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