![]() |
Quote:
As you guessed the way around that is to hack the vB code. Quote:
|
Warning: chdir(): No such file or directory (errno 2) in xxxxxx/xxxx/index49.php on line 59
Warning: main(/forums/global.php): failed to open stream: No such file or directory in xxx/xxx/xxx//index49.php on line 60 Fatal error: main(): Failed opening required '/forums/global.php' (include_path='.:/usr/local/lib/php') in /xxx/xxx/xxx/xxx/index49.php on line 60 |
Quote:
See step two in the troubleshooting guide. https://vborg.vbsupport.ru/showpost....79&postcount=2 From those errors it appears that your path is entered wrong. |
I have been trying to use this hack on my site, but I dont know where to place the code...
This is the code for my site, so please help me! Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
Quote:
PHP Code:
Fill in your info where there is RED. |
Ok I knew where to put that, but its the restricting bit I cant do...
PHP Code:
I want it so that the page is viewable to people that are logged in, but not to people that arent.. |
|
Thats not what I'm trying to do... I have a different design for the site, and just want to use the login system, so users dont have to register on two different sites..
This hack does that, but I just dont know how to use the php code in my last post.. |
Quote:
For example this bit here Code:
<div id="welcome" class="post"> Code:
<?php If you have not used PHP/HTML togeather before you really should do a couple of online tutorials on it. Its a little confusing at first, but not hard to pick up the basics (which is all you need for this) |
Thankyou SO MUCH BILL!!!
Adding the \'s in the right places made it work!! I cannot thankyou enough.. I might make a donation =] |
One more thing... How can I get it to say something like Welcome Back "username" when its is in the
PHP Code:
Also, when designing it in Dreamweaver, everything disappears from the design view.. Is that because it is restricted to a usergroup and Dreamweaver cannot access it? |
Is there a way to get users to redirect to a different page when they login?
E.g if they logged in on your home page, it would redirect them to the members area home page? |
No probs done it myself =]
|
Quote:
PHP Code:
|
Thankyou so much Bill.. Excellent hack, and awesome support!
|
Is there a way I can plug a user name in a if statement to see if that user is online?
|
Thanks for the hack. I'll try this out on my front network page when it's completed.
|
Quote:
You would need to include vBs useronline system. I havent looked at that, so Im not sure whats involved. |
Hi does anyone know how to remove the login box from the page once the user has logged in?
i have the <?php $curdir = getcwd (); chdir('/path/to/your/forums'); require_once('/path/to/your/forums/global.php'); chdir ($curdir); ?> at the very top of the page, html code underneath and then the <?php require_once('/path/to/your/login_inc.php'); ?> below that. When i use conditionals to display content to users who are logged in it works fine but the login box still remains at the top, is this suppose to happen? Sorry i'm new to all this. |
anyone can tell if this mod work under vbulletin 3.6.7PL? because I got a blank page everytime I try to load my php page. I delete the code and everything is working again!
|
For me the mod does work on 3.6.7PL
|
[S]What is the difference between this mod and the Deluxe version?[/S]
Nevermind! Just a good read of both descriptions and one looks like it is a cut down version of the other. :) |
Everything is okay but at the very top I see this:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2 How can I fix this? |
hey bill it says you updated the avatar code in this mod but i cannot see it in the code. i would really like the avatar display in the welcome box
|
I think this is a Great hack Bill, I'll first start with the simple version. There are some things I coulnd't get it work. I am sure I entered the URL in part 2 and doc roots in part 1 correctly. I don't get any php errors..: What I do get is:
root -----/forum/ -----/thishack/ I am using vB 3.6.7 I already did the "Subdomains and cross site logins" (nr 4 of troubleshooting) Anyone else has this issue or solutions for me? |
Hey Bill,
Is it possible to show a warning on the page where the script is loaded instead of the redirection to the forums (ie. on bad password or incorrect username)? Thanks |
Does this cause any problem with the rest of the website?
I only want the login box and password and a "Welcome message" on top of the non-VB pages of my website. Thanks Nima |
I'm using version 3.6.7 and I don't have a login_inc.php file. Does anyone else have this problem too?
|
Quote:
|
Anyone got a demo for this one?
|
This hack looks like it will work for my site, but before I try it, will it work with version 3.6.8?
|
ok we have a version that will allow someone of a certain primary group to see the page like this:
<?php if ($vbulletin->userinfo['usergroupid'] == '6' ) { echo "This is only visible to people in usergroup 6";} ?> has anyone worked out how to do it with a secondary group? i.e. if they are members of 3 or 4 groups and the page is available to them as a secondary member?? |
Quote:
I have vbexternal, tried this fix but it still just redirects me back to the page after logging in and instead of it showing I am logged in, it shows the log in box. I have also checked my cookie settings as well. Running 3.6.8 Anyone know how to get it to work correctly? |
I'm having problems with this.
I have my forums at domain1.com/forums/ and a site at site1.com I've followed all the instructions and everything and its not working correctly. If I clear my cookies, I login and it redirects me to site1.com and shows me as logged in however in the address bar there is ?s= then the long session ID string. If I navigate to another page, this goes and I'm logged out. Any idea whats going on here? I'm pulling my hair out over this! :( The connection to the vB files is working, the redirect is working, but it is not setting the cookies correctly. I've tried the cookie domain as blank, .site1.com, .domain1.com and its just not working. It keeps me logged in on the forums, just not the site. I've got root access so can modify any settings if needed (however I don't think its server-side related). Thanks for your time & hard work. |
Does anyone know if this hack will work with iframes? Specifically, it I have the login box and login detection code within an iframe (say login.php), and this iframe is part of index.html, if I enter my username/password in the login box, it seems to recognize that I've logged in, but it won't redirect me back to the main page, which is index.html. It seems to redirect back to my iframe page, login.php, which is not the behavior I want. Does anyone know how to make it redirect to the main page, index.html, which includes my login.php in an iframe? This is my first time using this hack.
|
I get this errors:
Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 Code:
<?php |
Hi, been using this for a while its great, wondering if its possible to allow additional user group members to access a certain page? Not only primary.
|
Quote:
The same Problems by me since I have upgrade to MySQL 5 Have you fixed it? |
No man, I'm still waiting for a reply. :p
|
Quote:
chdir('webcity'); require_once('webcity/global.php'); should be something in the format of: chdir('/home/webc/public_html/webcity'); require_once('/home/webc/public_html/webcity/global.php'); Code:
Notice: Undefined index: HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591 |
All times are GMT. The time now is 01:34 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|