The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
I know there are a couple of threads available which deal somehow with the login box. But I found nothing explaining to a relatively new vB "hacker" how to do a login box. I also looked into the navbar template. The main problem is, that coding the form itself is pretty easy but the form action almost always submits to vB's login.php which would then again do its standard forwarding stuff. So I guess it's not only the form which needs to be codes (the easy part) but also the login procedure itself. Any hint on where to start? How to do it? Maybe anybody has already done it? Maybe I can reuse parts of the vB code? |
#12
|
||||
|
||||
If you take a look at login.php, you'll get a fair idea on how to do it. I myself have never tried it (since i've never needed too) but i'm sure all the info is in login.php
|
#13
|
|||
|
|||
Omega]ok, thx Faranth. Now I use a hack (for vb 2.3.3) , that displays also how many pm's you have, who's online (usernames) and how many threads and posts were posted since the last visit. Can anybody tell me how to add this info when a user logs in (on a non-vb-page)?
of course for vb 3.0.0 RC Like this: "Welcome back, [FG]Omega! Your last visit was: 04.01.2004. X new threads and X new posts were posted since your last visit. View new posts (<-- this is a link). Your CP (also a link) | Log out (also a link) | Private Messages - You have X new PMs since your last visit. There are now X members online" ^-- yeah, like that ^^ |
#14
|
|||
|
|||
It sounds as though we are after the same thing. Much of what you are asking I already have figured out on my test page ( http://www.ahfb2000.com/test.php )
We do seem to have different results when redirecting. Upon login mine brings you back to the nonvb page you logged in from. I am close to getting it 100% but I cannot get it to show the user info (username, avatar, remove login and show logout). It is always the guest templates which show. Dave |
#15
|
|||
|
|||
@[FG]Omega:
To display the information you are describing, you can do your page like this: PHP Code:
|
#16
|
|||
|
|||
The output the above code produces on a non VB page is:
Welcome back localhost. Thank you for posting 3 so far. Number of PMs: 0 / Unread: 0. Your last visit was on: 01-11-2004 11:45 PM. Currently active users: localhost |
#17
|
||||
|
||||
Thanks, it works great for me apart from 2 things.
1. Active user link goes to member.php, instead of /board/member.php 2. If not logged in, it shows: Unable to add cookies, header already sent. File: N/A Line: 0 I would like this to say Welcome guest or something (maybe a login box) Thanks Dave |
#18
|
|||
|
|||
The posted code + the asked stuff "I would like this to say Welcome guest or something (maybe a login box)" ist the hack i´m looking for ... an the links have to redirect to /boardpath/*.php ... instead of /*.php ...
If these options are made ... i can use it ... |
#19
|
|||
|
|||
any addition to this?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|