![]() |
Quote:
|
Quote:
Grtz barteken |
Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 To show different content depending of if people are logged in or not, you want to use this one. PHP Code:
|
Quote:
PHP Code:
Code:
if ($vbulletin->userinfo['userid']) PHP Code:
Code:
echo "<img src='http://www.yoursite.com/forum/$navbar_ava[0]' align='left' />"; This will show the User's current avatar, and if the User has no avatar specified, it'll show the no avatar image. Don't forget to change the "yoursite.com" to reflect your forum. See attached for Screenshots. |
ok, so i got it working, sort of.
It shows me logged in, but doesnt look like my cookie ever expires when it should. so, on the page i created, i'm always logged in, even after the cookie should have timed out with me idling. Also, from the who's online page, it never updates the time of last activity or the location if i'm on a page outside of vb. Jim |
Quote:
Quote:
|
Quote:
Thanks! |
Enhanced version with avatar, number of PM's and user stats is ready.... I think....
I just need to test it on someone who uses a table prefix for their database. |
Awesome, I look forward to it. :)
|
I'm having an issue where everything looks like it's logging in fine, but when it goes back to the page, it shows me as not being logged in. I checked the cookie fix discussed in the Troubleshooting section and it's as it should be. Sometimes though, if I go to the Forum and then go back to the page, it shows me as logged in. Any ideas? I love this hack, but I don't want it acting up like this to the regular users.
Quote:
|
thanks
|
|
Ok guys, I am having a slight problem. I am using the test.php script that was posted here. When I have the script outside of my forum directory, like my httpdroot directory, as soon as I try to login, I get a login.php not found error. However, when the script is in my /httpdroot/forum directory, it works just fine. I have my cookie path set to / and I dunno what else the problem could be. I've checked the login_inc.php file, but all links to login.php seem like they include the forumpath as a prefix... anyone have any ideas??
|
Sounds like a path problem more than anything else.
Look at point 2 under troubleshooting https://vborg.vbsupport.ru/showpost....98&postcount=2 Run that script in the same directory as login.php and make sure you use that path. |
Yeah, I am using the exact same path as I get from that php in point 2 of troubleshooting. Is there anything else?
Here is an update on the situation. I am using the test.php you have mentioned previously in this thread. I have test.php in three different places on my host: /httpdroot /httpdroot/forum /httpdroot/auction Now, when I remove the chdir statement at the top of the script, in both the httpdroot and auction test.php's, the screen is just blank white, no source. The forum test.php works fine. Previously, when I had the chdir statement at the top of the test.php's, the auction and httpdroot test.php's gave a login.php not found error, it stated it was looking for login.php in the httpdroot, which is not were it was. However, the forum test.php still worked fine. So, how can I get files OUTSIDE of my forum directory to work with this? I've now tried various thngs with the chdir at the top, omitting it, adding another one after the require, changing the path to of the test.php file and still nothing. The only one that works is the one in the main forum directory. :( |
Probably been answered and the answer is probably no.
however can this work on my other sites, for example use the login details on site www.a.com to also work on site www.b.com i want all my users on my current site to be able to login on this new site im going to create which will have an arcade system on it. thanks |
Quote:
|
No, you're not understanding. All these directories are under the same domain.
|
Quote:
You can try step 4 of the trouble shooting guide, but I doubt if it will work. https://vborg.vbsupport.ru/showpost....98&postcount=2 |
Quote:
Quote:
What you are describing is the symptons when you are using incorrect Paths. Quote:
PHP Code:
just a thought, is your Hosting on a windows box? |
Quote:
|
I don't understand what could be wrong with my paths. I've checked them again and again. If they were wrong, wouldn't the whole thing not work at all? It works fine if the test.php file is in the forum directory, otherwise, no go, even subdirectories of the forum directory don't work.
When it works, I get the vBulletin logo linking to main forum page in the topleft corner of the login box screen. When it doesn't work because it is in another directory, instead of the vBulletin logo, I simply get a text link to my main forum page. This is running on a fedora system. Is there anything that can be wrong besides the path? I have the https://www.myforum.site/forum in my login_inc.php, which is included in my httpsroot directory. That paths in the test.php file are completely accurate as well. This is killing me. I was just gonna install the software I needed into the forum directory but that would be chaos and there are some overlapping files. :disappointed: |
Do you think that it will work with another php script,for instance lets say pafiledb?
|
Quote:
You may be able to modify it to work with pafiledb, but since I havent seen how pafiledb authenticates I cant say for sure. |
You can get it and play around with it from www.phparena.net
|
Quote:
Its something the pafiledb developers would need to do. |
hmm i thought so.Thanks mate.
|
Quote:
|
Does anyone know if there's a way to check if they forums are currently down/closed and then display some text or whatever if they are. The way it currently works is if they are down then the user is thrown to the vB forum page showing that the forum is down and is unable to access the site. It would be great if it could just say "User information not available." or whatever.
Is this possible? I would still like for the site to be available when the forums themselves are down. |
Good idea.
Not sure if its possible but I will look into it. |
this seems perfect for what i want, however, i can't get it working correct.
I can get the log into to work, so that it says 'welcome Magik' and all that jazz, but it then redirects me to a page with the login bar there again. Not a 'wecome magik' thing. what am i doing wrong? |
Quote:
See https://vborg.vbsupport.ru/showpost....98&postcount=2 Did that fix it? |
OK. I've been playing around with it all day because i really ened this to work, and i've got it working. However, I now get
Quote:
|
I am just starting to play with this and your test scripts work great for me...
I am trying to take an old php script (Recipe Script) that uses it's own member login and password and use your mod to use vB UserId to be forced... As long as the person has to be signed in and I can capture their user ID that is good enough for this need (for now). I am curious if the fact that this script I am working with conects to a different database then vB will cause me problems using this method? |
Quote:
Are you running any other scripts on that page? If so, my guess there is a conflict with one of them. |
Quote:
I do something similar on my site where a couple of custom databases record the record owner by their vB id. Short answer is that I dont know if it will conflict with your script or not. All you can really do is try and see. |
I have installed the script as described. I named my page members.php and put it in the root directory. The page shows up fine, but when I try to login it just refreshes back to the page. I have changed the Cookie path to / and still nothing.
Any ideas? Thanks |
What version of vB are you using?
Your profile says 3.0.3 |
Quote:
|
okay, i got it to work... however once logged in it won't keep you logged in :(
http://www.areyouserios.com/ - removed for now. you can test by loggin in with username: demo password: demo http://www.seriosgaming.com/test_login.php it sort of works here, log out doesn't work though. i've tried all the cookie settings as suggested |
All times are GMT. The time now is 01:01 PM. |
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:
|