Jump to content

Ajutor Configurare Informatii Profil Vizibil In Topicuri Ipb


Go to solution Solved by Sebastian C.,

Recommended Posts

Posted

Gasisem mai demult un post cu un custom profile informations care sa arate ca in imaginea de mai jos. Mai exact, informatiile principale sunt incadrate intr-un fel de tabel cu linie punctata sub ele. Ce era in userinfopane am pus dar am pierdut codul de css de la ipb_styles. Mi-l poate da cineva, ca am cautat de mi-au iesit ochii din cap?

 

jpOGSxG.png

  • Solution
Posted

Custom Profile Fileds folosesti la Topic View Format:

<div class="extraUserInfo">
 
	    <dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>{title}</dt>
   <dd>
   {content}</dd>
  </li>
	    </dl>
</div>

in ipb_style.css adaugi la sfarsit:

.extraUserInfo{
	   font-size:11px;
	   padding:4px 0px;
}
.pairsJustified{
	   margin:2px 0 0;
	   font-size:9px;
	   border-bottom:1px dashed #2F2F2F;
	   overflow:hidden;
	   line-height:1.5;
}
.pairsJustified dt{
	   font-size:11px !important;
	   float:left;
	   padding-left:5px;
	   text-align:left;
	   max-width:100%;
	   color:#ababab;
	   text-shadow:0 1px #000;
}
.pairsJustified dd{
	   float:right;
	   font-size:10px !important;
	   text-align:right;
	   max-width:100%;
	   padding-right:5px;
	   text-shadow:0 1px #000;
}

Schimbi ce ai in userInfoPane cu asta:

<div itemscope itemtype="http://schema.org/Person" class='user_details'>
	<span class='hide' itemprop="name">{$author['members_display_name']}</span>
	<ul class='basic_info'>
		<if test="membertitle:|:$author['member_title']">
			<p class='desc member_title'>{$author['member_title']}</p>
		</if>
		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if>
		<li class='group_title'>
			{$author['_group_formatted']}
		</li>
		<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='' />
			<else />
				{$author['member_rank_img']}
			</if>
			</li>
		</if>
		<if test="postCount:|:$author['member_id']">
		<div class="extraUserInfo">
 
	    <dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Mesaje:</dt>
   <dd>
   {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</dd>
  </li>
	    </dl>
</div>
		</if>
		<if test="authorwarn:|:$author['show_warn']">
		<div class="extraUserInfo">
 
	    <dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Subiecte:</dt>
   <dd>
   <center><php>$topics=ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as topics','from'=>'topics','where'=>"starter_id=".$author['member_id']));</php>{$topics['topics']}</center></dd>
  </li>
	    </dl>
</div>
		<div class="extraUserInfo">
 
	    <dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Avertizari:</dt>
   <dd>
   <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{$author['warn_level']}</a></dd>
  </li>
	    </dl>
</div>
		</if>
	</ul>
	
	<if test="authorcfields:|:$author['custom_fields'] != """>
		<ul class='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>
		</ul>
	</if>
	
</div>

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.