Jump to content

Problema Profil In Sidebar


MC Dany

Recommended Posts

Salut! De curand, am facu si eu un sidebar in care iti apare profilul tau, dar sincer sa fiu, imi cam prind urechile... Sunt putin incepator la asa ceva, recunosc ca nu prea ma descurc, dar ma puteti ajuta va rog?

Vreau sa-mi spuneti si mie cum pot face ca in imagine.

dlG1Zet.png

 

Aici este ce vreau eu sa modific la mine pe forum.

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

 
Mie acum imi apar pe centru':
jhBY0xs.png
 
As fi foarte fericit daca mi-ati spune si cum sa fac acele linii dintre ele, poate imi aratati un exemplu, va rog...
Stiu ca trebuie sa folosesc <div>,<p> si toate cele, dar nu inteleg cum...
Link to comment
Share on other sites

Ia incearca asta:

<if test="memberbox:|:$this->memberData['member_id']">
<style>.sr{position:absolute;right:15px;}</style>
<div class="ipsSideBlock clearfix __xXtwist352statistics">
<h3 id="anonymous_element_352">Bun venit, <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">
<ul class='ipsList_data sb_statistics clearfix'>
 
<center class='desc member_title'>
<if test="$this->memberData['title'] != ''">
{$this->memberData['title']}<br /><br />
</if>
 
<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 />
<span style=' font-size: 14px;'>{$this->memberData['prefix']}{$this->memberData['g_title']}{$this->memberData['suffix']}</span><br /><br />
</center>
 
<li class='clearfix'>
<span class='sl'>Mesaje:</span>
<span class='sr'>{$this->memberData['posts']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Accesări profil:</span>
<span class='sr'>{$this->memberData['members_profile_views']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>ID membru:</span>
<span class='sr'>{$this->memberData['member_id']}</span>
</li>
<li class='clearfix'>
<span class='sl'>Înregistrat:</span>
<span class='sr'>{parse date="$this->memberData['joined']" format="joined"}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Reputaţie:</span>
<span class='sr'><span style='padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px; border-radius: 3px; background: #2b303c; font-size: 10px; color: #fff; '><b>{$this->memberData['pp_reputation_points']}</b></span></span>
</li>
 
<li class='clearfix'>
<span class='sl'>IP:</span>
<span class='sr'>{$_SERVER['REMOTE_ADDR']}</span>
</li>
 
</ul> </div> </div> </if>

  • Downvote 1
Link to comment
Share on other sites

Sau 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']">
  </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']}
<br></br>
<if test='{$author['member_title']}'>
<ul class="ribbon">
                      <li class="ribbon2" style="background: #323232;">
                                        <div class="Rleft" style="background: #323232"></div>
                                        <div class="Rright" style="background: #323232"></div>
                             <span style="color: white;"><b>{$author['member_title']}</b></span>
                                </li>
            
</ul>
</if>
  <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>
<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>

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>ID membru:</dt>
   <dd>
   {$author['member_id']}</dd>
  </li>
        </dl>


<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Înregistrat</dt>
   <dd>
   {parse date="$author['joined']" format="joined"}</dd>
  </li>
        </dl>

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Reputaţie</dt>
   <dd>
   {$author['pp_reputation_points']}</dd>
  </li>
        </dl>
<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Pucte de Avertizare</dt>
   <dd>
   {$author['warn_level']}</dd>
  </li>
        </dl>
  <if test="authorcfields:|:$author['custom_fields'] != """><ul>
            <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>



<if test="authorwarn:|:$author['show_warn']">
            <li>
                <if test="$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>
            </li>
        </if>




</div>


</div>

  • Downvote 1

Cautam Administratori / S-Moderatori / Moderatori !

Recurtam servere de orice fel !

www.starcs.ro

 

Link to comment
Share on other sites

  • Moderators

Ia incearca asta:

<if test="memberbox:|:$this->memberData['member_id']">
<style>.sr{position:absolute;right:15px;}</style>
<div class="ipsSideBlock clearfix __xXtwist352statistics">
<h3 id="anonymous_element_352">Bun venit, <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">
<ul class='ipsList_data sb_statistics clearfix'>
 
<center class='desc member_title'>
<if test="$this->memberData['title'] != ''">
{$this->memberData['title']}<br /><br />
</if>
 
<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 />
<span style=' font-size: 14px;'>{$this->memberData['prefix']}{$this->memberData['g_title']}{$this->memberData['suffix']}</span><br /><br />
</center>
 
<li class='clearfix'>
<span class='sl'>Mesaje:</span>
<span class='sr'>{$this->memberData['posts']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Accesări profil:</span>
<span class='sr'>{$this->memberData['members_profile_views']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>ID membru:</span>
<span class='sr'>{$this->memberData['member_id']}</span>
</li>
<li class='clearfix'>
<span class='sl'>Înregistrat:</span>
<span class='sr'>{parse date="$this->memberData['joined']" format="joined"}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Reputaţie:</span>
<span class='sr'><span style='padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px; border-radius: 3px; background: #2b303c; font-size: 10px; color: #fff; '><b>{$this->memberData['pp_reputation_points']}</b></span></span>
</li>
 
<li class='clearfix'>
<span class='sl'>IP:</span>
<span class='sr'>{$_SERVER['REMOTE_ADDR']}</span>
</li>
 
</ul> </div> </div> </if>

 

Sau 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']">
  </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']}
<br></br>
<if test='{$author['member_title']}'>
<ul class="ribbon">
                      <li class="ribbon2" style="background: #323232;">
                                        <div class="Rleft" style="background: #323232"></div>
                                        <div class="Rright" style="background: #323232"></div>
                             <span style="color: white;"><b>{$author['member_title']}</b></span>
                                </li>
            
</ul>
</if>
  <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>
<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>

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>ID membru:</dt>
   <dd>
   {$author['member_id']}</dd>
  </li>
        </dl>


<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Înregistrat</dt>
   <dd>
   {parse date="$author['joined']" format="joined"}</dd>
  </li>
        </dl>

<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Reputaţie</dt>
   <dd>
   {$author['pp_reputation_points']}</dd>
  </li>
        </dl>
<dl class="pairsJustified">
  <li class='post_count desc lighter'>
<dt>Pucte de Avertizare</dt>
   <dd>
   {$author['warn_level']}</dd>
  </li>
        </dl>
  <if test="authorcfields:|:$author['custom_fields'] != """><ul>
            <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>



<if test="authorwarn:|:$author['show_warn']">
            <li>
                <if test="$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>
            </li>
        </if>




</div>


</div>

 

La ambele lipseste codu CSS. :)

PHP Developer - Not available for freelancing right now

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

Link to comment
Share on other sites

Ia incearca asta:

<if test="memberbox:|:$this->memberData['member_id']">
<style>.sr{position:absolute;right:15px;}</style>
<div class="ipsSideBlock clearfix __xXtwist352statistics">
<h3 id="anonymous_element_352">Bun venit, <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">
<ul class='ipsList_data sb_statistics clearfix'>
 
<center class='desc member_title'>
<if test="$this->memberData['title'] != ''">
{$this->memberData['title']}<br /><br />
</if>
 
<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 />
<span style=' font-size: 14px;'>{$this->memberData['prefix']}{$this->memberData['g_title']}{$this->memberData['suffix']}</span><br /><br />
</center>
 
<li class='clearfix'>
<span class='sl'>Mesaje:</span>
<span class='sr'>{$this->memberData['posts']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Accesări profil:</span>
<span class='sr'>{$this->memberData['members_profile_views']}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>ID membru:</span>
<span class='sr'>{$this->memberData['member_id']}</span>
</li>
<li class='clearfix'>
<span class='sl'>Înregistrat:</span>
<span class='sr'>{parse date="$this->memberData['joined']" format="joined"}</span>
</li>
 
<li class='clearfix'>
<span class='sl'>Reputaţie:</span>
<span class='sr'><span style='padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px; border-radius: 3px; background: #2b303c; font-size: 10px; color: #fff; '><b>{$this->memberData['pp_reputation_points']}</b></span></span>
</li>
 
<li class='clearfix'>
<span class='sl'>IP:</span>
<span class='sr'>{$_SERVER['REMOTE_ADDR']}</span>
</li>
 
</ul> </div> </div> </if>

 

Unde pot adauga asta :)))

Link to comment
Share on other sites

  • Moderators

Ce cod css :-?

Eu nu am niciun cod, si imi merge bine...

In cazu tau lipseste urmatoarele coduri CSS ( Nu stiu exact cum e la tine CSS-ul, dar voi arunca o banuire random dupa cum arata treaba cu clearfix si span-urile alea doua ):

.sl {

Si:

.sr {

Care probabil la SL este setat:

float: left;

Si la SR este:

float: right;

Fara astea span-urile alea is total usless. :)

PHP Developer - Not available for freelancing right now

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

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

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