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)

JimmDaBimm 09-15-2007 06:36 PM

hey, works fine on a 3.6.8 vB too, thanks a lot !

llskipper 10-29-2007 11:18 PM

Hello, fantastic script. But I'm having a few problems. First off, I'd just like to note that my forums is located in a directory called "forums". The script will show me logged in for about 3 minutes or less, and then will show me as logged off; but still logged in on the actual forums. My site is coded like so:

Code:

<?php include("header.php"); ?>CONTENT GOES HERE<?php include("footer.php"); ?>
The only difference is the main page where I also have another include placed in for CuteNews. Nothing special.

Naturally, I put the (with my directory settings, obviously)

PHP Code:

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

in my header.php file seeing as that is the beginning of all my html. With this said, I've went through all of the trouble shooting advice in the txt file with no improvement as of yet.

Please help, thanks.

troykristoffer 11-14-2007 03:54 AM

Quote:

Originally Posted by Thorlax402 (Post 1305876)
Hello,

I have been having a lot of trouble with getting this modification to work. I have read of numerous people having the same problem as well. I read to about page 13 before I gave up and decided to post (sorry if this was fixed between here and there).

Anyway, my login box appears to work fine in all aspects accept actually logging in. After typing in my username and password, I am sent to the page saying I have successfully logged in. However, I am then redirected back to the page with the login only to find that I am in fact not logged in. The same thing happens when I try to log out using this script as well. Everything appears fine, but I don't log out.

On the other hand, the login box reflects perfectly whether I am actually logged in or not. It can tell if I have logged in on the forum's login page and reacts accordingly. It just can't perform any of the operations itself.

I have also read through the troubleshooting and the changing the cookie information didn't change anything.
Any suggestions?

I also have this problem in 3.6.8. Changing the cookie path didn't work and I just locked myself out of my forums and had to use the tools. I tried mydoman.com, mydomain.com/, www.mydomain.com, and www.mydomain.com/ but nothing worked. (It's already defaulted to "/"

Also, I can't style anything in the login form even when it says "you can style this with CSS or HTML" It breaks the form and throws back a bunch of errors about
Quote:

unexpected "." or ";" on line ###
even though there ARENT any of those anywhere. I suspect that it means unexpected " since those are around all the styles, and its just a poor error message, but still, I can't style it :) It would also be helpful if I could move the login components around in a table to make them line up attractively :)

Finally, Unless I COMPLETELY remove most of the new posts stats code at the bottom of the login_inc.php file, I get this error:

Quote:

Fatal error: Call to a member function on a non-object in /home/content/p/r/u/pruytadmin/html/forum/login_inc.php on line 150
The login form still works (other than not displaying you as logged in, as described above.) but its just got this error message under it. I basically have to remove EVERYTHING from the bottom up to the end of the login form.

[Edit: I notice you told another user with this error:
Quote:

Originally Posted by Billspaintball (Post 1085068)
Login_inc.php should not be in the /forums directory.
Or, you have the path entered wrong.

Thats where the instructions say to put it?
Quote:

Originally Posted by From the TXT Instruction file:
<?php
require_once('forum/login_inc.php');
?>

Other than that, it just says "Upload it to your site."

If thats not where it goes, then where? Also it's obvious by the error message that it is accessing the file successfully, theres just a problem with the line 150.




Thank you for all the hard work, and I'm sure these are simple fixes. I just need some help to get it working I thinks.

-Troy

Bradley_Wint 12-11-2007 12:36 AM

For those who are running vBExternal and this mod or the Simple Login Mod, and are running any version of vb 3.6.x, well I came up with a simpler solution to have both run simultaneously.

To prevent a conflict:

1) You need to create a separate blank page just to display the news feed from the vBExternal source. Make a blank page (e.g. newsfeed.php)

Set it up for vbexternal by inserting the pull code at the very top of your HTML code before the header and all that...

Code:

<?php
chdir('./forum');
require_once('./vBExternal.php');
?><HTML>

adjust to suit the path of your forum

2) Insert within the <HTML></HTML> tags, whatever you would like to display, whether it be news, last ten posters, etc.

e.g.
Code:

<?php
output_News4(10,56);
?>

3) Go to your home page now or wherever you are displaying the news for the public to see (where the login script also exists and put:
Code:

<? include("http://www.yoursite.com/path/to/newsfeed.php"); ?>
Note that you will be setting up the page (with the login script) with the regular code included in the Deluxe Login Mod instructions.

4) Enjoy News and Login without complications. I will be posting a demo within the next day or so when I reorganize my site.


Live Demo at http://www.grandtheftcentral.com/

rwoscott 12-18-2007 08:19 PM

Quote:

Originally Posted by Thorlax402 (Post 1305876)
Anyway, my login box appears to work fine in all aspects accept actually logging in. After typing in my username and password, I am sent to the page saying I have successfully logged in. However, I am then redirected back to the page with the login only to find that I am in fact not logged in. The same thing happens when I try to log out using this script as well. Everything appears fine, but I don't log out.

On the other hand, the login box reflects perfectly whether I am actually logged in or not. It can tell if I have logged in on the forum's login page and reacts accordingly. It just can't perform any of the operations itself.

I have also read through the troubleshooting and the changing the cookie information didn't change anything.
Any suggestions?

I'm in the same boat, the login, doesn't actually appear to log you in. But if I log in via the forum login it works fine.

EDIT It now works, I simply moved the login_inc.php to the root directory, where my test page is and I now log in (and out) successfully. Yeh me!!

PS: Thanks for the mod.

C.ooder 12-19-2007 02:14 AM

Thank you :)

jcrogel 12-20-2007 07:13 PM

Sorry I am using 3.6.8 and I only uploaded this page hoping that it would display an empty page but looks like somewhere the main object is becoming null

This is my page:
Quote:

<?php
$curdir = getcwd ();
chdir('/var/www/vhosts/mysite.com/httpdocs/forum');
require_once('/var/www/vhosts/mysite.com/httpdocs/forum/global.php');
chdir ($curdir);
?>
And I am getting this error:
Quote:

Notice: Undefined index: HTTPS in /var/www/vhosts/mymentalray.com/httpdocs/forum/includes/class_core.php on line 1591

Notice: Undefined index: HTTPS in /var/www/vhosts/mymentalray.com/httpdocs/forum/includes/class_core.php on line 1591

Notice: Undefined index: HTTP_REFERER in /var/www/vhosts/mymentalray.com/httpdocs/forum/includes/class_core.php on line 1618

Fatal error: Call to a member function query_first_slave() on a non-object in /var/www/vhosts/mymentalray.com/httpdocs/forum/includes/functions.php on line 1194

crippon 12-30-2007 10:59 PM

This code no work on my joomla page =[ any solution?

d2sector 01-05-2008 01:21 AM

I have this login script on my website e.g. http://www.site1.com/ and my forums are at http://www.site2.com/ when i login in the script it goes to site2.com and says successfully logged in, then redirects back to site1 but isn't logged in. (it still displays the login script)

Is there a fix for this? Thanks.

tandalier 01-23-2008 05:19 AM

Get this great hack and can't figure out my fault.

The login works correctly but the logout don't work and I don't know why.
Do anybody know a solution?


All times are GMT. The time now is 04:04 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.01585 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)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