![]() |
I would like to thank you for this hack Bill. I am using it as the heart of a custom CMS I am building for one of my clients and it works great. I just need to do some more digging into the vB core to see how they access certain info so I can use it. Thanks again...this rocks.
|
Did anybody get this to work (check for membergroupids)?
Looking at the below example, I noticed that you are using 'usergroupid' and I think this needs to be 'membergroupids' like: PHP Code:
Quote:
|
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? |
Ok i am having some problems, i set the login script up to how i needed it and i ran this script:
Code:
<?php http://img518.imageshack.us/img518/1600/helpbm4.th.jpg This seems to occur when i include global.php and i am completely lost, can anyone help? ---- UPDATE: Ok i forgot to include some pertinent information, this only occurs when i am not logged in, if i am logged in then it all works fine: URL=http://img505.imageshack.us/my.php?image=icasdo1.jpg]http://img505.imageshack.us/img505/5113/icasdo1.th.jpg[/URL] But if i am not logged in, or click log out, then when i attempt to access the login page, (the one i designed using the login_inc) it simple embeds the proper login page attempting to use my style aswell, but failing because the images paths are not correct, (because the script remains the same, it does NOT redirect to a new script) I cant login using this page because the paths are all wrong. |
Ok i have worked out what is wrong, i dont know if this is something that can be fixed or not but perhaps it should be added as a notice.
If you set your forums up so unregistered/ not logged in users can NOT see any forums, then you will get the same problem i have done, if the user tries to access any page in which global.php is included then it will embed a vb login box, but all the paths will be relative, so it wont work. Took me several hours of reading global.php and then trying some things but yeah, so i am going to bed now. The way around this is simply to enable unregistered users to see SOMETHING, but if someone finds another way around this then i look forward to reading it. |
This code will check BOTH the primary and secondary usergroups for access...
PHP Code:
If you only want to check for one value, just use one groupid...multiple values use multiple groupids. You can check for as many as you would like. Hope it helps, Steve |
I'm having a problem using this mod which I see other people have had before - but I couldn't find a solution on this thread.
I'm using the login box in the header all pages on the site, and for consistency, it's in the same place on the forum pages. All is working fins apart from the variables: $pmbox[lastvisitdate] $pmbox[lastvisittime] $vbphrase[unread_x_nav_compiled] $vbphrase[total_x_nav_compiled] Which won't show on the forum (fine on all other pages). Sorry if this has been resolved before - but I'd really appreciate some help! THanks. |
Hello,
I was just wondering if any one knows how to edit the global.php file so when forum is closed it dosn't close the site as well? Cheers |
my avatar and the other stuff shows up but above all that there is an error that shows up:
Quote:
EDIT: Well I fixed that problem....all I did was delete line 34. But one problem I can't seem to figure out is why I have to press the refresh button on my browser to update the online/offline status if I login/logout in the forum and then go to my home page from there. I already cleared my cache and it still does it. Can someone please help me w/this? |
Is there any way of forcing the page to automatically refresh or something???
|
All times are GMT. The time now is 10:50 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:
|