![]() |
Ok....this is my first hack. It's small and should be very straight forward.
The source of this hack is a thread that started in the main Code Hacks forum by a user looking for a hack that would allow their members to log in from the main home page of their site. Once logged in, it would display a Welcome message when the logged in member returned to the home page. The original source was provided by Demolition, but members were having problems with getting the hack to run. Warning/Disclaimer: I am not a well seasoned PHP programmer. I get by as best I can, but usually learn from example and tinkering. I have changed the PHP coding around slightly, and added much more HTML in order to format the input fields etc. This hack was tested using Internet Explorer 5.5 and Netscat 4.7. I have verified that it works in both OS's several times. I am also running the latest version of PHP on my server, so I'm not sure how to help those of you that are running PHP3, but I'll do the best I can. I won't make any promises though. I plan on continuing to work on this as well as add a few more features to it as time permits. Download the attached file and edit it using a text editor of your choice. Add the pathway to your forums directory where noted. Save the file as a PHP file to your main forums directory. If your site's home page is an HTML document you will have to call the PHP file using a server side include. If you're not sure how to do this, you should search the forums here as this topic has already been covered several times. |
<form action="http://www.corvetteactioncenter.com/forums/member.php" method="post" />
You should really change that ;) But nice hack for us html/php impaired :p I'm just lazy. |
Sorry.....here it is. :rolleyes:
|
RobAC, thanks
but i wasn't looking exactly for this, i was looking for a code to welcome the user in non-vB pages, when s/he logs in using login box in non vb pages, and this one doesnt work like this :( |
Rob,
I just added this hack to our community and it works great! Thanks! |
Quote:
Can you explain further? So you want it to say "Welcome back.....member on each non forum page? You don't want the login fields? -Rob |
By Definition Rob, I think what is wanted is lets say on the index.html or index page, it welcomes them to the site.
kind of like using a very basic phpportals :) that is what I get out of it. |
Hi Rob, i try your hack but nothing works sorry :( it will be for the next time
|
[QUOTE]Originally posted by Ruth
RobAC, thanks but i wasn't looking exactly for this, i was looking for a code to welcome the user in non-vB pages, when s/he logs in using login box in non vb pages, and this one doesnt work like this :( |
smachol, thanks, but i tried that it doesn't work...
RobAC, this is what i am trying to do... i need to do the following in non-vB pages: (1) if the user already logged use their cookies and display a welcome $username + logout link (2) if the user is not logged use the login form before displaying the page content. (3) prevent access to users awaiting confirmation (3) and users awaiting moderation (4) PHP Code:
please help :( |
All times are GMT. The time now is 01:56 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:
|