Jump to content
Sign in to follow this  
AndroidV8

Cum Scot Stilu De La Custom Profile Field?

Recommended Posts

<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']">
		<li class='post_count desc lighter'>
			{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
		</li>
		</if>
		<if test="authorwarn:|:$author['show_warn']">
			<li>
				<if test="hasWarningId:|:$options['wl_id']">
					<img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />
				</if>
				<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']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
			</li>
		</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>

 

Acesta ar trebui să fie. Este luat după tema originală.

Share this post


Link to post
Share on other sites

Gender nu are nici o treaba cu userinfopanel, e vorba de custom profile field.. 

Arata-ne si noua ce ai tu in topic format view din custom profile fields.


Mi-e teama de ziua in care tehnologia va fi mai importanta ca relatiile interumane.In lume va exista o generatie de idioti !! - Albert Einstein

www.gamelife.ro

Share this post


Link to post
Share on other sites

aici vine vorba de Custom Profile Field care se afla in tabul Member!  !

Si depinde cum vrei sa fie user info panel! 

la mine codul Gender arata astfel: 

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt><i class="fa fa-arrow-circle-o-right"></i> Sex</dt>
   <dd>
 <span style="color:rgb(55, 134, 216);"><span class='fc'>{content}</span></dd>
  </li>
        </dl>

Share this post


Link to post
Share on other sites

Este un cod css bagat undeva care se leaga de html.

Tu gindesti bine cu capul? sau faci off topic..  Nu se mai leaga css de html! aici Custom Profile Field e in strinsa legatura cu userinfopanel! 

http://prntscr.com/5wiqhn

 

Aici in fiecare imaparte iti pui codul de care ai nevoie.. la mine l-ati vazut.. e mai sus.. dar eu si folosesc userinfopanel in font awesome!

Share this post


Link to post
Share on other sites

=)))))))))))))))))))))))))

 

Vericule, cred ca tu esti ala, 'pathetic support'. Tu te auzi ce spui? Cum sa nu aibe legatura Custom Profile Fields cu css?

 

--

Userinfopane, nu userinfopanel, ipbeistule

App, vezi ca limba romana a evoluat, tu nu? (gândeşti, strânsă)

Share this post


Link to post
Share on other sites

@Shadow, chiar se leaga, totu codu:

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt><i class="fa fa-arrow-circle-o-right"></i> Sex</dt>
   <dd>
 <span style="color:rgb(55, 134, 216);"><span class='fc'>{content}</span></dd>
  </li>
        </dl>

Ce ai postat tu mai sus este doar incorporat printr-un FOR de la userInfoPane care face sa deie un print la tot codu de sus si la restu campurilor de la custom fields, instant avand legatura cu CSS-ul folosit pe tot forumu. Din moment ce ai dat elementele sub aceasi nume sau chiar clase in elemente, va folosi CSS-ul global al forumului. Asta se intampla si in cazu lui, are setat cum sa apara acel camp.

 

Si inapoi la problema, intra sa editezi campu Gender de la custom profile field si jos de tot ar trebui sa ai un cod asemanator cu ce am adaugat mai sus, modifica cu urmatoru:

{content}

Si va fi default 100%. Fara niciun stil sau ceva de genu.


PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

Asta trebuie:

{content}

Si nu va avea niciun stil sau elemente, va aparea simplu ca si la skinu default.


PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

 

<dl class="pairsJustified">

  <li class='post_count desc lighter'>
<dt><i class="fa fa-arrow-circle-o-right"></i> Gender</dt>
   <dd>
 <span style="color:rgb(55, 134, 216);"><span clas='fc'>{content}</span></dd>
 
  </li>
        </dl>

 

Asta e codul meu unde trebuie sa pun content ca il am deja 

Share this post


Link to post
Share on other sites

Sterge tot ala si scrie doar:

{content}

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

DAca pui doar content apare doar Male/Female fara Gender in fata .. dar am rezolvat.

Cod :

<span class='ft'>{title}</span><span class='fc'>{content}</span>

Share this post


Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...