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?

moon_spell 01-23-2008 12:40 PM

nice work ! would you please edit attached files for me ? to use on nuke page ?

pleaseeeeeeeeee

Jeremy Mason 01-30-2008 09:05 AM

If I log in from the forums:

site.com/forums

I can navigate between site.com and site.com/forums with out any poblems, but when I try to log in from site.com it detects that I am not logged in and askes me to log in. When I click on the login form, it redirects me to login.php not forums/login.php..

Any ideas?

Cajun 02-20-2008 12:10 AM

Anyone know it this mod works with vb 3.7

leanbulk 02-25-2008 03:24 PM

Quote:

Originally Posted by Cajun (Post 1447004)
Anyone know it this mod works with vb 3.7

bump

diridam 02-25-2008 07:19 PM

super hackl. It offered me the ideea on how to use other features from vb on nonvb pages.

Still... i have a problem that i haven`t succeeded to find a workaround for it

When i login , i go to that redirection page :"tank you for logging in , ...", and then back to the initial nonvb page. Until here everything perfect
When i logout , it redirects me to the logout page where i have to press "click here to return to the previous page..." ... is there any workaround to automatically redirect me from where i came as it does when i login ?

thanks

superthang 02-27-2008 03:31 AM

anyone have instruction for 3.7 ? does it safe to overwrite the login_inc ?

thanks for help!

thmst30 03-01-2008 02:05 AM

AWESOME, after a couple hours of messing around I FINALLY got this working in vb 3.6.8. Also now using it in the widget sidebar on a wordpress blog. PERFECT and SEEMLESS integration. However I had to alter the code a bit so it could communicate with the newer version of vb.

txsbmw 03-02-2008 07:33 PM

Works fine for me with 3.7 beta 4. I did however have it installed before upgrading. I upgraded and never had to mess with anything, it kept working as normal.

RSmiroldo 03-16-2008 05:02 PM

When I log in on the website and it goes back to the wesbite the login in still there how to I fix this.

thegabriel 03-24-2008 07:19 PM

Hi,

I had implemented this code and it was working fine. My password had presently expired and my homepage looks scrambled. It is not redirecting to the forum page where it shows password expiry message.

If I go to the forums page, by typing http://www.example.com/forums then the message shows up.

Can you please guide me on how I could rectify this error?

Thanks,
G :confused:

moon_spell 04-12-2008 08:56 AM

wow nice i need it ! but for me it does not work! would you please upload the ready and finished php file to download ?

regards

CommanderFluffy 04-16-2008 02:22 PM

hi i keep getting error such as headers already sent. i have my globals on my own php files. but when ever i put your files in it tells me header already sent

RDx321 04-17-2008 12:44 AM

Is there a way that I can track what page the user is currently viewing from the vbulletin who's online page?

sflmkv 04-22-2008 04:43 PM

can anyone give me some quick assistance... I tried my test.php and it works fine.
when I place in wordpress sidebar I get this error:

Fatal error: Call to a member function on a non-object in /home/content/?/?/?/?????/html/login_inc.php on line 299

any ideas what could be going on I'm using 3.6.8?

Kitmitsu 04-24-2008 04:06 PM

Is there anyway to display a default avatar instead of a blank space when a logged in user has no avatar?

Great mod by the way.

Billspaintball 04-27-2008 06:22 AM

Quote:

Originally Posted by thmst30 (Post 1454140)
AWESOME, after a couple hours of messing around I FINALLY got this working in vb 3.6.8. Also now using it in the widget sidebar on a wordpress blog. PERFECT and SEEMLESS integration. However I had to alter the code a bit so it could communicate with the newer version of vb.

You would make a few people very happy if you listed the steps on how to do this with wordpress. :)

Quote:

Originally Posted by superthang (Post 1451854)
anyone have instruction for 3.7 ? does it safe to overwrite the login_inc ?

thanks for help!

There is a 3.7 version of this released in the 3.7 mods section.

Quote:

Originally Posted by thegabriel (Post 1473541)
Hi,

I had implemented this code and it was working fine. My password had presently expired and my homepage looks scrambled. It is not redirecting to the forum page where it shows password expiry message.

If I go to the forums page, by typing http://www.example.com/forums then the message shows up.

Can you please guide me on how I could rectify this error?

Thanks,
G :confused:

Have you looked at section 5 in the troubleshooting guide?

Quote:

Originally Posted by moon_spell (Post 1488904)
wow nice i need it ! but for me it does not work! would you please upload the ready and finished php file to download ?

regards

Huh???

Quote:

Originally Posted by CommanderFluffy (Post 1492172)
hi i keep getting error such as headers already sent. i have my globals on my own php files. but when ever i put your files in it tells me header already sent

See section 1 of the troubleshooting guide.
Even a single blank character above the code will cause this error.

Billspaintball 04-27-2008 06:25 AM

Quote:

Originally Posted by RDx321 (Post 1492592)
Is there a way that I can track what page the user is currently viewing from the vbulletin who's online page?

Not easily.
This is not designed to do this.

Quote:

Originally Posted by Kitmitsu (Post 1498298)
Is there anyway to display a default avatar instead of a blank space when a logged in user has no avatar?

Great mod by the way.

Should be easy enough to do with a conditional in the code.
I might add it to the next update.

echo@ 07-12-2008 09:14 AM

Hi I have installed and successfully got the script running, this works fine in a stand alone php file, great.

Now i am trying to integrate with a directory script (called indexu ) that use's smarty as a template engine.

With smarty the php call changes from <?php to <%php%> so this is the code I have at the very beginning of my header file

PHP Code:

<%php%>
$curdir getcwd ();
chdir('/home/essext/public_html/forums');
require_once(
'/home/essext/public_html/forums/global.php');
chdir ($curdir)
<%/
php%> 

and my index file calls the mod as follows

PHP Code:

<%php%>
require_once(
'/home/essext/public_html/forums/login_inc.php');
<%/
php%> 


all paths are correct but when i browse the page with the mod enabled i am presented with the following error.

HTML Code:

Fatal error: Call to a member function query_first_slave() on a non-object in /home/essext/public_html/forums/includes/functions.php on line 1303
this points to my vbulletin functions.php file

PHP Code:

$user $vbulletin->db->query_first_slave(

As you can imagine I have spoke to the indexu support forums, as it seems the mod works fine , just doesnt work when combined with indexu script, which I cant understand why.
But have been told to post over here. The original thread is here http://www.nicecoder.com/community/s...ead.php?t=7159 .


I hope some one can shed some light on this one. Thank you

jellybaby 08-26-2008 07:35 AM

Does anyone have this working on Joomla?

tamborinegal 10-15-2008 08:21 AM

Perfect, works great.

Thanks!

Commander-X 12-05-2008 09:40 PM

Ok I tried this but why is it displaying the default log in screen in vb and not the modified one. When I log in it works it shows that Im login gives me the welcome message etc etc.

SVTCobraLTD 01-30-2009 11:23 PM

Installed and working on 3.6.11. How do I add a line break in the php file? I tried
Code:

/n
and
Code:

<br>
but both gave me errors.

Angry_Sun 09-26-2009 04:05 AM

Hey guys, I installed this and everything, but I can't seem to get it to actually LOG YOU in. Check it out:

http://nintendoland.com/New/index.php

Use the account: Test
Pass: test

See? What is wrong guys?

silvermerc 07-13-2011 08:50 PM

wheres login_inc.php located in the forum?
Ross


All times are GMT. The time now is 05:58 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.01777 seconds
  • Memory Usage 1,846KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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