I'm having a weird problem. I was working in groupjive and fixing little display issues. On the tabs, there's a "By [username]" posted under each thing they post, events, photos, videos, etc. I've attached a screenshot.
The only thing is, I am baffled as to why it's gone. Here are some code snippets:
Here's where I think that is happening, at least in the cbgroupjiveevents.php file:
Code:
$return .= '<div class="gjMainContent">'
. '<div class="gjMainContentLogo">' . $row->getOwnerAvatar( true ) . '</div>'
. '<div class="' . ( $hasMenu ? 'gjMainContentInfo' : 'gjMainContentInfoFull' ) . '">'
. '<div class="gjMainContentInfoTitle">' . $row->getTitle() . '</div>'
. '<div class="gjMainContentInfoBody">'
. '<div class="gjMainContentInfoBodyBy">' . CBTxt::Ph( 'By [owner] in [group] of [category]', array( '[owner]' => $row->getOwnerName( true ), '[group]' => $group->getName( 0, true ), '[category]' => $category->getName( 0, true ) ) ) . '</div>'
. $row->getEvent()
. '</div>'
. '<div class="gjMainContentInfoFooter">'
. $location
. '<div class="' . ( ! $row->isPast() ? 'gjEventActive' : 'gjEventExpired' ) . '">' . $row->getDate() . '</div>'
. '<div>'
. '<small>'
. '<a href="' . $attending_url . '">' . CBTxt::Ph( '[event_attend_yes] Attending', array( '[event_attend_yes]' => count( $attendees['yes'] ) ) ) . '</a> | '
. '<a href="' . $attending_url . '">' . CBTxt::Ph( '[event_attend_maybe] Maybe Attending', array( '[event_attend_maybe]' => count( $attendees['maybe'] ) ) ) . '</a> | '
. '<a href="' . $attending_url . '">' . CBTxt::Ph( '[event_attend_no] Not Attending', array( '[event_attend_no]' => count( $attendees['no'] ) ) ) . '</a>'
. '</small>'
. '</div>'
. '</div>'
. '</div>';
I DID change this code here - all I did was remove a DIV that was messing up my main template (see comment on last line), but I never touched any of the others so I can't figure out what I did to make that username disappear:
Code:
$return = '<div class="gjEventsAttending">'
. '<div class="gjMainTitle">' . CBTxt::Th( 'Attending' ) . '</div>'
. ( $attending['yes'] ? $attending['yes'] : '<div class="gjMainContent">' . CBTxt::Ph( 'No [users] are attending [event_title].', array( '[users]' => cbgjClass::getOverride( 'user', true ), '[event_title]' => $row->getTitle() ) ) ) . '</div>'
. '<div class="gjMainTitle">' . CBTxt::Th( 'Maybe Attending' ) . '</div>'
. ( $attending['maybe'] ? $attending['maybe'] : '<div class="gjMainContent">' . CBTxt::Ph( 'No [users] are maybe attending [event_title].', array( '[users]' => cbgjClass::getOverride( 'user', true ), '[event_title]' => $row->getTitle() ) ) ) . '</div>'
. '<div class="gjMainTitle">' . CBTxt::Th( 'Not Attending' ) . '</div>'
. ( $attending['no'] ? $attending['no'] : '<div class="gjMainContent">' . CBTxt::Ph( 'No [users] are not attending [event_title].', array( '[users]' => cbgjClass::getOverride( 'user', true ), '[event_title]' => $row->getTitle() ) ) ) . '</div>'
. '<div class="gjBottomRight"><input type="button" value="' . htmlspecialchars( CBTxt::T( 'Back' ) ) . '" class="gjButton gjButtonCancel" onclick="' . cbgjClass::getPluginURL( array( 'groups', 'show', $category->id, $group->id ), true ) . '" /></div><div class="gjClr"></div>'
. '<!--I removed a </div> from here that messed up the bottom of the attending page. Might need to put it back later if it causes problems-->';
}
Any ideas what might have gone wrong? I put the DIV back and reverted my CSS back to when I remember seeing that text there, but no such luck. It's just gone and I don't know how to get it back. Any help anyone can offer would be greatly appreciated.
Jenni