Forums

#1 2009-11-06 19:23:54

StarSoft
Member
Registered: 2009-10-27
Posts: 25

Have/Has in tab

I'm building an app that runs in a tab, nothing too fancy pretty basic showing information.
Now i have that when the owner of the tab view it it shows "You" and when someone else views someone's tab it shows the name of the owner.
Now the problem is that the sentence which includes the name is dependent on the line. For example when someone views someone's tab it shows this: {name} has not entered his information.
When the owner of the tab views the tab it says: You has not entered your information.

I guess you see the problem (i underlined it).
I'm wondering if there is ANY way to make the 2nd word change when the owner views it and when a visitor views it.

Javascript is not working as it requires user-action to be executed.
<fb:user uid="..."> is not working as the viewer's uid is not knows within a tab.
<fb:if-is-user uid="..."> does not work for the same reason.
<fb:if-is-own-profile> works only in canvas pages, which is not a tab i assume as it doesn't work.

So i hope anyone knows a solution for this.

Last edited by StarSoft (2009-11-06 20:00:28)

Offline

 

#2 2009-11-07 04:10:45

anatolyl
_Moderator_
From: Israel
Registered: 2007-10-16
Posts: 3782
Website

Re: Have/Has in tab


Anatoly Lubarsky

Offline

 

#3 2009-11-07 06:15:43

StarSoft
Member
Registered: 2009-10-27
Posts: 25

Re: Have/Has in tab

I know pronoun, i used it in that line, but that one doesn't change have/has.
At least not according to the wiki.
It changes:
his/her/your/their
himself/herself/yourself/themself
him/her/you/them

but nothing about the have/has.
And using it to determine if it has to be have or has is not possible through javascript at there is no onload function possible. It would only change when there is an action by a user, but that would be too late...

the only way i found in this forum for this problem only works in canvas pages:
<fb:if-is-user uid="{my-target-uid}">have<fb:else>has</fb:else></fb:is-user>

But this only works in canvas pages but not in application tabs, as the viewer of the tab is anonymous.

Last edited by StarSoft (2009-11-07 06:20:45)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson