login | register
12 May 2008 [04:57 UTC]

bitweaver

Web Application Framework and CMS

Refresh cacheHistorys5 slideshowprint

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 on 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}
<b>you are the owner!! So put img tags</b>
{/if}
{CODE}

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

Comments

Related Items

Documentation » Technical Documentation

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

HEAD ON! Support has been added for Pear::DB!  •  Oracle Reservations for Two  •  ReleaseTwo: Shedding that last bits of our roots, finding the core of our being  •  getContentList  •  How to add a pagination to an object list  •  Moving bw in another directory  •  pma and mysql  •  safe mode on / open_base_dir  •  sequence and auto  •  The package I am currently developping is suddenly desactivated  •  APIDocumentation  •  Archived Picture Upload with Fisheye under Windows  •  Bitweaver and Browser Cookies  •  bitweaverCVS  •  bitweaverFeatures  •  bitweaverPerformance  •  CodingGuidelines  •  CreatingServices  •  CssSchema  •  InstallbitweaverDoc  •  IntegrationTutorial  •  LibertyFormats  •  LibertyServices  •  PortingTikiWikiPackages  •  PrototypeAjaxObject  •  PrototypeReference  •  SamplePackage  •  SearchPackageDevNotes  •  TUTORIAL - Displaying Icons ONLY to AUTHORS of the page  •  Tutorial - Liberty Plugins  •  Tutorial - Liberty Plugins II  •  UsersDoc

Documentation » User Documentation

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

Saturday 20 of May, 2006  •  A beginners guide to CSS selectors  •  bitweaverFAQ  •  bitweaverGlossary  •  bitweaverHosting  •  content  •  DatabaseComparison  •  DataPluginArticles  •  Special Characters  •  Special Characters Page 2  •  Special Characters Page 3  •  TUTORIAL - Displaying Icons ONLY to AUTHORS of the page  •  User Documentation  •  wiki syntax

Login box

Wiki

Search bitweaver


Last Modified Pages