Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Avatars
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 5:12 pm

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
}
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 13, 2015 - 5:28 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 5:35 pm

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...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 5:38 pm

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...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 5:41 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626