May 19th, 2003

Katscan
  • danis

Another S2 Issue....

I'm trying to use the LJ User tag on my s2 layer, and it doesn't seem to work there... Can you guys fix that?

Oh and an aside... I want the default time output on my s2 layer to look like "Monday, May 19, 2003 @ 15:45" I've checked the faq, and I don't know how to pass *all that* through the datetime function... help?
  • Current Mood
    excited excited
wistful, longing, seeking

Changes to code handling in S2?

I noticed that the editjournal_do syntax had been updated, so I changed this code:

if (viewer_is_owner() ) {
print "</I> | <I><A HREF=' $*SITEROOT/editjournal.bml'>edit entry</A></I> )</P>" ;
}
else {
print "</I> )</P>" ;
}


to look like this:

if (viewer_is_owner() ) {
print "</I> | <I><A HREF=' $*SITEROOT/editjournal_do.bml?journal=$e.journal.username&itemid=$e.itemid'>edit entry</A></I> )</P>" ;
}
else {
print "</I> )</P>" ;
}


and now it shows up on every entry on my friends page--including the ones I don't own and can't edit. It wasn't doing that before I made the code change, and when I undo the change and recompile, it still appears on every entry. It looks as though the 'if (viewer_is_owner() )' isn't being handled properly. Any idea what's causing that or how to fix it? (If this is something that's already in process, apologies for being impatient!)

...oh, I see. When I log out it's not there anymore, so I assume that viewer_is_owner() is being interpreted as referring to the owner of the page (in this case, my friends page, so I own it) rather than the owner of the entry. Is there any way to tell it which one I mean, or an entry-specific equivalent?
  • Current Mood
    confused confused