![]() |
What about placing the LOGOUT button where REGISTER would be if they are logged in?
|
[QUOTE]Originally posted by SirSteve
What about placing the LOGOUT button where REGISTER would be if they are logged in? |
dont know whats wrong
installed the hack word for word and it didnt work no errors but the register and the user cp did not show oh well!! |
[QUOTE]Originally posted by freddie
I put something in my phpinclude template like this: if ($bbuserinfo[userid]) { // user is logged in $pflink = linkto usercp.php } else { $pflink = linkto register.php } I then put $pflink in the header template in place of the buttons that show user cp/register. Do it this way and you don't have to edit anything when you upgrade. |
yeah i did that
i think its because i use vbportal my phpinclude is this if (!isset($mainfile)){ include("../vbp_includes.php"); } i think this is where the problem is |
This is really confusing. There are codes flying around the thread and the .txt file at the beginning isn't written that well (no offense).
Could somebody rewrite this (take what's there and specify everything for MAJORLY PHP CHALLENGED people like ME) so it tells what exact file to open, what to change, where to change it? Thank you so much. It's confusing when the txt file is not specific at the end, people post coding in their replies, and then somebody says don't use that, bla bla, AAAHHHH. Thanks for redoing it if anyone does. I'm really illiterate with PHP and coding, so I need it very specific. The hack sounds very cool though. |
Works like a charm, thanks! I've been looking for this one ;)
|
[QUOTE]Originally posted by Smallville
This is really confusing. There are codes flying around the thread and the .txt file at the beginning isn't written that well (no offense). Could somebody rewrite this (take what's there and specify everything for MAJORLY PHP CHALLENGED people like ME) so it tells what exact file to open, what to change, where to change it? Thank you so much. It's confusing when the txt file is not specific at the end, people post coding in their replies, and then somebody says don't use that, bla bla, AAAHHHH. Thanks for redoing it if anyone does. I'm really illiterate with PHP and coding, so I need it very specific. The hack sounds very cool though. |
[QUOTE]Originally posted by Dockaych
Perhaps this could be expanded to allow for a logout button too though? (although the logout isn't usually next to register/user cp) |
If you download the graphic developers kit from vbulletin.com you'll find a log out-button (almost) ready to use.
Thanks for the hack! I've modified this hack somewhat too - having a text menu for users logged in, and having a user name and password text boxes for those not logged in, making it a breeze to log in - even when you are on some obscure page. |
All times are GMT. The time now is 01:46 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:
|