Jump to content
Sign in to follow this  
gadeas

Tutorial Adaugare Profil In Sidebar Ipb

Recommended Posts

Cu acordul lui Courage am decis sa mut tutorialul pentru adaugarea profilului utilizatorului autentificat, creat de el pe webflake, aici.

 

Previzualizare:

tdSDwx3.png

 

Intrati la:

AdminCP > Look and Feel > [Skinu vostru] -> Board Index -> boardIndexTemplate

Cautati:

<foreach loop="side_blocks:$side_blocks as $block">
     {$block}
</foreach>

Odata gasit, adaugati inaintea lu acel cod urmatorul cod:

<if test="memberbox:|:$this->memberData['member_id']">

<div class='ipsSideBlock clearfix'>
      	<h3>Welcome, <a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'> {$this->memberData['members_display_name']}</a></h3>
<div class='_sbcollapsable'>

<center class='desc member_title'>
<if test="$this->memberData['title'] != ''">
{$this->memberData['title']}<br />
</if>
<br />
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>
<img src='{$this->memberData['pp_main_photo']}'></a>
<br /><br />
<center>

<span style=' font-size: 14px;'>{$this->memberData['prefix']}{$this->memberData['g_title']}{$this->memberData['suffix']}</span><br /><br />

Posts: {$this->memberData['posts']}<br />
Profile views: {$this->memberData['members_profile_views']}<br />
Member No.: {$this->memberData['member_id']}<br>
Joined: {parse date="$this->memberData['joined']" format="joined"}

<br /><br />
Your IP: {$_SERVER['REMOTE_ADDR']}
<br /><br />
<div style='background:#0f2437; padding: 7px; color: #fff; font-weight: bold'>{$this->memberData['pp_reputation_points']}
</div>
</center>
</div>
</div>

</if>

Daca doriti sa modificati culoarea backgroundului de la reputatie, editati cu ce culoare vreti:

background:#0f2437;

De la:

<div style='background:#0f2437; padding: 7px; color: #fff; font-weight: bold'>{$this->memberData['pp_reputation_points']}</div>

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

in:

BoardIndexTemplate
al temei tale, ai linia:
<foreach loop="side_blocks:$side_blocks as $block">

Restu` codurilor de mai sus, le adaugi deasupra ei! ca sa fie prima cum ai zis si tu! daca adaugi sub:

<foreach loop="side_blocks:$side_blocks as $block">

normal ca nu apare prima! ..

Edited by Amon

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...