Forum gratuit: forum de suport al utilizatorilor
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Avatarul ultimului postator

Pagina 1 din 3 1, 2, 3  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator In jos

In cos Avatarul ultimului postator

Mesaj Scris de helion_prime Dum Dec 08, 2013 5:23 pm

Buna ziua!
In imaginea de mai jos se afla un tabel de pe un forum IPB
Spoiler:

Imi puteti spune daca se poate pune avatarul ultimului postator in tabel?
(in partea dreapta se vede in ultima coloana)Daca se poate, atunci cum?
helion_prime

helion_prime
Membru Forumgratuit

Mesaje : 123
Varsta : 34
Data înscrierii : 06/12/2010
Mulțumiri : 0
Internet Explorer punBB

http://rrs-ro.forumz.ro
helion_prime a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. Dum Dec 08, 2013 5:27 pm

Poftim.
Adaugati in CSS
Cod:
.mini_ava {
  float: left;
}
.mini_ava img {
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 1px;
  transition: all 1s;
  -moz-transition: all 1s;
  -webkit-transition: all 1s;
  -o-transition: all 1s;
}
Adaugati in JavaScript
Cod:
$(function(){
 
    if(!window.localStorage) return;
 
    // Avatar par défaut
    var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
 
    // Temps de cache, ici 24 h * 60 m * 60 s * 1000 ms donc un jour
    var caching_time= 24*60*60*1000;
 
    // Temps de cache d'une erreur, ici 60 s * 1000 ms donc une minute
    var caching_error= 60*1000;
 
    var set_avatar= function(id) {
        $('.mini_ava.member'+id).html('<img src="'+get_avatar(id)+'" />');
    };
 
    var get_avatar= function(id) {
        if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
        {
            localStorage.setItem('d_ava'+id, default_avatar);
            $.get('/u'+id, function (d){
                localStorage.setItem('t_ava'+id,+new Date);
                localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
                set_avatar(id);
            });
        }
        return localStorage.getItem('d_ava'+id);
    };
 
    var to_replace= {};
 
    $('dd.lastpost strong a.gensmall, .ipbtable tr td:last-child span strong a.gensmall, .table td.tcr strong a.gensmall, .forumline .row3.over strong a.gensmall').each(function(){
        to_replace[$(this).attr('href').substr(2)]= 1;
        $(this).closest('td,dd').prepend('<div class="mini_ava member'+$(this).attr('href').substr(2)+'"></div>');
    });
 
    for(i in to_replace)
    {
        set_avatar(i);
    };
 
});
RealWolf.

RealWolf.
Membru activ

Mesaje : 776
Varsta : 23
Data înscrierii : 10/11/2013
Mulțumiri : 25
Internet Explorer punBB

http://areagames.forumer.ro/
RealWolf. a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime Dum Dec 08, 2013 6:09 pm

Nu a mers. Mentionez ca tema mea e pe versiunea PunBB
helion_prime

helion_prime
Membru Forumgratuit

Mesaje : 123
Varsta : 34
Data înscrierii : 06/12/2010
Mulțumiri : 0
Internet Explorer punBB

http://rrs-ro.forumz.ro
helion_prime a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de Zalex Dum Dec 08, 2013 6:26 pm

Buna Ziua,

Prima oara
Panoul de Administrare ~> Afisare ~> Template-uri ~> General ~> index_box
Cod:

<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
      <td valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall">{LAST_VISIT_DATE}<br />
        {CURRENT_TIME}<br />
        </span>
        <!-- END switch_user_logged_in -->
        <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
        <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
  </tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
      <th nowrap="nowrap" width="50"></th>
      <th nowrap="nowrap" width="50"></th>
      <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
  </tr>
  <!-- END tablehead -->
  <!-- BEGIN cathead -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
        <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
              <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
            </span>
        </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
  </tr>
  <!-- END cathead -->
  <!-- BEGIN forumrow -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
        <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
        <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
              <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
        </h{catrow.forumrow.LEVEL}>
        <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
        <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
        </span>
      </td>
            <td class="row3" align="center" valign="middle" height="50">
        <span class="gensmall">
{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
        <span class="gensmall">
{catrow.forumrow.POSTS}</span>
      </td>
                            <td class="row3 over" align="center" valign="middle" height="50">
        <div class="gensmall chenarlastposts">{catrow.forumrow.LAST_POST}</div>
      </td>
          </tr>
  <!-- END forumrow -->
  <!-- BEGIN catfoot -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
  </tr>
  <!-- END catfoot -->
  <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Apoi.
Panoul de Administrare ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil CSS.
Cod:

.chenarlastposts {
margin: 3px;
margin-top: 3px;
margin-right: 3px;
margin-bottom: 3px;
margin-left: 3px;
padding: 2px;
padding-top: 2px;
padding-right: 2px;
padding-bottom: 2px;
padding-left: 2px;
border: 2px solid
#0097FC;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color:
#0097FC;
border-right-color:
#0097FC;
border-bottom-color:
#0097FC;
border-left-color:
#0097FC;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
-webkit-box-shadow: 0 0 8px
#0097FC;
-moz-box-shadow: 0 0 8px #0097FC;
box-shadow: 0 0 8px
#0097FC;
}
Succes
Zalex

Zalex
Membru Forumgratuit

Mesaje : 175
Varsta : 24
Data înscrierii : 24/03/2013
Mulțumiri : 10
Internet Explorer phpBB2

http://darkyx.forumer.ro
Zalex a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime Dum Dec 08, 2013 6:36 pm

deloc nu a mers. Ba mai mult, a dat peste cap putin pagina principala. Acum imi arata niste chenare albastre acolo.
Noroc ca am facut backup.
Avatarul ultimului postator  KFvYT3K
helion_prime

helion_prime
Membru Forumgratuit

Mesaje : 123
Varsta : 34
Data înscrierii : 06/12/2010
Mulțumiri : 0
Internet Explorer punBB

http://rrs-ro.forumz.ro
helion_prime a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de Zalex Dum Dec 08, 2013 6:47 pm

Imi cer scuze,

Index Box:

Cod:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
      <td valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall">{LAST_VISIT_DATE}<br />
        {CURRENT_TIME}<br />
        </span>
        <!-- END switch_user_logged_in -->
        <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
        <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
  </tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
            <th nowrap="nowrap" width="100"></th>
      <th nowrap="nowrap" width="150"><div style="width:150px;"></div></th>
  </tr>
  <!-- END tablehead -->
  <!-- BEGIN cathead -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
        <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
              <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
            </span>
        </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
  </tr>
  <!-- END cathead -->
  <!-- BEGIN forumrow -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
        <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
        <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
              <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
        </h{catrow.forumrow.LEVEL}>
        <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
        <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
        </span>
      </td>
      <td class="row3" align="center" valign="middle" height="50">
                  <span class="gensmall"><span>{catrow.forumrow.TOPICS} topicuri</span><br /><span>{catrow.forumrow.POSTS} raspunsuri</span></span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50" style="text-align: left;">
        <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </td>
  </tr>
<script type="text/javascript">jQuery$(function() {
  $('.forumline .row3.over').each(function() {
  var uHref = $(this).find('a[href^="/u"]').attr('href');
  var id = $(this).find('a[href^="/u"]').attr('href').split('/u')[1];
  $(this).prepend('<a href="'+uHref+'" id="member_element_'+id+'"></a>');
  $(this).children('a').load(uHref + '.forumline .row1.gensmall:eq(0) img:eq(0)', function() {
  $(this).children('img').attr('class','tlistAv');
  });
  });
  });</script>
  <!-- END forumrow -->
  <!-- BEGIN catfoot -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
  </tr>
  <!-- END catfoot -->
  <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
In CSS:

Cod:
jQuery$(function() {
  $('.forumline .row3.over').each(function() {
  var uHref = $(this).find('a[href^="/u"]').attr('href');
  $(this).prepend('<a href="'+uHref+'"></a>');
  $(this).children('a').load(uHref + '.forumline .row1.gensmall:eq(0) img:eq(0)', function() {
  $(this).children('img').attr('class','tlistAv');
  });
  });
  });
Zalex

Zalex
Membru Forumgratuit

Mesaje : 175
Varsta : 24
Data înscrierii : 24/03/2013
Mulțumiri : 10
Internet Explorer phpBB2

http://darkyx.forumer.ro
Zalex a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de LaLy. Dum Dec 08, 2013 6:48 pm

Salut , Ce versiune folositi ?
LaLy.

LaLy.
Membru Forumgratuit

Mesaje : 170
Varsta : 27
Data înscrierii : 14/03/2013
Mulțumiri : 0
Internet Explorer punBB

http://xfactionn.forumers.ro/
LaLy. a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime Dum Dec 08, 2013 6:52 pm

PunBB folosesc
helion_prime

helion_prime
Membru Forumgratuit

Mesaje : 123
Varsta : 34
Data înscrierii : 06/12/2010
Mulțumiri : 0
Internet Explorer punBB

http://rrs-ro.forumz.ro
helion_prime a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de LaLy. Dum Dec 08, 2013 6:55 pm

Poftim un tutorial Fericit ,

[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
LaLy.

LaLy.
Membru Forumgratuit

Mesaje : 170
Varsta : 27
Data înscrierii : 14/03/2013
Mulțumiri : 0
Internet Explorer punBB

http://xfactionn.forumers.ro/
LaLy. a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime Dum Dec 08, 2013 7:09 pm

am urmat pasii exact cum a scris acolo, dar nu a avut absolut nici un efect.
helion_prime

helion_prime
Membru Forumgratuit

Mesaje : 123
Varsta : 34
Data înscrierii : 06/12/2010
Mulțumiri : 0
Internet Explorer punBB

http://rrs-ro.forumz.ro
helion_prime a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de kKK Lun Dec 09, 2013 6:42 pm

Panoul de Administrare ~> Afisare ~> Template-uri ~> General ~> index_box

Cod:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
      <td valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall">{LAST_VISIT_DATE}<br />
        {CURRENT_TIME}<br />
        </span>
        <!-- END switch_user_logged_in -->
        <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
        <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
  </tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
      <th nowrap="nowrap" width="50"></th>
      <th nowrap="nowrap" width="50"></th>
      <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
  </tr>
  <!-- END tablehead -->
  <!-- BEGIN cathead -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
        <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
              <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
            </span>
        </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
  </tr>
  <!-- END cathead -->
  <!-- BEGIN forumrow -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
        <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
        <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
              <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
        </h{catrow.forumrow.LEVEL}>
        <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
        <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
        </span>
      </td>
          <td class="row3" align="center" valign="middle" height="50">
        <span class="gensmall"><img src="http://i41.tinypic.com/8wfodj.png" />
{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
        <span class="gensmall"><img src="http://i40.tinypic.com/34qus5v.png" />
{catrow.forumrow.POSTS}</span>
      </td>
                            <td class="row3 over" align="center" valign="middle" height="50">
        <div class="gensmall chenarlastposts">{catrow.forumrow.LAST_POST}</div>
      </td>
          </tr>
  <!-- END forumrow -->
  <!-- BEGIN catfoot -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
  </tr>
  <!-- END catfoot -->
  <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->

Panoul de Administrare ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil CSS.

Cod:
.chenarlastposts {
margin: 3px;
margin-top: 3px;
margin-right: 3px;
margin-bottom: 3px;
margin-left: 3px;
padding: 2px;
padding-top: 2px;
padding-right: 2px;
padding-bottom: 2px;
padding-left: 2px;
border: 2px solid
#0097FC;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color:
#0097FC;
border-right-color:
#0097FC;
border-bottom-color:
#0097FC;
border-left-color:
#0097FC;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
-webkit-box-shadow: 0 0 8px
#0097FC;
-moz-box-shadow: 0 0 8px #0097FC;
box-shadow: 0 0 8px
#0097FC;
}

kKK

kKK
Membru Forumgratuit

Mesaje : 90
Varsta : 26
Localizare : Timisoara
Data înscrierii : 04/12/2013
Mulțumiri : 6
Internet Explorer phpBB2

https://help.forumgratuit.ro/forum
kKK a fost mulțumit de autorul acestui subiect.

In cos Re: Avatarul ultimului postator

Mesaj Scris de narcotiq Lun Dec 09, 2013 6:57 pm

deci tu vrei avatar la ultimul post ? daca da fa ce zic eu aici:

Creaza un cod java script:
Titlu * : Avatar last topic
Amplasare : Indexul forumului, Subforumuri, Topicuri

Adauga codul de mai jos:
Cod:
$(function(){
 
  if(!window.localStorage) return;
 
  // Avatar por defecto
    var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
 
  // Tiempo de cache, aqui 24 h * 60 m * 60 s * 1000 ms entonces un día
    var caching_time= 24*60*60*1000;
 
  // Tiempo de cache de un error, ici 60 s * 1000 ms entonces un minuto
    var caching_error= 60*1000;
 
  var set_avatar= function(id) {
        $('.mini_ava.member'+id).html('<img src="'+get_avatar(id)+'" />');
    };
 
  var get_avatar= function(id) {
        if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
        {
            localStorage.setItem('d_ava'+id, default_avatar);
            $.get('/u'+id, function (d){
                localStorage.setItem('t_ava'+id,+new Date);
                localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
                set_avatar(id);
            });
        }
        return localStorage.getItem('d_ava'+id);
    };
 
  var to_replace= {};
 
  $('dd.lastpost strong a.gensmall, .ipbtable tr td:last-child span strong a.gensmall, .table td.tcr strong a.gensmall, .forumline .row3.over strong a.gensmall').each(function(){
        to_replace[$(this).attr('href').substr(2)]= 1;
        $(this).closest('td,dd').prepend('<div class="mini_ava member'+$(this).attr('href').substr(2)+'"></div>');
    });
 
  for(i in to_replace)
    {
        set_avatar(i);
    };
 
});

Baga CSS si gata:

Cod:
.mini_ava {
float: left;
}
.mini_ava img {
padding: 1px;
border: 1px solid #858A8C;
background: #FFF;
-webkit-box-shadow: 0px 1px 2px #858A8C;
-moz-box-shadow: 0px 1px 2px #858A8C;
box-shadow: 0px 1px 2px #858A8C;
width: 30px;
height: 30px;
margin-top: 4px;
}
.mini_ava img:hover {
 border-color: #B1BECA;
-webkit-box-shadow: 0px 1px 3px #858A8C;
-moz-box-shadow: 0px 1px 3px #858A8C;
box-shadow: 0px 1px 3px #858A8C;
}
narcotiq

narcotiq
Membru Forumgratuit

Mesaje : 40
Varsta : 30
Data înscrierii : 26/11/2013
Mulțumiri : 1
Internet Explorer punBB

http://www.facegame.forumz.ro
narcotiq a fost mulțumit de autorul acestui subiect.

Pagina 1 din 3 1, 2, 3  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator Sus

- Subiecte similare

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum