Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:44 am EST

Geeklog Forums

user photo in stories


Mike Johnston

Anonymous
I know about adding {author_photo} to get the pic to show up for comments but how does one do that for articles? I'd like my pic to show up every time i post an article as well... I tried adding it to the article.thtml but it doesn't seem to work.

Thoughts?

I'm using chameleon and my article.thtml looks like this by default:

{formatted_article}
<div class="floatleft" style="width:50%;">{whats_related}</div>
<div class="floatleft" style="width:50%;">{story_options}</div>
{trackback}
{commentbar}

i tried this to no avail:

{author_photo}{formatted_article}
<div class="floatleft" style="width:50%;">{whats_related}</div>
<div class="floatleft" style="width:50%;">{story_options}</div>
{trackback}
{commentbar}
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Change that to contributedby_photo. That seems to be the variable name in lib-story.php. I haven't tried this.
 Quote

Mike Johnston

Anonymous
Thanks for the quick reply.. unfortunately, that didn't work either. Frown
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Looks like a bug. FWIW, it doesn't seem to be working in the CVS version either.

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
{contributedby_photo} works in storytext.thtml, but not in article.thtml

That is, in does work like that in 1.4.1. It doesn't work at all in CVS. Damn regressions ...

bye, Dirk
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Ah, I looked in lib-story.php not article.php. I suppose the next question is, why doesn't article.php use STORY_renderArticle?
 Quote

All times are EST. The time is now 08:44 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content