Jump to content

Adaugare Profile Sidebar Ca Pe Max-Cs.ro


Go to solution Solved by gadeas,

Recommended Posts

  • Moderators
Posted

Tutorial gasesti aici: 

 

Data viitoare incearca sa folosesti functia search al forumului.

  • Upvote 1

PHP Developer - Not available for freelancing right now

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

Posted

Scuze, V.Cristi, dar copilul are nevoie de ajutor, sfânt fie tutorialul tău ^<img src=^'> =))

 

 

Du-te în

AdminCP > Look & Feel > tema ta > BoardIndex > boardIndexTemplate

Caută

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

Și bagi deasupra lui acest cod:

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

Este aproximativ ca tutorialul lui Gadeas, doar că este alt script, deci se vede altfel.

  • Upvote 1
  • Moderators
  • Solution
Posted

Ceva foarte asemanator creat rapid, codu din boardIndexTemplate este:

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

<div class='ipsSideBlock clearfix'>
      	<h3>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'>

<center>
<if test="$this->memberData['title'] != ''">
	<ul class="ribbon" style="margin: -4px -14px 0 -14px;">
		<li class="ribbon3" style="height: 20px; line-height: 20px;">
                	<div class="Rleft"></div>
                      	<div class="Rright"></div>
                    	{$this->memberData['title']}
		</li>
	</ul>
</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 />

	<if test="$this->memberData['member_group_id'] == 3">
		<img src="./public/style_extra/team_icons/24.png" alt="" style="background-image: url('{style_images_url}/sparkles.gif'); margin-top: 2px; margin-bottom: -4px;"/>
        <else />
                <img src='./public/style_extra/team_icons/20.png' alt='' style='margin-top: 4px;' />
	</if>


					<ul class="ribbon" style="margin: 0 -14px 0 -14px;">
						<if test="$this->memberData['member_group_id'] == 1">
							<li class="ribbon3" style="background: #4c4c4c; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #383838;"></div>
								<div class="Rright" style="background: #383838;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
					
						<if test="$this->memberData['member_group_id'] == 2">
							<li class="ribbon3" style="background: #BAFF00; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #94cb00;"></div>
								<div class="Rright" style="background: #94cb00;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
					
						<if test="$this->memberData['member_group_id'] == 3">
							<li class="ribbon3" style="background: #4c4c4c; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #383838;"></div>
								<div class="Rright" style="background: #383838;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
					
						<if test="$this->memberData['member_group_id'] == 4">
							<li class="ribbon3" style="background: #FF0000; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #b10000;"></div>
								<div class="Rright" style="background: #b10000;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
						
						<if test="$this->memberData['member_group_id'] == 5">
							<li class="ribbon3" style="background: #707070; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #535353;"></div>
								<div class="Rright" style="background: #535353;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
						
						<if test="$this->memberData['member_group_id'] == 6">
							<li class="ribbon3" style="background: #FF8000; z-index: 1; height: 20px; line-height: 20px;">
								<div class="Rleft" style="background: #bd5f00;"></div>
								<div class="Rright" style="background: #bd5f00;"></div>
								{$this->memberData['g_title']}
							</li>
						</if>
					</ul>

</center>

<php>$topics=ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as topics','from'=>'topics','where'=>"starter_id=".$this->memberData['member_id']));</php>
<php>$mesaje_chat = ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as mesaje_chat','from'=>'shoutbox_shouts','where'=>"s_mid=".$this->memberData['member_id']));</php>

<div class="info-user">
   <ul>
      <li><span class="iu-title">&#8594;Informatii Utilizator&#8592;</span></li>
      <li><span class="iu-left"><i class="fa fa-comment"></i> Mesaje:</span> <span class="iu-right">{$this->memberData['posts']}</span></li>
      <li><span class="iu-left"><i class="fa fa-comments"></i> Subiecte:</span> <span class="iu-right">{$topics['topics']}</span></li>
      <li><span class="iu-left"><i class="fa fa-user-md"></i> ID Membru:</span> <span class="iu-right">{$this->memberData['member_id']}</span></li>
      <li><span class="iu-left"><i class="fa fa-file-text"></i> Inregistrat:</span> <span class="iu-right">{parse date="$this->memberData['joined']" format="joined"}</span></li>
      <li><span class="iu-left"><i class="fa fa-comments-o"></i> Mesaje chat:</span> <span class="iu-right">{$mesaje_chat['mesaje_chat']}</span></li>
      <li><span class="iu-left"><i class="fa fa-child"></i> Accesari profil:</span> <span class="iu-right">{$this->memberData['members_profile_views']}</span></li>
      <li><span class="iu-left"><i class="fa fa-plus-circle"></i> Reputatie:</span> <span class="iu-right iu-reputatie">{$this->memberData['pp_reputation_points']}</span></li>
      <li><span class="iu-left"><i class="fa fa-unlock-alt"></i> IP:</span> <span class="iu-right">{$_SERVER['REMOTE_ADDR']}</span></li>
   </ul>
</div>

</div>
</div>
</if>

Trebuie sa mai adaugati si la sfarsit de tot in ipb_styles.css urmatoru cod:

.info-user {
	color: #fff;
}

.info-user li {
	background: rgba(0, 0, 0, 0.3);
	padding: 7px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.info-user li:first-child {
	background: rgba(255, 255, 255, 0.1);
	padding: 8px;
	text-align: center;
	font-variant: small-caps;
}

.info-user li:last-child {
	border-bottom: 0px;
}

.info-user .iu-left {
	float: left;
}

.info-user .iu-right {
	float: right;
}

.info-user .iu-reputatie {
	background: rgba(255, 255, 255, 0.1);
	padding: 0 10px;
	border-radius: 3px;
}

Si la globalTemplate intre head:

<head>

<!-- Mult cod -->

</head>

Trebuie sa adaugati:

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

Si imaginea pentru stelute care trebuie so uploadati in folderu:

/public/style_extra/team_icons/

Sub numele 20.png:

Link: https://i.imgur.com/6grmwdC.png 

Si 24.png:

Link: http://i.imgur.com/6yuzbvW.png
  • Upvote 1

PHP Developer - Not available for freelancing right now

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

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.