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

Extrem TutorialsConectare

Peste 500 tutoriale in limba romana.


descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyCerere cod ultimele mesaje avatar [ punBB ]

more_horiz
As vrea si eu un cod ceva care sa faca sa fie ca in poza ultimele mesaje si avatarul acolo ca in poza de mai jos.
Cerere cod ultimele mesaje avatar [ punBB ]  Unti10
Multumesc anticipat.

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Salut incearca urmatoarele coduri.

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


iar in javascript (amplasare: indexul 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);
    };
 
});

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Multumesc pentru problema cu avatarul, dar "Mesajele" si "Subiectele" nu apar ca in imagine.

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Salut,

Panou de administrare ~> Afisare ~> Template-uri ~> General ~> index_body
Stergi tot scriptul din index_body si pui scriptul de mai jos:

Cod:

{JAVASCRIPT}
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
  <ul>
        <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
        <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
      <li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
  </ul>
  <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
  <p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->

<!-- BEGIN message_admin_index -->
<div class="main">
  <!-- BEGIN message_admin_titre -->
  <div class="main-head">
      <h1 class="page-title">{message_admin_index.message_admin_titre.MES_TITRE}</h1>
  </div>
  <!-- END message_admin_titre -->

  <!-- BEGIN message_admin_txt -->
  <div id="pun-announcement">
      <p>{message_admin_index.message_admin_txt.MES_TXT}</p>
  </div>
  <!-- END message_admin_txt -->
</div>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<div class="main">
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username" /></label> 
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password" /></label> 
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label> 
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
  </div>
</form>
</div>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}
<div id="board_stats">     
      <ul class="ipsType_small">
        <li><span class="FORUMCOUNTPOST"></span> Total Posts</li>
        <li><span class="FORUMCOUNTUSER"></span> Total Members</li>
        <li><span class="FORUMLASTUSER"></span> Newest Member</li>
        <li><span class="FORUMONLINEUSER"></span> Most Online</li>
      </ul>
  </div>
<!-- BEGIN disable_viewonline -->
<div class="board-title-line"><p>{RECORD_USERS}</p><ul><li><a href="/search?search_id=activetopics">Temas activos del día</a></li><li><a href="/memberlist?mode=today_posters">Top 20 posteadores hoy</a></li><li><a href="/memberlist?mode=overall_posters">Top 20 posteadores del foro</a></li></ul></div>
<div id="pun-info-ipb" class="main">
  <div class="main-content">
      <div id="onlinelist">
        <p>{TOTAL_USERS_ONLINE}
        <br />
        {LOGGED_IN_USER_LIST}

        {L_ONLINE_USERS}
        {L_CONNECTED_MEMBERS}<br /></p>
        <div class="clear"></div>

        <p>{LEGEND} : {GROUP_LEGEND}</p>

      </div>
      <!-- BEGIN switch_chatbox_activate -->
      <div id="onlinechat">
        <p class="page-bottom">
        {TOTAL_CHATTERS_ONLINE} :
        {CHATTERS_LIST}<br />
        <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
              insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            </script>
        <!-- END switch_chatbox_popup -->
        </p>
      </div>
      <!-- END switch_chatbox_activate -->
  </div>
</div>
<!-- END disable_viewonline -->

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <div class="user_login_form main-box center">
      <label><span class="genmed">{L_USERNAME} :</span> <input class="post" type="text" size="10" name="username"/></label> 
      <label><span class="genmed">{L_PASSWORD} :</span> <input class="post" type="password" size="10" name="password"/></label> 
      <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label> 
      {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
      <!-- BEGIN switch_fb_connect -->
      <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
      <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button>
      <!-- END switch_fb_connect -->
  </div>
</form>
<!-- END switch_user_login_form_footer -->

{CHATBOX_BOTTOM}

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
  appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
    status: true,
    cookie: true,
    xfbml: true,
  oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
          <td class="row1" align="center" valign="middle">
            <a href="http://frannnta-design.online-talk.net/" target="_blank"><img src="http://i42.servimg.com/u/f42/14/12/03/12/fd_alb10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="http://over-zone.forumz.ro/" target="_blank"><img src="http://s22.postimg.org/ty2ofx64t/miniba.gif" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="http://wtfcs.forumer.ro/"><img src="http://i.imgur.com/0a6Aank.gif" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
          <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
          <td class="row1" align="center" valign="middle">
            <a href="LINK FORUM"><img src="http://i39.servimg.com/u/f39/16/16/06/68/free10.png" style="width:88px; height:31px; border:0"></a>
          </td>
  </tr>
</table>
<br />

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Am schimbat si tot nu arata ca in imagine.

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Mergeti in:
Panou de Administrare ~> Module ~> HTML & JAVASCRIPT ~> Gestiunea codurilor JavaScript
Faceti click pe butonul Creati un nou cod JavaScript.

Completati rubricile astfel:
Titlu: Avatar la ultimul postator
Amplasare: Indexul forumului
Cod Javascript: Adaugati codul de mai jos...

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


Acum trebuie sa mergeti in:
Panou de Administrare ~> Afisare ~> Imagini si culori ~> Culori ~> Foaie de stil CSS

Cod:

.mini_ava {
  float: left;
}
.mini_ava img {
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 10px;
  transition: all 1s;
  -moz-transition: all 1s;
  -webkit-transition: all 1s;
  -o-transition: all 1s;
}
.mini_ava img:hover
{
  zoom: 130%;
}

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Avatarul imi apare, dar "Subiectele si Mesajele" nu apar ca in imagine.
Daca nu se poate dati T/C

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Nu vă apar subiectele şi mesajele?
Păi eu vad ca vă apare una sub alta.

Doriţi sa dau T/C?

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
posteaza index_box aici

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Uite !

Cod:

<div class="pun-crumbs">
   <p class="crumbs"><a href="{U_INDEX}">{L_INDEX}</a><strong>{NAV_CAT_DESC}</strong></p>
</div>
<div class="main">
<!-- BEGIN catrow -->
   <!-- BEGIN tablehead -->
      <div class="forabg-ipb"><div class="main-head">
         <div class="page-title">{catrow.tablehead.L_FORUM}</div>
      </div>
      <div class="main-content">
         <table cellspacing="0" class="table">
            <tbody class="statused">
   <!-- END tablehead -->
                               
                                  <!-- BEGIN forumrow -->
               <tr>
                  <td class="tcl" style="padding-right: {catrow.forumrow.INC_LEVEL_RIGHT}; padding-left: {catrow.forumrow.INC_LEVEL_LEFT};">
                     <span class="status" style="padding-top: 0.8%!important;margin-right: -{catrow.forumrow.INC_WIDTH_ICON}; margin-left: -{catrow.forumrow.INC_WIDTH_ICON};">
                        <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
                     </span>
                     <h{catrow.forumrow.LEVEL} class="hierarchy"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a></h{catrow.forumrow.LEVEL}>
                     <br />
                     {catrow.forumrow.FORUM_DESC}
                     <!-- BEGIN switch_moderators_links -->
                     <br />
                     {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
                     <!-- END switch_moderators_links -->
                     {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
                     <strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}
                  </td>
                  <td class="tc2">{catrow.forumrow.TOPICS}</td>
                  <td class="tc3">{catrow.forumrow.POSTS}</td>
                  <td class="tcr">
                     <div class="avs"><span><p>
                     <!-- BEGIN switch_topic_title -->
                                                          <a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
                     <!-- END switch_topic_title -->
                     {catrow.forumrow.USER_LAST_POST}
                                                          </p></span></div>
                  </td>
               </tr>
   <!-- END forumrow -->

   <!-- BEGIN tablefoot -->
            </tbody>
         </table>
      </div>
                  <!-- END tablefoot --></div>
  <!-- END catrow -->
  </div>

<!-- BEGIN switch_on_index -->
<div class="main-box clearfix">
   <ul>
      <li><a href="{U_TODAY_ACTIVE}">{L_TODAY_ACTIVE}</a></li>
      <li><a href="{U_TODAY_POSTERS}">{L_TODAY_POSTERS}</a></li>
      <li><a href="{U_OVERALL_POSTERS}">{L_OVERALL_POSTERS}</a></li>
   </ul>
   <!-- BEGIN switch_delete_cookies -->
   <p class="right">
      <a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
   </p>
   <!-- END switch_delete_cookies -->
</div>
<!-- END switch_on_index -->

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Multumesc, dar tot nu merge.
Puteti da T/C

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
Autorul vrea ca topicul să fie închis. => Topic Închis.

descriptionCerere cod ultimele mesaje avatar [ punBB ]  EmptyRe: Cerere cod ultimele mesaje avatar [ punBB ]

more_horiz
privacy_tip Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum