Dane Posted April 25, 2017 Share Posted April 25, 2017 Group icon on forum Hi guys, can you tell me how do i add group icons on my topic page? I know there was a topic about this but i tried what they said here and it didn't worked I tried to copy the code from profile page What do i have: What i want: Link to comment Share on other sites More sharing options...
0 Dane Posted April 26, 2017 Author Share Posted April 26, 2017 I've made it this way: <li class='ipsResponsive_hidePhone aupBorder' style="text-align:left;padding-left:10px"> <hr id="hr"> <span class='aupTitle'><i class="fa fa-id-card-o" aria-hidden="true"></i> {lang="Member ID"}:</span> <span class='aupContent textright' >{$comment->author()->member_id}</span> <br> <span class='aupTitle '><i class="fa fa-pencil-square-o" aria-hidden="true"></i> {lang="Content_Count"}:</span> <span class='aupContent textright'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</span> <br> <span class='aupTitle'><i class="fa fa-calendar-o" aria-hidden="true"></i> {lang="joined"}:</span> <span class='aupContent textright'>{datetime="$comment->author()->joined" dateonly="true"}</span> <br> <span class='aupTitle'><i class="fa fa-trophy" aria-hidden="true"></i> {lang="members_days_won_count"}:</span> <span class='aupContent'>{number="$comment->author()->getReputationDaysWonCount()"}</span> <br> <span class='aupTitle'><i class="fa fa-thumbs-o-up" aria-hidden="true"></i> {lang="Total_Rep"}:</span> <span class='aupContent'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span> </li> I think you still need the plugin for images "Advanced User Info Panel" 1 Link to comment Share on other sites More sharing options...
0 GradientWizzard Posted April 25, 2017 Share Posted April 25, 2017 Admin CP > Members > Groups > Group Icon? Also check if you have <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> {{endif}} in you theme > forums > front > topics > postContainer Achievements: February 14 2013 - Joined WebFlake & Became Moderator.March 26 2013 - Became a Dad of 1 kid.April 8 2015 - Became a Dad of 2 kids.July 15 2015 - Retired as a Moderator.November 11 2016 - Passed my Car Driving Licence.April 13 2017 - Became apart of the Junior Moderator Team. Link to comment Share on other sites More sharing options...
0 Dane Posted April 25, 2017 Author Share Posted April 25, 2017 33 minutes ago, Hidden Ninja said: Admin CP > Members > Groups > Group Icon? Also check if you have <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> {{endif}} in you theme > forums > front > topics > postContainer I do have the code in postcontiner but it doesn't appear on topic, and i uploaded group icons for every group Link to comment Share on other sites More sharing options...
0 GradientWizzard Posted April 25, 2017 Share Posted April 25, 2017 Can you link me to the forum please? Achievements: February 14 2013 - Joined WebFlake & Became Moderator.March 26 2013 - Became a Dad of 1 kid.April 8 2015 - Became a Dad of 2 kids.July 15 2015 - Retired as a Moderator.November 11 2016 - Passed my Car Driving Licence.April 13 2017 - Became apart of the Junior Moderator Team. Link to comment Share on other sites More sharing options...
0 Dane Posted April 25, 2017 Author Share Posted April 25, 2017 1 minute ago, Hidden Ninja said: Can you link me to the forum please? Check pm's Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted April 26, 2017 Share Posted April 26, 2017 (edited) Have you added the group icon in AdminCP > Community > Members > Groups > Edit Group > Group Icon ? like @Hidden Ninja suggested ? Also are you using a plugin to get the display like that ? Edited April 26, 2017 by Cookie Monster Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
0 Dane Posted April 26, 2017 Author Share Posted April 26, 2017 Just now, Cookie Monster said: @Dane are you on about the discord icon ? I mean the member icons like Jr moderator, member , Administrator etc. https://webflake.sx/uploads/themes/monthly_2015_10/Badge2JuniorModerator.png.5c92deeec701dae91083cfb7bf4f9a90.png.pagespeed.ce.wGELBZY--H.png Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted April 26, 2017 Share Posted April 26, 2017 Just now, Dane said: I mean the member icons like Jr moderator, member , Administrator etc. https://webflake.sx/uploads/themes/monthly_2015_10/Badge2JuniorModerator.png.5c92deeec701dae91083cfb7bf4f9a90.png.pagespeed.ce.wGELBZY--H.png I noticed i rewrote my question Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
0 Dane Posted April 26, 2017 Author Share Posted April 26, 2017 Just now, Cookie Monster said: I noticed i rewrote my question Ohh, yea i use Advanced User Info Panel", and i uploaded them Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted April 26, 2017 Share Posted April 26, 2017 So the code is not located where you looked, its located in the template for Advanced User Info Panel. It's not passing the image only the text so thats where you have to alter the code for it. Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
0 Dane Posted April 26, 2017 Author Share Posted April 26, 2017 2 minutes ago, Cookie Monster said: So the code is not located where you looked, its located in the template for Advanced User Info Panel. It's not passing the image only the text so thats where you have to alter the code for it. The plugin changes only postcontiner, and i added the code for g_icons and it doesn't change anything Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted April 26, 2017 Share Posted April 26, 2017 13 minutes ago, Dane said: The plugin changes only postcontiner, and i added the code for g_icons and it doesn't change anything It changes alot more then postcontainer, it INJECTS it's code into post container, so whatever you do in post container will not work as the plugins code will overwrite yours Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
0 Dane Posted April 26, 2017 Author Share Posted April 26, 2017 (edited) 17 minutes ago, Cookie Monster said: It changes alot more then postcontainer, it INJECTS it's code into post container, so whatever you do in post container will not work as the plugins code will overwrite yours yea, you are right about overwriting but do you have any solution? this is my postContainer if it helps.. {{$idField = $comment::$databaseColumnId;}} {{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}} {{if $comment->isIgnored()}} <div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'> {lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a> <ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'> <li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li> <li class='ipsMenu_sep ipsJS_show'><hr></li> <li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li> <li class='ipsMenu_item'><a href='{url="app=core&module=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li> </ul> </div> {{endif}} <a id='comment-{$comment->$idField}'></a> <article itemscope {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}}{{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight and settings.reputation_enabled}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'> {{if $item->isQuestion() and !$comment->new_topic}} {template="postRating" group="topics" app="forums" params="$item, $comment, $votes"} {{endif}} <aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium'> <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'> {template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3> <ul class='cAuthorPane_info ipsList_reset'> {{if $comment->author()->member_title && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li> {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->rank['title']}</li> {{endif}} {{if $comment->author()->rank['image'] && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'>{$comment->author()->rank['image']|raw}</li> {{endif}} <li class='cAuthorPane_photo'> {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} </li> <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> {{endif}} {{if $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'> <span class='aupTitle'><i class="fa fa-id-card-o" aria-hidden="true"></i> {title}:</span> <span class='aupContent'>{content}</span> </li> <br/> <hr class='aupHr'> <li class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</li> {{if $comment->author()->reputationImage()}} <li class='ipsPad_half ipsResponsive_hidePhone'> <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''> </li> {{endif}} {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"} {{endif}} </ul> </aside> <div class='ipsColumn ipsColumn_fluid'> {template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"} </div> </article> Edited April 26, 2017 by Cookie Monster Kindly added some spoilertags 1 Link to comment Share on other sites More sharing options...
0 GradientWizzard Posted April 26, 2017 Share Posted April 26, 2017 @Cookie Monster has rewrote the whole code for you and it's working, i'll go ahead and upload it for you 1 Achievements: February 14 2013 - Joined WebFlake & Became Moderator.March 26 2013 - Became a Dad of 1 kid.April 8 2015 - Became a Dad of 2 kids.July 15 2015 - Retired as a Moderator.November 11 2016 - Passed my Car Driving Licence.April 13 2017 - Became apart of the Junior Moderator Team. Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted April 26, 2017 Share Posted April 26, 2017 Glad you got it resolved 1 Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
Question
Dane
Group icon on forum
Hi guys, can you tell me how do i add group icons on my topic page?
I know there was a topic about this but i tried what they said here and it didn't worked
I tried to copy the code from profile page
What do i have:
What i want:
Link to comment
Share on other sites
16 answers to this question
Recommended Posts