BAJI26 Posted March 24, 2010 Share Posted March 24, 2010 Is there a way to edit what is displayed in the last login info to just display the date? {$clientsdetails.lastlogin} 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 24, 2010 Share Posted March 24, 2010 Yes there is {php} $lastlogin = explode("<br>",$this->_tpl_vars["clientsdetails"]["lastlogin"]); $this->assign("lastlogin",$lastlogin[0]); {/php} <div style="text-align:center;font-size:10px">{$lastlogin}</div> 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted March 24, 2010 Author Share Posted March 24, 2010 Thank you again Sparky! By any chance do you know how to remove the word "Date" from the beginning? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 24, 2010 Share Posted March 24, 2010 sure... try this {$lastlogin|replace:'Date ':''} 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted March 24, 2010 Author Share Posted March 24, 2010 Sorry Sparky it still shows Last "Login:Date: 03/23/2010 21:53" 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted March 24, 2010 Share Posted March 24, 2010 Well if the front part of it is "Login Date: " the you would use {$lastlogin|replace:'Login Date: ':''} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.