Jump to content

(NB40) Secondary Group Icons


Recommended Posts

  • 2 months later...
Posted
On 6/16/2015 at 3:51 PM, newbie LAC said:

Hello,

1. IPB version? 4.1.9

2. The error occurs in every topic? i cant install it.  error code : 1S111/1

3. Can you give me acp access? sure i cant pm u with details.

I hope you can reply to me :(

  • 4 weeks later...
Posted

Ive updated to the latest version and i am still having the problem with the icon showing above all of the other information, i would like it to always be at the bottom.

uyG9v34.png

Posted
On 03/05/2016 at 6:26 AM, newbie LAC said:

Hello,

You can change css selector. See example "Show icons above avatar" https://invisionpower.com/forums/topic/416464-nb40-secondary-group-icons/?do=findComment&comment=2594222

 

I wasn't able to get this working, this is my postcontainer code.

{{$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=members&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}

<a id='comment-{$comment->$idField}'></a>
<article itemscope {{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}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{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'>

		<ul class='cAuthorPane_info ipsList_reset'>
          			<li class='cAuthorPane_photo'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
			</li>
          <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break borderbot' itemprop="creator" itemscope itemtype="http://schema.org/Person">
        <strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong> 
        <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
        </h3>
			{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone ipsType_break borderbot'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li class='ipsResponsive_hidePhone ipsType_break borderbot'>{$comment->author()->rank['title']}</li>
			{{endif}}


          <li class='left borderbot'>Group: <span class='right'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</span></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 left borderbot'>Reputation: <span class='right'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></li>
          <li class='left borderbot'>Posts: <span class='right'>{$comment->author()->member_posts}</span></li>
				{{if $comment->author()->reputationImage()}}
					<li class='ipsPad_half ipsResponsive_hidePhone borderbot'>
						<img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
					</li>
				{{endif}}      
                    {{$joinDate = $comment->author()->get_joined()->format('M-Y');}}
          <li class='left borderbot'>{lang="joined"}: <span class='right'>$joinDate</span></li>
          {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>

Posted
19 hours ago, The.Reaper said:

I wasn't able to get this working, this is my postcontainer code.

Open xml file

      'selector' => '.cAuthorPane_photo + li + li',
      'type' => 'add_after',

and 

      'selector' => '.cAuthorPane_photo + li',
      'type' => 'add_after',

change to 

      'selector' => '.cAuthorPane_info',
      'type' => 'add_inside_end',

 

Posted

I just updeated from 4.0.x to 4.1.x 

On profile page it only shows the primary user group icon - next to posts though it shows them all

Bug?

Posted
13 hours ago, Dallas Rankin said:

I just updeated from 4.0.x to 4.1.x 

On profile page it only shows the primary user group icon - next to posts though it shows them all

Bug?

Hello,

I can't reproduce. Have you installed latest version of plugin?

Posted
4 hours ago, newbie LAC said:

Hello,

I can't reproduce. Have you installed latest version of plugin?

My bad, that fixed it. Thanks.

  • 5 weeks later...
  • 1 month later...
  • 3 months later...
Posted

I get this error on two different fresh installs:

Quote

You don't have permission to access /admin/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

 

Posted
10 hours ago, ODDBALL118 said:

I get this error on two different fresh installs:

Hello,

Where you got an error? I've installed a new board and installed a plugin without any problems. Also settings works fine.

10 hours ago, ODDBALL118 said:

You don't have permission to access /admin/ on this server.

I think you need to contact to your hoster.

Posted
15 hours ago, Maniutek said:

Hello! I have a question, is the ability to alter the modification that instead of an image showing the name of the group?

Hello,

Yes. I remember I helped with this someone on PM.

Posted
2 minutes ago, Maniutek said:

Hello! A solution could be to ask? :)

Hello,

Edit 2 templates:

- For profiles. core - global - plugins - nbSecGroupIconsProfile

Find 

<img src='{file="$icon" extension="core_Theme"}' alt=''>

Change to 

{expression="\IPS\Member\Group::load( $grOther )->name"}

- For posts. core - global - plugins - nbSecGroupIconsPost

Find 

<img src='{file="$icon" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'>

Change to 

{expression="\IPS\Member\Group::load( $grOther )->name"}

If you want display formatted group names use 

{expression="\IPS\Member\Group::load( $grOther )->formattedName" raw="true"}

instead of 

{expression="\IPS\Member\Group::load( $grOther )->name"}

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...