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)

C.Birch 05-27-2006 02:09 PM

avatar error is only when using a av uploaded via admin cp. using your own uploaded from pc via user cp shows up.

erinys 05-29-2006 06:18 AM

C.Birch

Thats the same error i get when i switch the way my forum handles "read posts" etc? when i switch from cookie to database thats the error i get

bill: have you been able to nail this problem yet? cause i still want to switch to database on my forum, and this is preventing me from doing such ;(

C.Birch 05-29-2006 06:33 AM

I have removed the database error by removeing the the part of code that outputs the new posts.

Teenfrontcouk 05-29-2006 11:57 AM

hey, iv installed this and it all looks ok, expecpt from when i actually type in my login details, it tells me that i entered wrong details.... but i havent. and oddly enough the failed login attempts stays at 0 of 5 attemps, every time i try to login.. any ideas?

Billspaintball 05-30-2006 12:46 AM

Quote:

Originally Posted by C.Birch
avatar error is only when using a av uploaded via admin cp. using your own uploaded from pc via user cp shows up.

I see you have a user ID that is just plain weird.
u=1.1

I will see if I can replicate it on mine and go from there.

Billspaintball 05-30-2006 12:49 AM

Quote:

Originally Posted by erinys
bill: have you been able to nail this problem yet? cause i still want to switch to database on my forum, and this is preventing me from doing such ;(

Not yet, but to be honest I havent spent much time looking at it.
Ive been working on another hack. Sorry :(

I cant see what is why that SQL statement throws up that error, but I think I can approach this problem from another angle with a bit of a rewrite.
No timeframe, but it will be quite soon, Ive nearly finished the other project.

Billspaintball 05-30-2006 12:51 AM

Quote:

Originally Posted by Teenfrontcouk
hey, iv installed this and it all looks ok, expecpt from when i actually type in my login details, it tells me that i entered wrong details.... but i havent. and oddly enough the failed login attempts stays at 0 of 5 attemps, every time i try to login.. any ideas?

Sounds like a cookie problem maybe.
Have you tried doing the troubleshooting in post 2 of this thread yet?

Teenfrontcouk 05-30-2006 05:00 AM

hey there, yeah i have. I changed the settings in admin panel, but then it wouldnt let me log out at all.

its odd, if i log in from the forums, it works fine, its just when i login from outside the forum, i had this working like a week ago, but i changed my site design and reinstalled this hack, and now it just doesnt seem to want to work..

i have everything set up and the login code does work and it shows me as logged in, but only if i login from the forum.

just tried it again this morning on a different pc, and it takes me to the wrong username and password page..any ideas?

Teenfrontcouk 05-30-2006 05:22 AM

hi sorry to post twice - i did that tesp.php page you suggested in the troubleshooting part...it logged me in fine...no errors and it worked.

but where i actually want it to work, it doesnt.

heres my site code details :

I have an included header in all content pages so the top part of the site is the same on all pages, in that header file i have the login_inc code.

but i have no other php code or anything to do with cookies at all in my header file..its just html and then this vb simple login stuff.

im confused as to why its working with the test page, but not where i want it to work..

erinys 05-30-2006 07:15 AM

Wicked bill, ill wait for that option :) thanks a lot!!

Teenfrontcouk 05-30-2006 03:12 PM

...ignore me...i had to mess about with file includes and requires etc, got it working now though. thanks!

pokerie 05-31-2006 02:30 PM

Hi,
Thanks for this great mod! Really helped me out.

Coupla things:

Is there any solution to IE expecting a '(' and showing 'done but with errors' yet??

Also I'm using the login box not only on my non-forum pages, but within my forum template too. Works great, apart from the private messages - doesn't show whether you've got any or not. Any idea what might be causing this? I'm guessing I don't have to include global because it is a forum page so must already have it allowed.

Also, when I logout in a forum page, the login_inc ends up a step behind. eg. I logout but login_inc shows me as still signed in til I refresh.

Any help with these minor quirks would be great!

Thanks

Wolfy834 06-01-2006 01:12 AM

It doesn't work with files in different directories. I'm using a header file, where the global.php include comes in. I use the header file throughout my site. However, I get an error similar to erinys (page 2):

Code:

Warning: main(administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33

Fatal error: main(): Failed opening required 'administrator/components/com_smf/config.smf.php' (include_path='.:/usr/local/lib/php') in /home/6304/bunnybunch.nl/HTML/templates/247portal-b-grey/index.php on line 33

(thats his error code) This is using the chdir() function. Is there another way to get the global.php (and the include inside of it) to work properly throughout various directories without having to go through each file and changing it manually?

Delor 06-03-2006 12:09 AM

Ok so I have a quick question if a user is banned on the forums is there a way to carry over so they cant see whats on the page we put this login on?

zell_11 06-03-2006 06:17 PM

I have got the error

Quote:

Fatal error: Call to a member function on a non-object in /home/zsstudio/public_html/login_file.php on line 145
Does anyone know how to fix it

Billspaintball 06-04-2006 05:31 AM

Quote:

Originally Posted by Delor
Ok so I have a quick question if a user is banned on the forums is there a way to carry over so they cant see whats on the page we put this login on?

Sure can. :)
Have a look at the usage guide on post 2 of the first page.
https://vborg.vbsupport.ru/showpost....49&postcount=2
Just change the conditionals in the example to suit.

Billspaintball 06-04-2006 06:58 AM

Quote:

Originally Posted by C.Birch
avatar error is only when using a av uploaded via admin cp. using your own uploaded from pc via user cp shows up.

I havent been able to replicate this.

Anyone else getting this error?

Billspaintball 06-04-2006 07:16 AM

NEW UPDATE
Version 2.1 has been released to fix 2 reported issues.
It is recommened to update.

The current login_inc.php here is the revised version.

Changelog

Version 2.10 (4th June 2006)
  • Fixed - "MySQL Error : Invalid SQL " when using Database thread/forum marking.
  • Fixed - Javascrip error in some versions of IE.

C.Birch 06-04-2006 07:55 AM

Quote:

Originally Posted by Billspaintball
I havent been able to replicate this.

Anyone else getting this error?


Only get the error when using Pre-defined Avatars that are saved in the database, output of Custom Avatars works fine :)

BTW could you add the following.

1) output of total members.
2) output of the newest member.
3) output of user joined date.
4) output of user age.

I tryed adding echo "<b>$vbphrase[age]:</b> $post[age]<br />"; for the age put it only put out the phrase.

arossphoto 06-04-2006 01:56 PM

Quote:

Originally Posted by Billspaintball
Fixed - "MySQL Error : Invalid SQL " when using Database thread/forum marking.

Ah hah! I was getting this error and had no idea where it was coming from or what was causing it. I posted questions over at vb.com and they suggested it was probably caused by a hack or mod, but I had no way of knowing which one. I will try upgrading later today and hopefully it will fix this problem.

Thanks for the update.

pokerie 06-05-2006 09:17 AM

Hi again,

Thanks for the latest update - nice to see that it loads without errors in ie now!

I still have the minor issue that where I've used the login_inc on actual forum pages everything works great except for pm's aren't displayed. Any idea what could be causing this? This doesn't happen on non forum pages, login_inc works perfectly.

The other issue I'm having is that when you click logout it shows that you're still logged in until you do a second refresh of the page. Anything that can be done to sort this?

Thanks.

erinys 06-06-2006 06:55 AM

Thanks a lot bill for the update!
Its working perfectly as far as i can see ;)

Billspaintball 06-06-2006 10:54 PM

Quote:

Originally Posted by pokerie
I still have the minor issue that where I've used the login_inc on actual forum pages everything works great except for pm's aren't displayed. Any idea what could be causing this? This doesn't happen on non forum pages, login_inc works perfectly.

Ive only used this on non forum pages.
I cant really see the point of having it in the actual forums, it seems redundant having it there.
Quote:

The other issue I'm having is that when you click logout it shows that you're still logged in until you do a second refresh of the page. Anything that can be done to sort this?
I think thats more browser dependant than anything.
Ive noticed that sort of behaviour in (either Opera or Firefox) but IE was fine.
You are still logged out either way, if you try and go somewhere that requires you to be logged in you will see this.

pokerie 06-07-2006 09:22 AM

I know what you mean that it seems redundant, but I'm using the login in the header of the site that is also there when I go to the forum.
My client has requested that I continue the login in the header throughout the site, including forum pages.

I also use vBa CMPS and have the same problem on the pages making use of it.

Now do you see why I want to use it on the forum pages?

As for the other issue, I agree that it's browser dependant and doesn't really matter. My client pulled me up on it that's all, but it doesn't really matter.

Billspaintball 06-08-2006 04:48 AM

Quote:

Originally Posted by pokerie
I know what you mean that it seems redundant, but I'm using the login in the header of the site that is also there when I go to the forum.

OK, makes more sense now :)

Off hand I dont know why it just does not show PM's on those pages.
I have a couple of suspicions and will have a look.

Billspaintball 06-08-2006 11:22 PM

Confirmed working on vB 3.6 Beta 1
:D

jangus74 06-12-2006 03:01 PM

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)

I get this message above when I dont put in the chdir code.

I tried putting in the chdir lines but then I get a "headers already sent" fatal error. I checked for white space above the line as suggested and there is none. The paths I am using are correct. (When they were not, I was getting a file not found error)

Here is the message about headers:

Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/whatta/public_html/index.php:15) in /includes/functions.php on line 2394

Any ideas? I'm using vb 3.5.4

UPDATE: NEVER MIND! FOUND PROBLEM:
I was using include
instead of require_once when calling the login script....
Apparently thats a no-no.....

Billspaintball 06-13-2006 04:41 AM

Quote:

Originally Posted by jangus74

UPDATE: NEVER MIND! FOUND PROBLEM:
I was using include
instead of require_once when calling the login script....
Apparently thats a no-no.....

Yes if you include a file twice it can cause all sorts of problems.
Using require_once like I have in the instructions prevents this problem from happening.

Rambo 06-17-2006 08:49 PM

Hey,

I managed to install this mod successfully, but i have a problem with the avatars.

I get the following error

Quote:

getimagesize(http://forum.ctrlalt-designs.net/image.php?u=1): could not make seekable - http://forum.ctrlalt-designs.net/image.php?u=1 in /home/ramboulw/public_html/login_inc.php on line 34
The avatars are in a folder called "customavatars".

Thanks!

p.s. is it possible to add the amount of members on the forum also in the stats part?

Billspaintball 06-19-2006 04:33 AM

Quote:

Originally Posted by Rambo
The avatars are in a folder called "customavatars".

Did you change any setting in the vB admin CP so that it will get the avatars from that folder?
Quote:

p.s. is it possible to add the amount of members on the forum also in the stats part?
Maybe.
I will have a look and see how currently active users are done.

Rambo 06-19-2006 12:39 PM

Quote:

Originally Posted by Billspaintball
Did you change any setting in the vB admin CP so that it will get the avatars from that folder?

Maybe.
I will have a look and see how currently active users are done.

Nope, the only thing i did was have the avatars move from being uploaded into the database and had them moved to a custom directory, nothing changed other than that.

hurry 06-25-2006 10:16 AM

Hello. Please please help. I put it on a page. When I login, it shows the forum message that I am logged in but then again takes me to the same page without being logged in. I have already set the Path to Cookies -> Suggested Settings to / and tried vice versa also and tried firefox and opera but still gives the same problem. Awaiting your kind reply.

Billspaintball 06-27-2006 10:56 PM

Quote:

Originally Posted by Rambo
Nope, the only thing i did was have the avatars move from being uploaded into the database and had them moved to a custom directory, nothing changed other than that.

Ive been playing round with my test forums and I cant replicate this problem.

Anyone else experience this?

C.Birch 06-30-2006 09:43 AM

every now and then after reloading the page i get the message:

Unable to add cookies, header already sent.

this stops to i close the and then reopen then its fine again.

im guessing its a prob with my site coding.

revlisoft 06-30-2006 04:54 PM

Great mod. I have finally integrated this fully with eqdkp and vb! :)

aceofspades 07-01-2006 08:12 AM

Please please help me, im a newbie :(

My forum is here: www.hiven.net/forum
My test.php file is here: www.hiven.net/test.php

Im getting this error:
Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/hiven48/public_html/test.php on line 2

Warning: main(/forum/global.php): failed to open stream: No such file or directory in /home/hiven48/public_html/test.php on line 3

Fatal error: main(): Failed opening required '/forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hiven48/public_html/test.php on line 3
Here is the contents of my test.php file:

Quote:

<?php
chdir('/forum');
require_once('/forum/global.php');
?>
<html>
<body>
This is a heading<br />
This is some more stuff <br />
And another line<br />
You get the idea<br />
Just place stuff as you normally would with HTML<br />
I use CSS to style and position on my site fwiw<br />
<br />
How about we put the login box right under here?<br />
<br />
<?php
require_once('/login_inc.php');
?>
</body>
</html>
Here is the forum path in my login_inc

Quote:

<?php
// Edit the lines below to show path to your forums
$forumpath = "http://www.hiven.net/forum/";

Many thanks for any help you can give!

C.Birch 07-01-2006 09:02 AM

try using the full path eg:

<?php
chdir('/home/****/public_html/');
require_once('/home/****/public_html/global.php');
require_once('/home/****/public_html/test/login_inc.php');
?>

aceofspades 07-01-2006 09:53 AM

I love you!

It worked, im uber happy now, thank you :banana:

Mr_Bob 07-05-2006 02:49 AM

Quote:

Originally Posted by Billspaintball
I see you have a user ID that is just plain weird.
u=1.1

I will see if I can replicate it on mine and go from there.

Just wondering if this has been thought of/fixed. I've experienced this same issue and for the time being simply removed the avatar code to get rid of the blank image IE users are receiving.

Besides that little issue though this is a great mod, makes my life much easier :).

Billspaintball 07-06-2006 01:16 AM

Quote:

Originally Posted by Mr_Bob
Just wondering if this has been thought of/fixed.

Not fixed as of yet.
I will post here if/when I come up with a work around.


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.01536 seconds
  • Memory Usage 1,850KB
  • 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
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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