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)

devilsmania 04-19-2007 06:07 AM

hey

i get this error ===================================


Warning: main(): open_basedir restriction in effect. File(/var/www/virtual/devilsmania.com/www/forum/global.php) is not within the allowed path(s): (/var/www/virtual/devilsmania.com/www/www/:/var/www/virtual/devilsmania.com/_data/:/var/www/virtual/devilsmania.com/errors/:/usr/share/php/:/tmp/) in /var/www/virtual/devilsmania.com/www/www/index.php on line 3

Warning: main(/var/www/virtual/devilsmania.com/www/forum/global.php): failed to open stream: Operation not permitted in /var/www/virtual/devilsmania.com/www/www/index.php on line 3

Fatal error: main(): Failed opening required '/var/www/virtual/devilsmania.com/www/forum/global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/devilsmania.com/www/www/index.php on line 3
===================================


i have vb 3.6.5

forums :
forum.devilsmania.com

login for non VB page :
www.devilsmania.com


what to do ?
sorry/thanks...

Billspaintball 04-20-2007 12:00 AM

Do step two of the troubleshooting guide to ensure that your using the correct paths.
https://vborg.vbsupport.ru/showpost....49&postcount=2

If the path is fine then try the sample login in step five to rule out anything on your page causing a conflict.

Billspaintball 04-24-2007 01:55 PM

Quote:

Originally Posted by erinys (Post 1217401)
Hi bill,

Sorry, i have deactivated this addon for now :( when you buy something in vbplaza and it expires (like a sticky topic) this addon also makes the whole site go 404 :(

Something is up with the way it handles something when it "expires", and when it does it breaks every single page on the site where this module is loaded :(

im running 3.6.4 btw, can that be the problem? this works fine on 3.6.4 right?

Ok,
I have finally had enougth time to play around with this and find the cause and solution.

Cause - When redirected for expired password you are redirected to the directory that your login script is located in, not your forums root.

Fix - Edit phrase called
Code:

passwordexpired
Your current phrase should be
Code:

Your password is {1} days old, and has therefore expired.<br />
<br />
Please change your password using <a href="profile.php?{2}do=editpassword">this page</a>.

change it to

Code:

Your password is {1} days old, and has therefore expired.<br />
<br />
Please change your password using <a href="../forums/profile.php?{2}do=editpassword">this page</a>.

where ../forums/ is your forums directory.

Ive only tested this for expired passwords, not for expired vbplaza, but I would think you would have to edit the expiring vbplaza phrases in the same manner.

devilsmania 04-24-2007 02:03 PM

ok fixed thanks ;)

Billspaintball 04-24-2007 02:54 PM

Updated
  • Fixed - // in paths bug
  • Fixed - Javascript warning in some browsers
  • Fixed - Tidied up some code
  • Fixed - Avatar display code bug

Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues.

CSGCarl 04-29-2007 10:29 PM

I'm kinda lost(which isnt hard hehe) I'm trying to make it so when loged out menu a appears but when loged in menu b appears...

I have used the conditionals in the web page its self is that right? if so I take it you can insert code/image/links etc?

Please could someone clear things up abit here/help me out abit:)

Carl

Billspaintball 04-30-2007 12:22 AM

Quote:

Originally Posted by CSGCarl (Post 1237858)
I have used the conditionals in the web page its self is that right?

Yes thats correct.
Quote:

if so I take it you can insert code/image/links etc?
Correct.

The 2nd post in this thread shows various usage examples on how to do this.
See https://vborg.vbsupport.ru/showpost....49&postcount=2

A brief example that shows one lot of text if your logged in and different text if your not is
PHP Code:

<?php 
If ($vbulletin->userinfo['userid']!=0
    {     
    echo 
"Your logged in so we can display this"
    } else { 
    echo 
"Your not logged in so we display this"
    } 
?>

Naturally you can have links, pics, more text, HTML code inside these echo statements.
Hope this helps. :)

CSGCarl 04-30-2007 10:43 AM

Thanks for clearing that up, I must be doing somthing wrong(probably somthing stupid) as I keep getting errors.

Thanks again,
Carl

CSGCarl 04-30-2007 04:31 PM

Ok I get this error 'Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/homepage.php on line 928'

Code:

This is the code I put in the website:
If ($vbulletin->userinfo['userid']!=0)
        {       
        echo "<img src="http://www.mysite.com/images/bse_top.png" width="248" height="32">";
        } else {
        echo "Your not logged in so we display this";
        }
?>

Can some one tell me what I'm doing wrong please?

Billspaintball 04-30-2007 08:42 PM

Quote:

Originally Posted by CSGCarl (Post 1238325)
Ok I get this error 'Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/homepage.php on line 928'

Code:

This is the code I put in the website:
If ($vbulletin->userinfo['userid']!=0)
        {       
        echo "<img src="http://www.mysite.com/images/bse_top.png" width="248" height="32">";
        } else {
        echo "Your not logged in so we display this";
        }
?>

Can some one tell me what I'm doing wrong please?

You need to escape the " in your HTML.
Just put \ in front of the " that are part of the HTML and not your PHP.

Like this
PHP Code:

If ($vbulletin->userinfo['userid']!=0)
    {    
    echo 
"<img src=\"http://www.mysite.com/images/bse_top.png\" width=\"248\" height=\"32\">";
    } else {
    echo 
"Your not logged in so we display this";
    }
?> 



All times are GMT. The time now is 12:56 AM.

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.01352 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)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