Loading...
 
Features / Usability

Features / Usability


Re: Aw: Accessing session variables

posts: 4656 Japan

> > You can put "You are logged in as {$user}" in a template file. Displaying email address requires code for a database query AFAIK.
>
> Thanks for the reply. What I wanted to do is to add an HTML in the TikiWiki's Wiki as a frontend to our support. The result should be posted to our support guys.

To follow up on what I said earlier, adding this statement directly to tiki.tpl:

Copy to clipboard
{if $user} You are logged in as {$user} and your email is {$userinfo.email}. {/if}
will display the information, but won't show the email address except when the ))MyTiki(( preferences pages is being viewed. There's a conditional statement that prevents the user email address from being displayed on "public" pages even to the user, that would have to be overridden. But I didn't explore enough to find it.


>
> I do not know anything about Tikiwiki templates, and how to create/use them. Are there any docs about this?

All I can suggest is to search this site. I don't know of anything like a tutorial for people that don't already know php and Smarty scripting, etc. There's a little information that I found and mirrored at the themes site, but it only discusses templates in general, not about adding functionality as you are describing.

-- Gary - themes.tw.o

There are no comments at this time.