Перейти до змісту
Домент ipb-board.ru продається.

Статус в хуке "связь с администрацией"

Рекомендовані відповіді

Опубліковано

Всем привет.

Такая проблема, как статус подвинуть чуть в бок, что бы статус был перед аватаркой, а не после. Спасибо.

Вот собственно код.

<div class="ipsSideBlock clearfix">	<h3>Администрация</h3>  	<div class="_sbcollapsable">	  	<if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php>	  		<div class="wa_frilance_admin">	  			<input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'>	  			<div style="display: none;">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_portfolio']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='Ссылка на ВК' value="{$this->memberData['wa_frilance_min']}">	  				<input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'>	  			</div>	  		</div>	  	</if>  		<foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);</php>  			<if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''">  				<div class="wa_frilance">  					<a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left">  						<img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini">  					</a>  					  					<php>					if($user['last_activity'] > time() - 60*5)						$user['_online'] = TRUE;					else						$user['_online'] = FALSE;						  					$user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']'  ) );  					</php>  					<div class="wa_frilance_info">  						<div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span></if></div><style>.ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}</style>  						<div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div>  					</div><a target="_blank" data-tooltip="ВКонтакте" href="{$user['wa_frilance_min']}" class="ipsButton_secondary wa_frilance_mon""><i class="fa fa-vk" style="    font-size: 13px;    margin-top: 3px;    color: #5c6773;"></i></a>  					<a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_portfolio']}?chat" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-skype" style="    font-size: 13px;    margin-top: 3px;    color: #5c6773;"></i></a>  					<a href="{$this->settings['board_url']}/index.php?app=members&module=messaging&section=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style="    font-size: 13px;    margin-top: 3px;    color: #5c6773;"></i></a>  				</div>  			</if>  		</foreach>	</div></div><script>jQuery(document).ready( function(){	jQuery(".wa_frilance_open").click( function(){		jQuery(".wa_frilance_open").next("div").fadeToggle();	})	jQuery(".wa_frilance_save").click( function(){		jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: "test"}, function(data){			location.reload();		})	})});</script> 

post-22-0-61498400-1445777529.jpg

Опубліковано
  • Адміністратор

Замени на:
 

<div class="ipsSideBlock clearfix">	<h3>Связь с Администрацией</h3>  	<div class="_sbcollapsable">	  	<if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_money'] = htmlspecialchars($this->memberData['wa_frilance_money']);$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php>	  		<div class="wa_frilance_admin">	  			<input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'>	  			<div style="display: none;">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Ссылка на стр вк' value="{$this->memberData['wa_frilance_portfolio']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='оставить поле пустым' value="{$this->memberData['wa_frilance_min']}" style="width: calc( (100% - 30px) / 2);float: left;">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_money' type='text' maxlength='35' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_money']}" style="width: calc( (100% - 30px) / 2);float: right;">	  				<input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'>	  			</div>	  		</div>	  	</if>  		<foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);$user['wa_frilance_money'] = htmlspecialchars($user['wa_frilance_money']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);</php>  			<if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''">  				<div class="wa_frilance">  					<a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left">  						<img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini">  					</a>  					  					<php>					if($user['last_activity'] > time() - 60*5)						$user['_online'] = TRUE;					else						$user['_online'] = FALSE;						  					$user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']'  ) );  					</php>  					<div class="wa_frilance_info">  						<div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style="    color: #32E700;    font-size: 11px;    margin-top: 3px;"></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style="    color: #570000;    font-size: 11px;    margin-top: 3px;"></i></span></if></div>  						<div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div>  					</div>  					<a target="_blank" data-tooltip="Вконтакте" href="{$user['wa_frilance_portfolio']}" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-vk" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a>  					<a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_money']}?add" class="ipsButton_secondary wa_frilance_mon"><i class="fa fa-skype" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a><style>i.fa.fa-skype:hover {  color: #517C95;}</style>  					<a href="{$this->settings['board_url']}/index.php?app=members&module=messaging&section=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a>  				</div>  			</if>  		</foreach>	</div></div><script>jQuery(document).ready( function(){	jQuery(".wa_frilance_open").click( function(){		jQuery(".wa_frilance_open").next("div").fadeToggle();	})	jQuery(".wa_frilance_save").click( function(){		jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: jQuery(".wa_frilance_money").val()}, function(data){			location.reload();		})	})});</script>
Опубліковано
  • Автор

 

Замени на:

 

<div class="ipsSideBlock clearfix">	<h3>Связь с Администрацией</h3>  	<div class="_sbcollapsable">	  	<if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_money'] = htmlspecialchars($this->memberData['wa_frilance_money']);$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php>	  		<div class="wa_frilance_admin">	  			<input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'>	  			<div style="display: none;">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Ссылка на стр вк' value="{$this->memberData['wa_frilance_portfolio']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='оставить поле пустым' value="{$this->memberData['wa_frilance_min']}" style="width: calc( (100% - 30px) / 2);float: left;">	  				<input size='30' class='input_text wa_frilance_input wa_frilance_money' type='text' maxlength='35' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_money']}" style="width: calc( (100% - 30px) / 2);float: right;">	  				<input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'>	  			</div>	  		</div>	  	</if>  		<foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);$user['wa_frilance_money'] = htmlspecialchars($user['wa_frilance_money']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);</php>  			<if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''">  				<div class="wa_frilance">  					<a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left">  						<img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini">  					</a>  					  					<php>					if($user['last_activity'] > time() - 60*5)						$user['_online'] = TRUE;					else						$user['_online'] = FALSE;						  					$user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']'  ) );  					</php>  					<div class="wa_frilance_info">  						<div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style="    color: #32E700;    font-size: 11px;    margin-top: 3px;"></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style="    color: #570000;    font-size: 11px;    margin-top: 3px;"></i></span></if></div>  						<div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div>  					</div>  					<a target="_blank" data-tooltip="Вконтакте" href="{$user['wa_frilance_portfolio']}" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-vk" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a>  					<a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_money']}?add" class="ipsButton_secondary wa_frilance_mon"><i class="fa fa-skype" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a><style>i.fa.fa-skype:hover {  color: #517C95;}</style>  					<a href="{$this->settings['board_url']}/index.php?app=members&module=messaging&section=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style="    font-size: 14px;    margin-top: 3px;        color: #5D6069;  };"></i></a>  				</div>  			</if>  		</foreach>	</div></div><script>jQuery(document).ready( function(){	jQuery(".wa_frilance_open").click( function(){		jQuery(".wa_frilance_open").next("div").fadeToggle();	})	jQuery(".wa_frilance_save").click( function(){		jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: jQuery(".wa_frilance_money").val()}, function(data){			location.reload();		})	})});</script>

Спасибо, а как же все таки вот так сделать?

post-22-0-35957000-1445778608.png

Опубліковано
  • Адміністратор

Сам код отвечает:
 

<div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span></if></div>
Гість
Ця тема закрита для опублікування відповідей.