Support Forum

Avatars

24 Answers

New Answer

AT Alex T
Alex T
Member

Yellow Swordfish said
Can you explain what you mean by ‘group break’?

That vertical line to the left of replies.  That’s what it’s called div.groupbreak.  Additionally, would it be possible to add stats underneath the bread crumbs in the spforumviewheader?  Let’s say top poster, then have that person’s avatar there…etc?

IK Ike
Ike
Member

The groupbreaks just separate out the columns – So if you want to move something next to a groupbreak it would just be the first or last rule in a column (i.e either side). I’m not sure what you’re referring to when you say “new” though! Last I saw of it Andy had said it would have to be custom code.. Can you elaborate?

If you are talking about squeezing something in next to the topic icon, you might need to widen the column. Be careful as that can have a knock on effect to the other columns. Aim for about 99% width overall!

As to the stats under the breadcrumbs, I would have to have a play around locally before posting a method, won’t have a chance to do that until later. Maybe Andy or Steve can point you in the right direction, if not I will take a look..

AT Alex T
Alex T
Member

Ike said
The groupbreaks just separate out the columns – So if you want to move something next to a groupbreak it would just be the first or last rule in a column (i.e either side). I’m not sure what you’re referring to when you say “new” though! Last I saw of it Andy had said it would have to be custom code.. Can you elaborate?

If you are talking about squeezing something in next to the topic icon, you might need to widen the column. Be careful as that can have a knock on effect to the other columns. Aim for about 99% width overall!

As to the stats under the breadcrumbs, I would have to have a play around locally before posting a method, won’t have a chance to do that until later. Maybe Andy or Steve can point you in the right direction, if not I will take a look..

By new I mean adding an icon that would alert someone that this thread has a new reply, though I’m assuming it can’t be done?  It would be cool if I could add something like Top Poster and next to this their forum avatar.      

MP Mr Papa
Mr Papa
Member

we already have icons that change when there is a new icon…  are you not seeing a custom forum icon when unread in the forum?

where would top poster come from?  just something you assign?  if so, take a look at forum – components – forum ranks…  namely the special ranks…

AT Alex T
Alex T
Member

Mr Papa said
we already have icons that change when there is a new icon…  are you not seeing a custom forum icon when unread in the forum?

where would top poster come from?  just something you assign?  if so, take a look at forum – components – forum ranks…  namely the special ranks…

I changed my forum to show the user’s avatar on the left column where the stock icons were: http://www.ohhtee.com/forum/guests/ here’s the open forum in case you need to see.  The top poster I was thinking to pull it from the actual stats from the bottom (no clue how I would do that), or let’s say the person who receives the most thanks (no clue how I would do that)…etc. People love seeing their stats and be recognized, which they then engage even more in the forum.     

MP Mr Papa
Mr Papa
Member

you will have to add it yourself…

so in your group view template file spGroupView.php, where you output the avatar, right next to it, just do something like:

if ($spThisForum->unread > 0) {
# output your icon
}
AT Alex T
Alex T
Member

Mr Papa said
you will have to add it yourself…

so in your group view template file spGroupView.php, where you output the avatar, right next to it, just do something like:

<br />
if ($spThisForum->unread > 0) {
# output your icon
}
<br />

I’m sorry, I am having a dumb moment.  Can you elaborate on this?

MP Mr Papa
Mr Papa
Member

sorry, since you made a code change to output the avatar instead, assumed you were comfortable coding…

can  you post the code  you changed to display the avatar instead of icon?  we can then show you how to add an icon display next to it..  assuming that is what you want from my understanding…

MP Mr Papa
Mr Papa
Member

scratch that… reading a bit further back in topic and looking at what you linked to, was confused by your use of group break…  which indicated to me group view… but you are on forum view…

so the change was in spForumView.php…  and you would output the code I gave you right after where you inserted the spAvatar function…

MP Mr Papa
Mr Papa
Member

so after

sp_UserAvatar(‘tagClass=spRowIcon spLeft&context=user’, $spThisTopic->first_user_id);

do something like:

if ($spThisTopic->unread > 0) { 
    echo '<img src="http//xxxxxx" />';
}

where xxxxx would be the image to display if unread posts in the topic…