Jump to content

Group formatting on post authors name


lotsen

Recommended Posts

Posted

Is it easily possible to apply group styles to users names when they make a post? I think it'd be in the Edit HTML & CSS > Forums > postContainer file but I'm not sure how to apply the group formatting rule.

aa.thumb.PNG.851be24ba27d2b8574d9e6b500b

Posted

Is it easily possible to apply group styles to users names when they make a post? I think it'd be in the Edit HTML & CSS > Forums > postContainer file but I'm not sure how to apply the group formatting rule.

aa.thumb.PNG.851be24ba27d2b8574d9e6b500b

​.

You want to format the members name ,, or is there anything more you wanna have then in this picture ?

 

2015-05-04_0-35-20.thumb.png.48d2c3f2433

 

.

Posted

I made the group color have a background image and now i set a blue color. I want the users post display name to use the same formatting that was set in group settings, like it does in "Who's Online". Right now the name "Test" is black text when he posts, not the groups format/style.


bb.thumb.PNG.b0ae331db3d547102721e3dd659

bb2.thumb.PNG.3e586029a8e758a09547b37875

bb3.thumb.PNG.ee7217d5975f9c4ec82ac8d98e

Posted

I made the group color have a background image and now i set a blue color. I want the users post display name to use the same formatting that was set in group settings, like it does in "Who's Online". Right now the name "Test" is black text when he posts, not the groups format/style.


bb.thumb.PNG.b0ae331db3d547102721e3dd659

bb2.thumb.PNG.3e586029a8e758a09547b37875

bb3.thumb.PNG.ee7217d5975f9c4ec82ac8d98e

​.

You will have to change the member name format to this ..

I didn't check it fully in postContainer ..

Edit: don't take my advise here .. the naming is totally different then the who's online format ..

 

	{{if $groupIdForFormatting}}
		{expression="\IPS\Member\Group::load( $groupIdForFormatting )->formatName( $name )" raw="true"}
	{{else}}
		{$name}
	{{endif}}

 

.

Posted

Thanks, but that didn't do anything.

I think I have to modify this line in Forums > Topics > postContainer

 

<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'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3>

 

Posted

Replacing

<strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong>

with

{template="userLinkFromData" group="global" app="core" params="$comment->author()->member_id, $comment->author()->name, $comment->author()->members_seo_name, $comment->author()->member_group_id"}

worked.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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