{author} and {name} variables not returned within comment_entries tag
Posted: 09 April 2008 11:09 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1105
Joined  04-14-2007

I just noticed a problem that I don’t seem to be able to track down.

The {author} and {name} variables are not being returned within my comment_entries tag.

I have a stripped down template that is just pulling in data and testing the edit_comments plugin.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{exp:edit_comments:javascript edit_link='includes/_edit_comments'}
</head>
<
body>
{exp:comment:entries weblog="forums" sort="desc" limit="20"}

<p>By name should show up here >( {name} )  author here > ( {author} ) on {comment_date format="%Y %m %d"}</p>
{exp:edit_comments:wrap_comment comment_id="{comment_id}" author_id="{author_id}"}
{comment}
{
/exp:edit_comments:wrap_comment}
{exp
:edit_comments:edit_link comment_id="{comment_id}" author_id="{author_id}"}
<div class="posted">[{text}Edit Comment{/text}]</div>
{/exp:edit_comments:edit_link}

{
/exp:comment:entries}

</body>
</
html>

Its results are here.

Would someone have an idea as to how to address?

Thanks

Running ExpressionEngine 1.6.2
(1.6.3 Change Log does not refer to any updates that would affect what I’m seeing)

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 09 April 2008 11:12 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36394
Joined  05-14-2004

Hi, hhg - can you try this without the plugin code, and see if that fixes it? Just the comment entries tag.

 Signature 
Profile
MSG
 
 
Posted: 09 April 2008 12:04 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1105
Joined  04-14-2007

Hi Lisa,

I’ve removed all references to the plugin as well as the associated JS. Still the same results.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 09 April 2008 12:11 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36394
Joined  05-14-2004

Are you running any extensions, hhg? Also, were these comments left in EE, or are these from an import?

 Signature 
Profile
MSG
 
 
Posted: 09 April 2008 12:38 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1105
Joined  04-14-2007

LG Add Sitename (v.1.0.1)
Publish Page Improvements (v.2.0.0)
User (v.1.0.0)
File, by Mark Huot (v.3.1.1)

I will say, I’ve disabled all (along with the User Module) and still have this issue.

The weird thing is this is not happening in the weblog entries tag. {author} is available.

Yes, the comments were left via EE’s comment_form.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 09 April 2008 12:49 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36394
Joined  05-14-2004

That’s really odd.  On my site I get:

By name should show up here >( Lisa ) author here > ( Lisa ) on 2008 04 07

By name should show up here >( Johnathan ) author here > ( Johnathan ) on 2008 04 07

By name should show up here >( Johnathan ) author here > ( Johnathan ) on 2008 04 07

By name should show up here >( Johnathan ) author here > ( Johnathan ) on 2008 04 07


Can you create a totally blank test template - no markup or anything, no plugins - and put this code:

{exp:comment:entries weblog="forums" sort="desc" limit="20"}

<p>By name should show up here >( {name} )  author here > ( {author} ) on {comment_date format="%Y %m %d"}</p>

{/exp:comment:entries}

and visit it with a URL title appended?

 Signature 
Profile
MSG
 
 
Posted: 09 April 2008 12:50 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1105
Joined  04-14-2007

Ok…I just checked these comments in my CP and it seems the author names are no longer there.

I just installed the User Module yesterday morning…could this have overwritten that data?

I just added a comment and my new comment is displaying the {author} variable. This is weird. I suppose moving forward I will continue to see the {author} info but I’m concerned that the possible cause of this is the new Module I’m using.

Over to Solspace I go…thanks…sorry for the bother.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 09 April 2008 12:55 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36394
Joined  05-14-2004

No worries, hhg.  I’m going to keep this open - come back and let us know what happened, please? Thanks!

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 77454 Total Logged-in Users: 43
Total Topics: 101500 Total Anonymous Users: 27
Total Replies: 544224 Total Guests: 285
Total Posts: 645724    
Members ( View Memberlist )