Question about XenForo

Bruteforce™

Up-and-Coming Sensation
Joined
Jun 13, 2011
Messages
437
Reaction score
0
FP$
6
Okay so my forum will be running on xenforo
but when i write it shows only the avatar of the user and the rank title .. how can i make it to show post count and when he did join ?

Thanks a lot.
I'm giving 20fp who helps me do it.
 
Maybe you are not looking at the right place?


ACP -> Appearance -> Style Properties -> {Your style} -> Message Elements
 
In the adminbb thread i gave u the name of Kaiser. Was red ..
how can i make that in my forum too?

And where in the acp can i find EXTRA.css and

message_user_info ABOVE <xen:if is="!{$isQuickReply}">

Sorry for the stupid questions , but i'm new with XenForo.
 
ACP -> Appearance -> Templates

In the search box put: EXTRA.css
Click on EXTRA.css | Put the following code on the box

Code:
.ribbon { font-size: 10px; font-weight: bold; margin: -5px -5px -2px; text-align: center; }
.ribbon li
{
	border-radius: 3px;
	border-top-right-radius: 0px;
	border-top-left-radius: 0px;
	box-shadow: 0px 1px 3px rgba(0,0,0, 0.25);
	padding: 1px;
	position: relative;
	margin-bottom: 5px;
}
.ribbon li:last-child { margin-bottom: 0px; }
.ribbon li div { position: absolute; top: -4px; width: 4px; height: 4px; }
.ribbon li .right { border-top-right-radius: 3px; right: -1px; }
.ribbon li .left { border-top-left-radius: 3px; left: -1px; }

.ribbonStaff
{
	background: @primaryLight url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
	border: 1px solid @primaryLight;
	color: @contentBackground;
}
.ribbonStaff div { background-color: @primaryLight;  }
Save Changes

Go back to Templates
In the search box put: message_user_info

Click on the first option.
Delete everything in the box and add the following:
Code:
<xen:require css="message_user_info.css" />

<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">	
<div class="messageUserBlock">
	<xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
		<div class="avatarHolder">
			<xen:avatar user="$user" size="m" />
			<!-- slot: message_user_info_avatar -->
		</div>
	</xen:hook>
<xen:if hascontent="true">
	<ul class="ribbon">
		<xen:contentcheck>
			<xen:if is="{xen:helper ismemberof, $user, 4}">
				<li class="ribbonStaff">
					<div class="left"></div>
					<div class="right"></div>
					Staff / Moderator
				</li>
			</xen:if>
		</xen:contentcheck>
	</ul>
</xen:if>
<xen:if is="!{$isQuickReply}">
	<xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
		<h3 class="userText">
			<xen:username user="$user" itemprop="name" rich="true" />
			<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
			<!-- slot: message_user_info_text -->
		</h3>
	</xen:hook>
		
	<xen:if hascontent="true">
		<div class="extraUserInfo">
			<xen:contentcheck>
			<xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
				<xen:if is="@messageShowRegisterDate">
					<dl class="pairsInline">
						<dt>{xen:phrase member_since}:</dt>
						<dd>{xen:date $user.register_date}</dd>
					</dl>
				</xen:if>
				
				<xen:if is="@messageShowMessageCount">
					<dl class="pairsInline">
						<dt>{xen:phrase message_count}:</dt>
						<dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed">{xen:number $user.message_count}</a></dd>
					</dl>
				</xen:if>
				
				<xen:if is="@messageShowTotalLikes">
					<dl class="pairsInline">
						<dt>{xen:phrase likes_received}:</dt>
						<dd>{xen:number $user.like_count}</dd>
					</dl>
				</xen:if>
				
				<xen:if is="@messageShowTrophyPoints">
					<dl class="pairsInline">
						<dt>{xen:phrase trophy_points}:</dt>
						<dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger concealed">{xen:number $user.trophy_points}</a></dd>
					</dl>
				</xen:if>
			
				<xen:if is="@messageShowGender AND {$user.gender}">
					<dl class="pairsInline">
						<dt>{xen:phrase gender}:</dt>
						<dd itemprop="gender"><xen:if is="{$user.gender} == 'male'">{xen:phrase male}<xen:else />{xen:phrase female}</xen:if></dd>
					</dl>
				</xen:if>
				
				<xen:if is="@messageShowOccupation AND {$user.occupation}">
					<dl class="pairsInline">
						<dt>{xen:phrase occupation}:</dt>
						<dd itemprop="role">{xen:string censor, $user.occupation}</dd>
					</dl>
				</xen:if>
				
				<xen:if is="@messageShowLocation AND {$user.location}">
					<dl class="pairsInline">
						<dt>{xen:phrase location}:</dt>
						<dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
					</dl>
				</xen:if>
			
				<xen:if is="@messageShowHomepage AND {$user.homepage}">
					<dl class="pairsInline">
						<dt>{xen:phrase home_page}:</dt>
						<dd><a href="{xen:string censor, $user.homepage}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor, $user.homepage}</a></dd>
					</dl>
				</xen:if>
				
				<xen:comment>
				<xen:foreach loop="{$user.identities}" key="$service" value="$account">
					<dl class="pairsInline">
						<dt>{$service}</dt>
						<dd>{$account}</dd>
					</dl>
				</xen:foreach>
				</xen:comment>
			
			</xen:hook>
			</xen:contentcheck>
		</div>
	</xen:if>
		
</xen:if>

	<span class="arrow"><span></span></span>
</div>		
</div>
 
To make you username red go to the admincp >> users >> usergroups >> administrative

put this css in the User Name CSS

Code:
color: #FF1A00; font-size: 13px; font-weight: bold;
 
To style the usernames you can set CSS for your usergroups:
Admin CP -> Users -> List User Groups -> {click a group} -> User Name CSS.




In the message_user_info (The one I told you to edit) find Staff / Moderator and change to whatever you want.
 
Thanks a lot guys
Btw maybe i'll be needing someone to help me with Xenforo software
if anyone can please pm me and i'll give you my msn or you give yours so you can add me , so we can chat about it in msn.
Shady - 20FP sent.
 
Back
Top Bottom