Avatarul ultimului postator

Pagina 1 din 2 1, 2  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator In jos

In cos Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Dum 8 Dec - 17:23

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

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. la data de Dum 8 Dec - 17:27

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://illiweb.com/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.
Membru activ

masculin

Mesaje : 780
Varsta : 16
Data de inscriere : 10/11/2013
Multumiri : 25
1 avertisment

http://areagames.forumer.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Dum 8 Dec - 18:09

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

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de Zalex la data de Dum 8 Dec - 18:26

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

Mesaje : 175
Varsta : 17
Data de inscriere : 24/03/2013
Multumiri : 10
2 avertismente

http://darkyx.forumer.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Dum 8 Dec - 18:36

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.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de Zalex la data de Dum 8 Dec - 18:47

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

Mesaje : 175
Varsta : 17
Data de inscriere : 24/03/2013
Multumiri : 10
2 avertismente

http://darkyx.forumer.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de LaLy. la data de Dum 8 Dec - 18:48

Salut , Ce versiune folositi ?

LaLy.
Membru Forumgratuit

Mesaje : 172
Varsta : 20
Data de inscriere : 14/03/2013
Multumiri : 0
Membru exclus

http://xfactionn.forumers.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Dum 8 Dec - 18:52

PunBB folosesc

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de LaLy. la data de Dum 8 Dec - 18:55

Poftim un tutorial Fericit ,

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

LaLy.
Membru Forumgratuit

Mesaje : 172
Varsta : 20
Data de inscriere : 14/03/2013
Multumiri : 0
Membru exclus

http://xfactionn.forumers.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Dum 8 Dec - 19:09

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

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de kKK la data de Lun 9 Dec - 18:42

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

masculin

Mesaje : 90
Varsta : 18
Localizare : Timisoara
Data de inscriere : 04/12/2013
Multumiri : 6
1 avertisment

http://help.forumgratuit.ro/forum

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de narcotiq la data de Lun 9 Dec - 18:57

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://illiweb.com/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
Membru Forumgratuit

Mesaje : 40
Varsta : 23
Data de inscriere : 26/11/2013
Multumiri : 1
Membru exclus

http://www.facegame.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Lun 9 Dec - 23:15

Ce a scris narcotiq nu a avut nici un efect.
Ce a scris kKK nu mi-a facut decat cadrele astea albastre.


Imi trebuie sa am avatarul ultimului postator, in prima pagina a forumului si in paginile cu topic-uri.

Metoda lui kKK pare sa incerce sa imi faca ceva, dar incep sa cred ca da conflicte cu CSS-ul temei.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. la data de Mar 10 Dec - 7:40

Buna Ziua incercati sa stergeti codul lui kKK si sal adaugati pe acesta 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;
}

RealWolf.
Membru activ

masculin

Mesaje : 780
Varsta : 16
Data de inscriere : 10/11/2013
Multumiri : 25
1 avertisment

http://areagames.forumer.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de narcotiq la data de Mar 10 Dec - 8:39

ma da care e forumu tau? ca ala din descriere sigur nu e... ce versiune folosesti spune aici lasa-ne forumul tau sa ne uitam

narcotiq
Membru Forumgratuit

Mesaje : 40
Varsta : 23
Data de inscriere : 26/11/2013
Multumiri : 1
Membru exclus

http://www.facegame.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mar 10 Dec - 10:19

forumul meu e la contact. rrs-ro.forumz.ro
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] a scris:Buna Ziua incercati sa stergeti codul lui kKK si sal adaugati pe acesta in CSS:
Cod:
...

Asta m-a sters cadrele albastre, dar in combinatie cu ce e la index box, mi-a modificat sever infatisarea. Au disparut barele portocalii pe care le vedeti momentan, si liniile de tabel. Se vede mai jos:




Ultima editare efectuata de catre helion_prime in Mar 10 Dec - 10:34, editata de 1 ori

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. la data de Mar 10 Dec - 10:33

Buna Ziua din cate vad la forumul dumneavoastra nu are nimic schimbat.

RealWolf.
Membru activ

masculin

Mesaje : 780
Varsta : 16
Data de inscriere : 10/11/2013
Multumiri : 25
1 avertisment

http://areagames.forumer.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mar 10 Dec - 10:35

Asta pentru ca nu am publicat template-ul index_box. am postat o imagine mai sus cu un edit.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. la data de Mar 10 Dec - 10:40

Inlocuiti index_boxul acela cu acesta.
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="" />
    {catrow.forumrow.TOPICS}</span>
          </td>
          <td class="row2" align="center" valign="middle" height="50">
            <span class="gensmall"><img src="" />
    {catrow.forumrow.POSTS}</span>
          </td>
                                <td class="row3 over" align="center" valign="middle" height="50">
                  <div class="avs chenar" style="width: 220px"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></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 -->

In Javascript.
Cod:
$(document).on('ready', function() {
    $('.forumline tr .row3.over .avs').each(function () {
        var touser = $(this).children('span').children('span').children('strong').children('a').attr('href');
        $(this).prepend('<a href="' + touser + '" class="inx"><img src="http://i45.servimg.com/u/f45/17/25/57/30/defect10.png" alt="No avatar" /></a>');
        $(this).children('a').load(touser + ' .forumline .row1.gensmall[align="center"]:eq(0) img:eq(0)');
    });
});

Iar in CSS acest cod.
Cod:
.avs a.inx img {
  float: left;
  width: 40px;
  height: 40px;
  padding: 1px;
  border: 1px solid #DDD;
  margin: 0 5px;
  -webkit-box-shadow: 0px 0px 3px rgba(50, 50, 50, 0.75);
  -moz-box-shadow: 0px 0px 3px rgba(50, 50, 50, 0.75);
  box-shadow: 0px 0px 3px rgba(50, 50, 50, 0.75);
}

RealWolf.
Membru activ

masculin

Mesaje : 780
Varsta : 16
Data de inscriere : 10/11/2013
Multumiri : 25
1 avertisment

http://areagames.forumer.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mar 10 Dec - 10:48

La fel imi da peste cap toata pagina. Singura diferenta acum e ca imi scoate textele cu topicuri si postari de pe fiecare rand.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de RealWolf. la data de Mar 10 Dec - 10:49

Te rog elimina index_boxul pe care vi lam dat.

RealWolf.
Membru activ

masculin

Mesaje : 780
Varsta : 16
Data de inscriere : 10/11/2013
Multumiri : 25
1 avertisment

http://areagames.forumer.ro/

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mar 10 Dec - 11:08

l-am bagat pe cel original al temei.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de kKK la data de Mar 10 Dec - 15:40

Hm

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

kKK
Membru Forumgratuit

masculin

Mesaje : 90
Varsta : 18
Localizare : Timisoara
Data de inscriere : 04/12/2013
Multumiri : 6
1 avertisment

http://help.forumgratuit.ro/forum

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mar 10 Dec - 22:10

acelasi efect.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de kKK la data de Mier 11 Dec - 17:48

Un subiect asemanator incearca:

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

sau

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

kKK
Membru Forumgratuit

masculin

Mesaje : 90
Varsta : 18
Localizare : Timisoara
Data de inscriere : 04/12/2013
Multumiri : 6
1 avertisment

http://help.forumgratuit.ro/forum

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Mier 11 Dec - 22:40

Nu ma ajuta cu nimic. Imi trebue avatarul ultimului postator acolo, atat.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de sprAy. la data de Joi 12 Dec - 18:46

Buna seara , am incercat si eu acel tutorial si imi functioneaza foarte bine . Va rog sa verificati daca nu aveti un script care sa dauneze .

sprAy.
Membru Forumgratuit

Mesaje : 28
Varsta : 21
Data de inscriere : 12/12/2013
Multumiri : 0
Membru exclus

http://www.maniacx.dust.tv

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Joi 12 Dec - 23:15

Nu am nici un script separat adaugat pe forum, dar tema e foarte complexa. E posibil sa fie de la css-ul ei.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de helion_prime la data de Vin 13 Dec - 23:10

deci tutorialul prezentat mai sus, nu e valabil pentru versiunea punbb.
Am instalat o tema phpbb2 si a mers, dar apoi am instalat una punbb, iar problema a reaparut.

helion_prime
Membru Forumgratuit

Mesaje : 123
Data de inscriere : 06/12/2010
Multumiri : 0
Niciun avertisment

http://rrs-ro.forumz.ro

Sus In jos

In cos Re: Avatarul ultimului postator

Mesaj Scris de Keir la data de Sam 14 Dec - 17:31

Salutare,
Solutia pe care o cautati este acest tutorial: [Trebuie sa fiti inscris si conectat pentru a vedea acest link] , care functioneaza pentru toate versiunile de forum. Daca spuneti ca nu are efect incercati sa eliminati toate codurile Javascript(daca aveti) si sa il adaugati doar pe acesta, s-ar putea ca orice modificare pe care ati efectuat-o pe forum sa impiedice afisarea codurilor din tutorial.  A face cu ochiul 

Keir
Membru onorific
Membru onorific

masculin

Mesaje : 6771
Varsta : 18
Localizare : Buzau
Data de inscriere : 28/12/2011
Multumiri : 68
Niciun avertisment

http://neotalk.wikiforum.ro/

Sus In jos

Pagina 1 din 2 1, 2  Urmatorul

Vezi subiectul anterior Vezi subiectul urmator Sus


Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum