Jump to content
DevFuse Forums

Warn Status + and - missing?


jamesxs

Recommended Posts

  • Management

Well the plus and minus shouldn't show on your own profile. That text can be aligned to the left, if you open your Admin CP > Look & Feel Tab > select skin > CSS tab > ipb_styles.css

 

Find:

	.author_info ul.user_fields li span.ft,
.author_info ul.user_fields li span.fc {
	display: block;
	float: left;
}

 

Replace With:

	.author_info ul.user_fields li span.ft,
.author_info ul.user_fields li span.fc {

}

Link to comment
Share on other sites

dont have that code, im using 3.0.1

 

seem to only have

 

* AUTHOR INFO (& RELATED) STYLES */

.author_info {
text-align: left;	
font-size: 0.9em;
border-right: 1px solid #e4ebf3;
margin: 15px -5px 10px 0px;
width: 225px;
float: left;
color: #2c3644;
}

.author_info.no_rep {
	margin-bottom: 15px;
}

.author_info li.avatar, .author_info li.group_icon, .author_info li.title {
	text-align: center;
}

.author_info dl {
	font-size: 0.9em;
	margin: 8px 8px 15px 8px;
}

.author_info dt,
.author_info dd {
	display: block;
	color: #2c3644;
}

.author_info dt a,
.author_info dd a {
	color: #2c3644;
	text-decoration: none;
}

.author_info dt a:hover,
.author_info dd a:hover {
	color: #000;
	text-decoration: underline;
}

.author_info dt {
	font-weight: bold;	
	text-align: right;
	width: 33%;
	clear: both;
	float: left;
}

.author_info dd {
	margin-left: 37%;
}

.author_info .title {
	margin-top: 4px;
}

Link to comment
Share on other sites

  • Management

What's your Global Templates > userInfoPane template look like? IPB3.0.3 looks something like this. CSS is not my specialty so I'm really stabbing in the dark here.

 

	<ul class='user_fields'>
	<li>
		<span class='ft'>{$this->lang->words['m_group']}</span>
		<span class='fc'>{$author['_group_formatted']}</span>
	</li>
	<if test="ismember:|:$author['member_id']">
		<li>
			<span class='ft'>{$this->lang->words['m_posts']}</span>
			<span class='fc'>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>
		</li>
		<li>
			<span class='ft'>{$this->lang->words['m_joined']}</span>
			<span class='fc'>{parse date="$author['joined']" format="joined"}</span>
		</li>
	</if>
	<if test="authorcfields:|:$author['custom_fields'] != """>
		<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
			<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
				<if test="$field != ''">
					<li>
						{$field}
					</li>
				</if>
			</foreach>
		</foreach>
	</if>
</ul>

Link to comment
Share on other sites

ul class='user_details'>
	<if test="avatar:|:$author['member_id'] AND $author['avatar']">
		<li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li>
	<else />
           <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{$this->settings['public_dir']}/style_avatars/blank_avatar.gif" alt=""></a></li>
       </if>
	<if test="membertitle:|:$author['title']">
		<li class='title'>{$author['title']}</li>
	</if>
	<if test="rankimage:|:$author['member_rank_img']">
		<li class='group_icon'>
		<if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
			<img src='{$author['member_rank_img']}' alt='{$this->lang->words['icon']}' />
		<else />
			{$author['member_rank_img']}
		</if>
		</li>
	</if>
</ul>
<div style='margin: 0 auto;'>
	<ul class='user_controls clear'>
		<if test="friendop:|:$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends'] && $author['member_id']">
			<if test="isfriend:|:IPSMember::checkFriendStatus( $author['member_id'] )">
				<li class='mini_friend_toggle is_friend' id='friend_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=remove&member_id={$author['member_id']}" base="public"}' title='{$this->lang->words['remove_friend']}'>{parse replacement="remove_friend"}</a></li>
			<else />
				<li class='mini_friend_toggle is_not_friend' id='friend_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=add&member_id={$author['member_id']}" base="public"}' title='{$this->lang->words['add_friend']}'>{parse replacement="add_friend"}</a></li>
			</if>
		</if>
		<if test="sendpm:|:$this->memberData['g_use_pm'] AND $this->memberData['member_id'] != $author['member_id'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' ) && $author['member_id']">
			<li class='pm_button' id='pm_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&module=messaging&section=send&do=form&fromMemberID={$author['member_id']}" base="public"}' title='{$this->lang->words['pm_member']}'>{parse replacement="send_msg"}</a></li>
		</if>
		<if test="hasblog:|:$author['has_blog'] AND IPSLib::appIsInstalled( 'blog' )">
			<li><a href='{parse url="app=blog&module=display&section=blog&mid={$author['member_id']}" base="public"}' title='{$this->lang->words['view_blog']}'>{parse replacement="blog_link"}</a></li>
		</if>
		<if test="hasgallery:|:$author['has_gallery'] AND IPSLib::appIsInstalled( 'gallery' )">
			<li><a href='{parse url="app=gallery&module=user&section=user&user={$author['member_id']}" base="public"}' title='{$this->lang->words['view_gallery']}'>{parse replacement="gallery_link"}</a></li>
		</if>
	</ul>
</div>
<ul class='user_fields'>
	<li>
		<span class='ft'>{$this->lang->words['m_group']}</span>
		<span class='fc'>{$author['_group_formatted']}</span>
	</li>
	<if test="ismember:|:$author['member_id']">
		<li><br>
			<span class='ft'>{$this->lang->words['m_posts']}</span>
			<span class='fc'>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>
		</li>
		<li>
			<span class='ft'>{$this->lang->words['m_joined']}</span>
			<span class='fc'>{parse date="$author['joined']" format="joined"}</span>
		</li>
	</if>
	<if test="authorcfields:|:$author['custom_fields'] != """>
		<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
			<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
				<if test="$field != ''">
					<li>
						{$field}
					</li>
				</if>
			</foreach>
		</foreach>
	</if>
</ul>


<!--	<table class='user_fields'>
	<tr>
		<th>{$this->lang->words['m_group']}</th>
		<td>{$author['_group_formatted']}</td>
	</tr>
	<if test="ismember:|:$author['member_id']">
		<tr>
			<th>{$this->lang->words['m_posts']}</th>
			<td>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</td>
		</tr>
		<tr>
			<th>{$this->lang->words['m_joined']}</th>
			<td>{parse date="$author['joined']" format="joined"}</td>
		</tr>
	</if>
	<if test="authorcfields:|:$author['custom_fields'] != """>
		<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
			<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
				<tr>
					{$field}
				</tr>
			</foreach>
		</foreach>
	</if>
</table>
<dl class='clearfix'>
	<dt>{$this->lang->words['m_group']}</dt>
	<dd>{$author['_group_formatted']}</dd>
	<if test="ismember:|:$author['member_id']">
		<dt>{$this->lang->words['m_posts']}</dt>
		<dd>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</dd>
		<dt>{$this->lang->words['m_joined']}</dt>
		<dd>{parse date="$author['joined']" format="joined"}</dd>
	</if>

	<if test="authorcfields:|:$author['custom_fields'] != """>
		<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
			<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
		{$field}
			</foreach>
		</foreach>
	</if>
</dl>-->
<if test="authorwarn:|:$author['warn_percent'] !== NULL">
	<br class='clear' />
	<div class='warn_panel clear rounded'>
		<if test="$this->settings['warn_show_rating']">
			<strong><a href='{parse url="app=members&module=warn&section=warn&do=view&mid={$author['member_id']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>
			<p class='rating_mode user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
				<if test="changewarn:|:$author['can_edit_warn']">
					<a href='{parse url="app=members&module=warn&section=warn&type=minus&mid={$author['member_id']}&t=0&st=0" base="public"}' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>
				</if>
				< {$this->settings['warn_min']} ( {$author['warn_level']} ) {$this->settings['warn_max']} >
				<if test="changewarn:|:$author['can_edit_warn']">
					<a href='{parse url="app=members&module=warn&section=warn&type=add&mid={$author['member_id']}&t={$this->request['t']}&st={$this->request['st']}" base="public"}' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a>
				</if>
			</p>
		<else />
			<if test="changewarn:|:$author['can_edit_warn']">
				<a href='{parse url="app=members&module=warn&section=warn&type=add&mid={$author['member_id']}&t={$this->request['t']}&st={$this->request['st']}" base="public"}' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a><a href='{parse url="app=members&module=warn&section=warn&type=minus&mid={$author['member_id']}&t=0&st=0" base="public"}' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>
			</if>
				<strong><a href='{parse url="app=members&module=warn&section=warn&do=view&mid={$author['member_id']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>
			<if test="highwarn:|:$author['warn_percent'] >= 80">
				<p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
			<else />
				<p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
			</if>
				<span style='width: {$author['warn_percent']}%'><span>{$this->lang->words['warn_level']} {$author['warn_percent']}%</span></span>
			</p>
		</if>
	</div>
</if>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...