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)

Omario24 03-23-2006 09:42 PM

Quote:

Originally Posted by johnn
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.

I am having the same problem.

idwf 03-24-2006 08:32 PM

Please see post #32

I've allready reported this and he say's he's working on it :)

robert pleban 03-30-2006 08:17 PM

Quote:

Originally Posted by dkleehammer
I'm getting this error wether I'm logged into the forums already or not:
Fatal error: Call to a member function query_read() on a non-object in /var/www/html/forums/includes/login_inc.php on line 139

This is all running on localhost. Am I missing something?

I have the same problem :(

Sean James 03-31-2006 06:48 AM

ive used the fix from post #12 and now i get this error:

Invalid SQL:
UPDATE session SET newposts = '' WHERE userid = '3';

any ideas?

RcMannAE86 04-06-2006 06:47 AM

My users' avatars won't show up. When I go to the src they are coming from such as http://test.xtremecoastin.com/forum/image.php?=1.1 , I get no avatar. The title of the page says image.php (GIF Image, 1x1 pixels).

Quote:

Originally Posted by johnn
Anything on the PM issue? I get nothing when I get a new PM. I see it on my board, but not on my site's index page.
Quote:

Originally Posted by Omario24
I am having the same problem.


Try using this:
PHP Code:

echo "You have ";
    if (
$vbulletin->userinfo['pmunread'] == '0') {
    echo 
"(<a href=\"".$forumpath."/private.php\">0</a>) new messages since your last visit.<br>";
    } else {
    echo 
"(<a href=\"".$forumpath."/private.php\">";
    echo 
$vbulletin->userinfo['pmunread'];
    echo 
"</a>) new messages since your last visit.</p>";
    } 

Hope that helps you.

wackyjoe 04-06-2006 10:17 AM

Hi there i keep getting this:

Fatal error: Call to a member function on a non-object in /home/cfadmin/public_html/cubicforum/global.php on line 22

i dont know how the other guy fixed it

erinys 04-06-2006 10:36 AM

Update: When i change the way the forum works with "read" posts to Database, the addon breaks with the error discussed on the 1st page ;(

brad_irc 04-10-2006 03:10 AM

Does anyone know a method to implement a login timeout similar to the admin panel with this hack/script? Another question thats unrelated, but, where can I find out whats listed in $vbulletin and/or $vbulletin->userinfo ?

Billspaintball 04-16-2006 03:34 AM

Version 2.00 has now been released.

Please make sure that you have downloaded and installed version 2.0 before posting any support requests.

Any downloads prior to now will have been version 1.00.
The first post has been updated with the new files and instructions.

moethelawn 04-17-2006 02:43 AM

I installed the new version. I checked it out on IE and if you're not logged in, it gives me a "Done, but with errors on page" in the status bar at the bottom. It says for the error:

Line: 27
Char: 1
Error: Expected '('
Code: 0

Otherwise, it's really good ^_^

arossphoto 04-22-2006 01:33 AM

Hi Bill,

I noticed on your site that the forum stats include total members, as well as total posts and topics. I don't get that with this hack. Is there a way to add total members?

Thanks.

Billspaintball 04-22-2006 08:13 AM

Quote:

Originally Posted by moethelawn
I checked it out on IE and if you're not logged in, it gives me a "Done, but with errors on page" in the status bar at the bottom. It says for the error:

Line: 27
Char: 1
Error: Expected '('
Code: 0

A couple of other people have reported this, but I'm unable to replicate it.
I've tested it in Avant, IE6, Opera 8.54 and 1.5.0.2

What version of IE and what OS are you running?

Also, have you tried just the sample code in the trouble shooting section in post 2 in this thread?

Billspaintball 04-22-2006 08:15 AM

Quote:

Originally Posted by arossphoto
Hi Bill,

I noticed on your site that the forum stats include total members, as well as total posts and topics. I don't get that with this hack. Is there a way to add total members?

Thanks.

Yes, I can add it next release.

Jay... 04-22-2006 04:11 PM

How do i edit the way this looks? like the font used, size, layout etc etc?

Billspaintball 04-23-2006 10:50 AM

You edit the login_inc.php file and add CSS or HTML as desired.

Jay... 04-23-2006 11:18 AM

Quote:

Originally Posted by Billspaintball
You edit the login_inc.php file and add CSS or HTML as desired.

bit too advanced for me lol

Spinball 04-30-2006 04:09 PM

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?

erinys 05-04-2006 10:23 AM

im still getting that error when i switch from "cookies" to "database" in the vbulletin options, even with the new version.. ;(

only it talks about "posts" instead of "newposts" as error argument

erinys 05-04-2006 10:24 AM

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 = 2) WHERE dateline >= 1146735048 AND dateline > IF(threadread.readtime IS NULL, 1145877724, threadread.readtime);

MySQL Error : Unknown table 'post' in on clause
Error Number : 1109

Billspaintball 05-05-2006 12:36 AM

Quote:

Originally Posted by erinys
MySQL Error : Unknown table 'post' in on clause
Error Number : 1109

I will have a look at this over the weekend.

erinys 05-05-2006 08:01 AM

Thanks, cause i really wanna switch to database handling of read posts etc :)

btw im also getting the javascript error, with the old and new version when someone is logged out.

if you wanna check it yourself;
http://www.bunnybunch.nl

Quarterbore 05-05-2006 11:41 AM

I have a project that this may work with... Thanks for sharing this and I hope to try using it this weekend... :knockedout:

Paprika 05-05-2006 08:16 PM

Edited:
Bah Nevermind!

Billspaintball 05-06-2006 11:17 AM

Quote:

Originally Posted by erinys

MySQL Error : Unknown table 'post' in on clause
Error Number : 1109

Now that is just a weird error.
'post' is a standard vB table so it should be there.

umm... just a thought, are you using a table prefix for your forums?
It should still work for that, but I dont have a prefixed forum to test it on.

Billspaintball 05-06-2006 11:24 AM

Quote:

Originally Posted by erinys
btw im also getting the javascript error, with the old and new version when someone is logged out.

if you wanna check it yourself;
http://www.bunnybunch.nl

This javascript error that is appearing for a couple of people is driving be :banana: as I cant replicate it on my live or test forums in Firefox, IE6, Opera 8.54 or Avant.

What OS are you using?
What browser (and what version) are you using?
What webserver are you using?
Are your users reporting the same error or just you?

erinys 05-08-2006 08:56 AM

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 />

====

Billspaintball 05-08-2006 11:12 PM

Quote:

Originally Posted by erinys
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 :)

At a guess its probably a firewall or javascript restriction that your work has implemented. Which would explain why this problem is only reported by a couple of people.

Quarterbore 05-09-2006 01:40 AM

I am just starting to play with the code but I got this error...

Fatal error: Call to a member function on a non-object in /home/SERVER/public_html/DOMAINFOLDER/forums/login_inc.php on line 150

I called the file from inside another script using the following line:

include("../forums/login_inc.php");

Now, when I enter my forums username and password I am getting signed into my forums but when it returns to the script I never see the rest of the file where I tried to use the include from...

I am still trying to figure it out though...

The line of code that is causing the error is this:

Code:

$getstats = $db->query_read('SELECT threadcount, replycount FROM ' . TABLE_PREFIX . 'forum');
EDIT:

OK, I removed all the code after:

Code:

// +++++++++++++++++++++++++++++++++++++++++++++++++++
// we want do display stats either way so they go here
// +++++++++++++++++++++++++++++++++++++++++++++++++++

Now I can see if I can get my usergroups to cover the permissions needed for the other script... What I am trying to do is integrate the following program with vBulletin using your hack as a starting point:

http://lythgoes.net/genealogy/software.php

Billspaintball 05-09-2006 04:07 AM

Quarterbore,
Combining two scripts can at times be very problematic.
I suggest that you try the simple version of this script https://vborg.vbsupport.ru/showthread.php?t=100992 and see if you can get that working first.

Also, I recommend trying just the test login listed in part five of troubleshooting (post 2), to rule out any thing besides a clash between this script and the other one.

If we can get the basic one working, then we can work on finding out where the problem is here.

erinys 05-09-2006 05:48 AM

Aye billspainball, i think so too, its a weird problem

Do you get an error btw if you switch the way your forum handles "read" posts?

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 01:34 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.02497 seconds
  • Memory Usage 1,859KB
  • 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
  • (4)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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