add log out (an extra one) to upper right of screen
ok, for most websites, the log out is in the upper right.
(at least that is where i look first.) but in any case. i wanted to add a log out button in the upper right of most screens. in looking for this, i came across someone who wanted to kill his original auth box and put log in and log out buttons there in the upper right. his biggest problem was that he couldnt get the stuff to go to the right. well i have solved that problem. took about an hour of playing and research, but it will serve me well. i have also made the appearance of the log out stuff conditional on there being someone logged in. this may appear long, but in actuality, its a small amount of changes and code. ok... what: if logged in, put log out button in upper right in search bar file: /customer/search.tpl how: modify some existing code and add some code. step 1: we need to add another table data element and have it space all the way to the right. to do this, the first four table data must have a defined width percentage to help with the overall spacing. the 4th table data is set to 15% so that "advanced search" wont word wrap. the 5th table data is where the log out stuff goes. inside the 5th table data, is an IF statement,that way, the log out button stuff only shows if there is actually someone logged in. otherwise, it wont show anything and the search stuff still hangs over to the left where it belongs. Code:
hope this helps someone. michael |
All times are GMT -8. The time now is 02:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.