This might be my second stupid question in the forums but how would I get the username of the roundcube user. I've got a google calendar embed and I want the url to be
What would I put?
Thanks
are you putting this in a template file or adding it with some plugin code?
if you are doing it in a plugin then you can get it from the session $_SESSION['username']
if you are putting the code straight into a template file then can do this:
<iframe src="https://www.google.com/calendar/embed?src=<roundcube:object name="username" />&ct z=Europe/London" style="border: 0" width="100%" height="90%" frameborder="0" scrolling="no"></iframe>
Thanks again