TUTORIAL - Displaying Icons ONLY to AUTHORS of the page

This tutorial shows how to check who is viewing the page, and if it is the author

Created by: fire, Last modification: 13 Mar 2005 (13:54 UTC)
Hi!

I wanted an: "Edit your profile picture" on users homepages to be displayed ONLY if it was the actual USER viewing his/her webpage -

I accomplished this with the following code in the TPL.
{CODE()}
{if $fHomepage == $gTikiUser->mInfo.user_id}
you are the owner!! So put img tags
{/if}
{CODE}

Spiderr.... how can I accomplish this in the PHP code instead of the tpl?

Related Items

Documentation » Technical Documentation

Documentation geared towards developers and people who want to learn about the core processes of bitweaver

  •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •    •  

Documentation » User Documentation

Documentation written by users for users. These are generally entry level documents.

  •    •    •    •    •    •    •    •    •    •    •    •