![]() |
Quote:
This line here Code:
</table></td>\"; Code:
</table></td>"; (Escaping the " ment that you never ended that PHP statement correctly) |
Also, I recommend taking a few online tutorials on using HTML with PHP.
You really just need a basic level of experience in using them togeather and it all becomes clear. :) |
Hi,
Ye I have sorted it all now, well on way with it all now |
Is there anyway to use this (i.e. including global to make logging in easy to sort out) without it auto banning banned users from our own pages?
The site I'd like to use this on will have a separate banning system on the site itself as forum bans shouldn't result in suspensions from the rest of the site. The two are very unrelated and as such shouldn't affect each other's bans. |
Quote:
|
hi,
at first i have to say big thanks for this script, i need it very much and it looks pretty cool, but i have problem with it: the script works fine in this way: i created an extra logintest.php with this contents: require_once('/srv/www/htdocs/web0/html/v4/vb3/global.php'); require_once('/srv/www/htdocs/web0/html/v4/vb3/login_inc.php'); and in neu.php im including this logintest.php by: <?php chdir("/srv/www/htdocs/web0/html/v4/vb3"); require("/srv/www/htdocs/web0/html/v4/vb3/logintest.php"); ?> when i open the neu.php it works fine (when i delete the cookies at firefox options first), but when i put the include code from neu.php into my index.php (same code!) i get: Warnung: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php (Zeile 4994) Warnung: Empty regular expression in /includes/functions.php (Zeile 4994), so some code of the board or loginscript collades with the code on my page. is there a possibility to fix this problem? i dont want to use frames/iframe or a little popup window to include the loginform, but i dont know how i can include it, without getting these errors, remember: neu.php alone works fine many thanks, david |
Great hack, thank you for your hard work ;)
Added custom CSS, and change some of your code so it is W3C validated. http://www.bluepearl-design.com/index.php |
Quote:
|
Quote:
|
Quote:
So we naturally had to revert back to our old pre-made solution which is just a custom script which just uses cookies and sends the login info to the login.php page when logging in. Though as some of our users have been having problems (particularly Mac Safari users) staying logged in we were looking for a more foolproof system which included sessions (as we presumed that was at least part of the issue). Any help that could be given on the being banned situation would be greatly appreciated. |
anyone got an idea for my problem?
|
Hi there, great hack which I have installed and got working. Really pleased and will probably donate but wondered if anyone has managed to resolve an issue mentioned in one of these postings.
Has anyone managed to edit the script to get it to validate to xhtml strict? My web template is valid without the script but gets lots of validation errors once included in my site template. I would appreciate if anyone has managed to do this and maybe it could be included?? |
i will donate and not to less, if someone can help me, its really urgent, my problem is on page 22 of this thread
thanks again, dave |
dont understand that nobody can help me, even for money? maybe i will write the text with javascript and include this
|
I still seem to be plagued with this:
Fatal error: Call to a member function on a non-object in /home/pause/public_html/dev/modules/login_inc.php on line 169 error. The offending line is: PHP Code:
Quote:
I am pretty sure i have all the correct includes and files/paths. So i can only assume there is either a problem in the query, or people are using different versions of SQL and in one of these MySQL updates, some function has been changed. I am currently on MySQL version 4.1.21-standard. Any ideas? |
Quote:
Hope that helps in at least finding out what your issue is. |
Hi again, does anyone know what if statement I could use to display a message on my site which has this hack installed for users with a post cont of zero?
Also is it possible to redirect to certain url or forums based upon usergroup or post count for members logging in at my website with this hack rather than logging in at my forums. |
Works fine! Just one last important vital thing missing i believe, we have the total number of users online? not the users them selves but the total members online in numbers? like "30" and also a sep for guests?
Cheers! |
A new bug... the avatar dosent change when its changed on the forum..
|
Can anyone tell me what I'm doing wrong, or if this is even possible. I'm trying to add the login on an .shtml page using php includes. Is this possible? Here's my php code placed in my shtml page:
PHP Code:
Thank you |
Im having a problem where i can login on a sub-domain but after im logged it doenst show me logged in.
My forum is located here: http://www.bluepearl-design.com/forums/ The page in question is here: http://www.bluepearl-design.com/template-myspace/ which works perfectly but the sub-domain parked on this directory http://www.template-myspace.com/ refuses to stay logged in. |
This seems like something I can definitely use .. :) thanks for this awesome hack and I'll try it soon to see if it also works on my 3.6.7
|
Quote:
Only thing though, i removed the avatar as i didnt need this on my site. |
When I run sample script (test.php), I'm getting an error about headers:
https://vborg.vbsupport.ru/ I've checked script and there are no spaces before first 4 lines of code. By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this: https://vborg.vbsupport.ru/ How can I fix this? PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread). I've tried both Deluxe and "non Deluxe" versions of this script. |
I have tried to use and I get these errors.
Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/site/public_html/index.php on line 3 Code:
Fatal error: Call to a member function query_read() on a non-object in /home/site/public_html/login_inc.php on line 146 |
I have this working perfectly, so thank you.
Is there a programming genius here that can help me convert the little bit of php into perl, so I can restrict a perl script in the same way? It doesn't have to be elegant, just a bomb out if the user is not logged in and not in the correct usergroup. |
Hi guys,
Firstly thanks for a great hack, I've got it working almost perfectly, however I could do with a little help if possible. The site I am using the hack for has an area that anybody can view, and then a number of private pages that are for registered members only. One of the pages that anyone can view is called members.php, and this contains the login form fields. At the moment when a member logs in they are taken back to this page, although they are successfully logged in. How can I change the code so that when a member successfully logs in they are instead taken to one of the private pages eg members_index.php instead of back to the same page they logged in from. Any help or suggestions would be much appreciated, :) |
EDIT: I'm a dumbass, i didn't do the right forum path, it's working now :)
This hack isn't working for me, i have vB version 3.6.8 I get the following error on my test.php page. Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/gamenexn/public_html/test.php on line 3 |
Quote:
Great to here its working :) |
Quote:
Im pretty slack when it comes to validation :( and any input is welcome. |
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 03:26 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:
|