Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
razorvin

no_photo

Recommended Posts

подскажите плз как поставить NO_photo на ipb 2.3.6 пытался в show_profileвставлять

<td width="1%" align="right" class="row1">
<if="info['photo'] != """>{$info['photo']}</if>
<else><{NO_PHOTO}></else></td>

не помогло :)

Share this post


Link to post
Share on other sites

Нафик?

Начиная с версий 2.2 и так есть ноуфото в профиле. Зачем изобретать велосипед?

Share this post


Link to post
Share on other sites

не отображается в профиле :) как его поставит ? предскажите плз

fdsfsf.jpg

Share this post


Link to post
Share on other sites

Так это no-avatar, а не no-photo.

Не путайте теплое с мягким

 

В skin_topic > renderrow

Найти

<if="$author['id'] AND $author['avatar']">
				<a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}">{$author['avatar']}</a><br /><br />
			<else />
       			{$author['avatar']}<br /><br />
			</if>

Заменить на

<if="$author['id'] AND $author['avatar']">{$author['avatar']}<br /><else />
<img src='style_images/<#IMG_DIR#>/no-avatar.gif' border='0' alt='' /><br /></if>

 

Положить в папку картинок скина

no-avatar.gif

 

Ps

Если не выйдет, скачайте какой-нибудь мой скин под 2.3 и там посмотрите

Share this post


Link to post
Share on other sites

Вот как у вас в шаблони

<!--Begin Msg Number {$post['pid']}-->
<table class='ipbtable' cellspacing="0">
<tr>
	<td valign="middle" class="row5" width="1%">
		<a name="entry{$post['pid']}"></a>
		<if="$author['id']">
			<div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>
				<span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>
			</div>
			<!-- member menu -->
			<div class='popupmenu-new' id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>
				<div class='popupmenu-item-last'>
					<if="$author['members_display_name_short'] != $author['members_display_name']">
						<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>
					</if>
					<div style='float:right'>
						<div class='pp-image-thumb-wrap'>
							<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />
						</div>
						<if="$this->ipsclass->vars['pp_allow_member_rate']">
							<div style='margin-top:5px;margin-left:6px;'>
								<img src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />
							</div>
						</if>
					</div>
					<div class='popupmenu-item'>
						{$author['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>
					</div>
					<if="$author['has_blog'] AND $author['_cache']['my_blog']">
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}autocom=blog&blogid={$author['_cache']['my_blog']}'>{$this->ipsclass->lang['dd_my_blog']}</a>
						</div>
					</if>
					<if="$author['has_gallery']">
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}autocom=gallery&req=user&user={$author['id']}'>{$this->ipsclass->lang['dd_my_albums']}</a>
						</div>
					</if>
					<if="$this->ipsclass->member['id']">
						<div class='popupmenu-item'>
							<if="in_array( $author['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=remove&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>
							<else />
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=add&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>
							</if>
						</div>
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
						</div>
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
						</div>
						<div class='popupmenu-item-last'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
						</div>
					</if>
				</div>
			</div>
			<!-- member menu -->
			<script type="text/javascript">
				ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
			</script>
		<else />
			<span class="{$post['name_css']}">{$author['_members_display_name']}</span>
		</if>

	</td>
	<td class="row5" valign="middle" width="99%">
		<!-- POSTED DATE DIV -->
		<div style="float: left;">
			<span class="postdetails">{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span>
		</div>
		<!-- REPORT / DELETE / EDIT / QUOTE DIV -->
		<div align="right">
			<span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}
				<a title="{$this->ipsclass->lang['tt_link']}" href="#" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>
				<if="$this->ipsclass->member['is_mod']">
					| <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>
				</if>
			</span>
		</div>
	</td>
</tr>
<tr>
	<td valign="top" class="{$post['post_css']}">
<div class="info">
       	<span class="postdetails">
<if="$author['id'] AND $author['avatar']"><center>{$author['avatar']}</center><br /><else /><center><img src='style_images/<#IMG_DIR#>/no-avatar.gif' border='0' alt='' /></center><br /></if>
       		{$author['title']}<br />
       		{$author['member_rank_img']}<br /><br />
       		<div class="info2">{$author['member_group']}</div>
       		<if="$author['member_posts'] != """><div class="info2">{$author['member_posts']}</div></if>
       		<if="$author['member_joined'] != """><div class="info2">{$author['member_joined']}</div></if>
       		<if="$author['member_location'] != """><div class="info2">{$author['member_location']}</div></if>
       		<if="$author['member_number'] != """><div class="info2">{$author['member_number']}</div></if>
			<if="$author['custom_fields'] != """>
				<div class="info2">{$author['custom_fields']}</div>
			</if>
			<br />
       		{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
       	</span><br />
       	<img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br /> 
</div></td>
      <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>
		<!-- THE POST {$post['pid']} -->
		<div class="postcolor" id='post-{$post['pid']}'>
			{$post['post']}
			{$post['edit_by']}
			<if="$post['post_edit_reason'] != ''">
				<div class='post-edit-reason'>
					{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
				</div>
			</if>
			<!--IBF.ATTACHMENT_{$post['pid']}-->
		</div>

		{$post['signature']}
		<!-- THE POST -->		
	</td>
</tr>
<tr>
	<td class="formbuttonrow" nowrap="nowrap">
		<div style='text-align:left'><a href="javascript:scroll(0,0);"><{P_UP}></a>{$post['report_link']}</div>
	</td>
	<td class="formbuttonrow" nowrap="nowrap">
		<!-- PM / EMAIL / WWW / MSGR -->
		<div style="float: left;">
			 
		</div>
		<!-- REPORT / UP -->
        	<div align="right">
        		{$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
        	</div>
        </td>
</tr>
</table>
<div class="footer1"></div>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
new Array(  img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
			img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>

 

пытался даже копировать и заменять все равно не вставляется аватар ка а на вашем скине работает в чем может быть проблема ?

Share this post


Link to post
Share on other sites

Ну там есть такая строчка.

<if="$author['id'] AND $author['avatar']"><center>{$author['avatar']}</center><br /><else /><center><img src='style_images/<#IMG_DIR#>/no-avatar.gif' border='0' alt='' /></center><br /></if>
                       {$author['title']}<br />

Просто данный скин содержит много своих изменений, которые Вам не подойдут. Поэтому весь шаблон ценликом наверное не стоит брать

Share this post


Link to post
Share on other sites

пытался вставлять не помогает :) может просто кеш не обновляется ? ну я его обновлял через инструменты

Share this post


Link to post
Share on other sites

Картинку no-avatar.gif не забыли положить?

Share this post


Link to post
Share on other sites

не забыл

я заметил что с форумам чота не так я отменил все настройки в RenderRow ну icq статус не пропадает хотя должен :)

gfdg.jpg

Share this post


Link to post
Share on other sites

На локальном работает а на хостинге нет 0_0

 

на хостинге когда сохраняю пишет Шаблон(ы) в базе данных обновлен(ы)а на локальном

Файл skin_cache/cacheid_3/skin_topic.php — успешно записан

Шаблон(ы) в базе данных обновлен(ы) чота не хочет записываться :)

Share this post


Link to post
Share on other sites

У папке cache chmod проверьте

Share this post


Link to post
Share on other sites

как проверить ? права на папки 777

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...