Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: stefanb on March 13, 2008, 10:50:18 AM

Title: user identity with welcome message
Post by: stefanb on March 13, 2008, 10:50:18 AM
 :) Hi, I'm newby about RoundCube but I love it from the first moment. It's very light and very ... web2!!
Ok, ok!! :D
I'm not a web programmer, but I like to see on the main page, after the login (like Yahoo or Gmail) my username.
I explained how to do this (in italian) on my site: http://banu.it/blog/?p=21 (http://banu.it/blog/?p=21)
And here you get a sample screenshot: http://banu.it/blog/wp-content/gallery/articoli/welcome.jpg (http://banu.it/blog/wp-content/gallery/articoli/welcome.jpg)
So, I will try to explain it (again) in english. It's very simle.
Just for this, I have changed the header's default skin file “/skins/default/includes/header.html" with this code:
Code: [Select]
<table style=&quot;text-align: left; width: 100%;&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tbody> <tr> <td style=&quot;height: 55px; width: 170px;&quot;>
<roundcube:button command=&quot;mail&quot; image=&quot;/images/roundcube_logo.png&quot; alt=&quot; RoundCube Webmail &quot; width=&quot;165&quot; height=&quot;55&quot; />
</div></td> <td><div>Welcome <span style=&quot;font-weight: bold;&quot;><roundcube:object name=&quot;username&quot; /></span>
</div></td> </tr> </tbody> </table> <roundcube:object name=&quot;message&quot; id=&quot;message&quot; />

Note: this hack it's working with the last version of Roundcube
Title: Re: user identity with welcome message
Post by: Rudy on March 21, 2008, 08:39:51 AM
Thank you, this is a really great little plugin! :)
Title: Re: user identity with welcome message
Post by: xaviertirado on March 24, 2008, 11:51:44 PM
nice arrange thx dude
Title: just user first name
Post by: BandonRandon on February 07, 2009, 02:48:20 AM
hello,

this is great but is there a way to grab the users first name from the database or roundcube: object something like:

Code: [Select]
<roundcube:object name=&quot;firstname&quot; /> Thanks,
Brandon