![]() |
I get this Error
Code:
Notice: Undefined index: HTTP_REFERER in /var/www/web1/html/vb3/includes/class_core.php on line 1574 PHP Code:
Snatch |
|
Sorry about the lack of support.
We have just had a new addition to the family 3 weeks ago and Ive been kinda busy. |
Quote:
Have you tried section 5 of the troubleshooting guide to rule out other scripts interfearing? |
I'm having the same problems.
PHP Code:
Keeps saying I'm not allowed in, and when I print_r $vbulletin->userinfo is returns a userd of 0. Help! |
Have you tried just the sample code in "Troubleshooting - step 5" yet?
(refer to this post https://vborg.vbsupport.ru/showpost....98&postcount=2 ) If so, what happened? |
Quote:
PHP Code:
The contents of $vbulletin->userinfo are not being filled when the script is on avplay.com. |
Im pretty sure its related to cookies somehow.
Do both your forums use the same cookie prefix? |
Quote:
|
Anyone got any ideas on this one? Can this hack work on a website on the same server but with a different domain?
|
Did you try the edit at the end of step 4 in troubleshooting?
|
I'm trying to restrict access to pages based on Usergroups, but I can't figure out what I shoud do with the code you provided. I have tried it in different locations on the page, but whether I'm logged in or not it always shows me the page. Any help? (The user login works perfectly for me, btw.)
|
Quote:
|
Right now I have it at the top of the page, and I'd like to restrict this page's access to those who attend here only. I've also tried replacing the 'Have stuff for here' with the content of the page, and that didn't work either. I realize I must be missing the obvious, but I'm just stumped at this point. Thanks for any help. :)
PHP Code:
|
Ok, I see whats gone wrong.
The "have stuff here" line is where you put your page contents. For example; PHP Code:
I may have missed escaping a " somewhere (I have a habit of doing that) but you should get the idea of how it works. |
That works great, but is there a way to set it for access from multiple usergroups? ie, Members are usergroup 9 and Admins are usergroup 6. I've tried it as
PHP Code:
PHP Code:
PHP Code:
|
Try
something like Code:
if ($vbulletin->userinfo['usergroupid'] == '9' |
Quote:
|
Quote:
Others may find it usefull as well. |
Is there a way of making it remember a user without the 'Remember me?' checkbox?
Thanks. |
Quote:
It may or may not work, and make sure you back up your login_inc.php first. Find PHP Code:
PHP Code:
|
It seems to be working properly right now. Thanks!
|
This is my situation. I installed the Simple -version on my forum and it was working perfectly. No problems what-so-ever, things were going as smooth as I could hope.
Then I decided to setup a test forum, and proceeded by creating a testvb folder, protected it with htaccess and installed the test forum along with the Simple login extension. This is where the problems begun. According to vB instructions, the 'Path to Save Cookies' setting (Cookies and HTTP Header options) must be set to the directory of individual forums, if one runs more than one forum on the same domain. In my case, this meant that I set the path on my live forum to '/forums/' and on my test forums to '/testvb/forums/'. This, of course, meant that the Simple login extension stopped working on my live forums since the 'Path to Save Cookies' setting should be set to '/'. If, on the other hand, I leave the live forums setting to '/', then I am not able to log on to my test forums at all, while the extension works perfectly on the live forums. Does anyone see a way around this problem, or am I just out of luck. Is it possible to use this extension simultaneously and successfully on test forum thats running on the same domain with the 'live forum'. |
Really cool hack, but i can't use it because i have a random banner / header script going on, and the..
PHP Code:
Dammit, any fix ? :) |
Quote:
Can you post the first dozen lines or so of your page so we can have a look. |
Confirmed working on vB 3.6 Beta 1
:D |
Hi bill,
Ive not got the error codes handy - but ill show you my random banner script, if this doesn't help i will add it again and show the error codes that are confliciting with this script. PHP Code:
|
Quote:
PHP Code:
|
I don't really understand that, the random image script goes inside a table, and the php code your supposed to put at the top of the page won't work if it's in the table too, right? :s
|
Quote:
Correct, my code wont work if its not at the very top of the page (before any output anyhow). I suspect that your banner script may be broken because of the directory change in my script. What was the exact error message you got? You can change back to current directory after my script if you like. I will post the code to do that as soon as I remember how... |
Ok, try this.
Right at the top of the page put PHP Code:
PHP Code:
|
I receive the following error:
Quote:
|
I am not able to run this and I have gone through the troubleshooting steps that you have provided. I am running my main site on http://website.com and I am running my forum on http://forums.website.com. I've tried using website.com/forums as well, but that is not working either. Other than the steps you have provided, do you have any other recommendations?
The reason I'm still curious is because I had the vBadvanced CMPS working on my website before, and I had it set up the exact same way. However, I am unable to figure out what made what tick. Let me know please. |
Quote:
|
Great looking hack!
I've got the basics of it working on my site. However I need to control access based on secondary 'additional' user groups rather than the primary usergroup id. How can I have it check to see if the user is in the array of membergroup id's instead of a single usergroup? Thanks. Scott |
Hi, i need help please.. i added the login box on the index page, works great. but when i try and access the other pages. i get the following error.
Code:
Warning: main(includes/0.php) [function.main]: failed to open stream: No such file or directory in /usr/home/web/wse90457/index.php on line 180 also, if you go to http://www.silkroad-oasis.com and login on the box, it logs in and works fine, but if you go to http://silkroad-oasis.com and try and login, it logs you in, but still shows the login boxes. how to fix? Please help. Thanks |
Quote:
|
Quote:
ok, Step 3 had already been done. by default? i dont know. I dont both things in step 4, but still i get the following errors on every other page, but it did sort out the login box problem, Code:
Warning: main(includes/0.php) [function.main]: failed to open stream: No such file or directory in /usr/home/web/wse90457/index.php on line 180 Is there anyway to fix this warning? |
Quote:
Quote:
Try changing Code:
<?php Code:
<?php |
Nope, still same error.
Do i need to put that still in everypage? or just the index page? and if you need me to, i can post the index page php code. |
All times are GMT. The time now is 09:06 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:
|