Bine a-ti venit pe fraNNNta-Design.
Vezi ultimul index creat de noi <a href="https://frannnta-design.hitforum.ro/t1994-cs-gold-design-remake">Cs Gold Design remake</a>


Bine a-ti venit pe fraNNNta-Design.
Vezi ultimul index creat de noi <a href="https://frannnta-design.hitforum.ro/t1994-cs-gold-design-remake">Cs Gold Design remake</a>

Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Conectare

descriptionAvatar la ultimul mesaj EmptyAvatar la ultimul mesaj

more_horiz
Cum fac ca si la voi imagine :  https://2img.net/h/s14.postimg.cc/jyzq6x7cw/Untitled.jpg
Sper sa ma ajutati !!

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Daca aveti un cod js cu avatar bifati in topicuri si index

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Am bifat dar nu apare si acolo unde doresc eu va rog dati-

mi scriptul :(

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
ce versiune folosesti?

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
adaugati aici scriptul,css al scriptului si templateul topic list box

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Folosesc phpbb2

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
pune aici templateul topic_list_box

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Poftim si te rog daca poti sa scoti si Reaspunsuri autor Vizualizari !!






[th][/th][th][/th][th][/th]

Cod:

<!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
   var all_checked = true;
   for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
      }
   }
   document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
   for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
      }
   }
}
</script>
<!-- END multi_selection -->

<table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="left" nowrap="nowrap"> ANUNTURI </th>
      <th align="center" nowrap="nowrap" width="0"> </th>
      <th align="center" nowrap="nowrap" width="0">  </th>
      <th align="center" nowrap="nowrap" width="0"></th>
      <th align="left" nowrap="nowrap" width="250">  </th>
      <!-- BEGIN multi_selection -->
   <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
      
          <!-- END multi_selection -->
   </tr>
   <!-- BEGIN pagination -->
   <tr>
      <td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
   </tr>
   <!-- END pagination -->
   <!-- END header_table --><!-- BEGIN header_row -->
   <tr>
      <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
   </tr>
<!-- END header_row -->

<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
   <tr>
      <!-- BEGIN single_selection -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
      
          <!-- END single_selection -->
      <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
      <!-- BEGIN icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="0"></td>
      <!-- END icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
         <div class="topictitle">
            {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}
                                {topics_list_box.row.ICON}
            <h2 class="topic-title">
                                  <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a><br/>
                                  <span style="font-weight: normal !important;"><font color="#000">Started by:</font></span> <span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span>
            </h2>
         </div>
         <!-- BEGIN switch_description -->
         <span class="genmed">
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
         </span>
         <!-- END switch_description -->
         <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> 
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
      </td>

          <td class="row2" align="center" valign="middle"></td>            
      <td class="row3" align="center" valign="middle">
                  <span class="postdetails" style="font-weight: normal !important;"><font color="#000">{topics_list_box.row.REPLIES} replies</font></span><br/>
                  <span class="postdetails" style="font-weight: normal !important;"><font color="#000">{topics_list_box.row.VIEWS}&nbsp;views</font></span></td>
      <td class="row2" align="center" valign="middle"></td>
      <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="left" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
      <td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
   <!-- END multi_selection -->
   </tr>
  <!-- END topic -->
  <!-- BEGIN no_topics -->
   <tr>
      <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
  </tr>
   <!-- END no_topics --><!-- BEGIN bottom -->
  <tr>
    <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
    
      </td>
  </tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
care este forumu tau? sa vad cum arata la tine

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Acesta http://forum.pensionrpg.com/ lam pus si la profil !!

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
-pa[N]ic- a scris:
Acesta http://forum.pensionrpg.com/ lam pus si la profil !!

foarte frumos forumul bravo voua :)

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Adauga acest cod js in topicuri si in index-ul forumului.


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);
            };
       
        });


Apoi acest cod in foaia de stil css

Cod:


.mini_ava img{
  float: left;
  width: 30px;
  height: 30px;}

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Nu merge poftim javascript al meu si css-ul
java

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);
        };
   
    });


css

Cod:

    .mini_ava {
        float: left;
        margin-right: 20px;
    }
    .mini_ava img {
        width: 35px;
        height: 35px;
        margin: 0 5px;
        border-radius: 2px;
        border: solid 1px #c4c4c4;
        padding: 2px;
    }
    .mini_ava img:hover {
        border: solid 1px #000;
    }


descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Forumul tau care are modificarile in index_box si topic_list_box nu suporta acest js,eu din pacate nu ma pricep la js.Doar cu atat te pot ajuta

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
ok mai astepti si pe altcineva poa

te ma ajuta cineva !!

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
Buna ziua,
Deoarece topicul dvs nu respecta modelul de cerere support Aici , voi inchide si arhiva subiectul ! ~> Avatar la ultimul mesaj Lock-Lock-icon


Si avand in vedere ca nu este prima abatere va voi avertiza cu un punct Avatar la ultimul mesaj Warning

descriptionAvatar la ultimul mesaj EmptyRe: Avatar la ultimul mesaj

more_horiz
privacy_tip Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
power_settings_newConectați-vă pentru a răspunde