how to make MOTM widget?

Go down

how to make MOTM widget?

Post by erchima on April 11th 2014, 12:15 pm

how to make MOTM (Member of the Month) like this
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by Sir Chivas™ on April 11th 2014, 3:07 pm

Hi,

Is that a Forumotion forum? Can you please provide both URLs of your forum and the one in the screenshot, thank you.

Regards,
Sir Chivas.
avatar
Sir Chivas™
Helper
Helper

Male Posts : 6811
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on April 13th 2014, 7:35 pm

hello sir, i want to make widget MoTM (Member of The Month) like on atlanta.firumid.net, and bestskin.com.br
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by SLGray on April 13th 2014, 7:40 pm

Please post working links to the forum that has what you want.



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
avatar
SLGray
Administrator
Administrator

Male Posts : 44483
Reputation : 3154
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on April 13th 2014, 7:42 pm

@SLGray wrote:Please post working links to the forum that has what you want.
its working http://atlanta.forumid.net and http://bestskins.com.br or http://bestskins.forumeiros.com


Last edited by erchima on April 16th 2014, 9:07 am; edited 1 time in total
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by Ange Tuteur on April 13th 2014, 7:56 pm

Hello erchima,

Have you tried asking the admins of these forums ? It is neat however, I would not recommend using it if you do get it. The reason why is it sends too many AJAX requests at once(i.e. 5 requests) which causes you to exceed your request limit. After a few seconds browsing this forum I was met with the following :
avatar
Ange Tuteur
Forumaster

Male Posts : 13215
Reputation : 2941
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on April 13th 2014, 8:01 pm

I do not know who the best admin in the skin, which I know only the admin in atlanta, but was never active admin. maybe you can help me with this code
Code:

<div class="main-content clearfix">
   <script>
jQuery(document).ready(function(){
    var d_month = sessionStorage.getItem('d_month');
    if(d_month) {
       jQuery('#d_month').html(d_month);
    } else {
jQuery.get(jQuery('.module table[summary="Os membros mais ativos do mês"] td[width="30%"]:eq(0) a').attr('href'),function(b){
  var id = jQuery('#profile-advanced-right .main-head .h3:eq(0) span', b);
  var avatar = jQuery('#profile-advanced-right .main-content.clearfix.center:eq(0) img', b);
  var rep = jQuery('#field_id-14 div', b).html();
  var posts = jQuery('#field_id-6 div',b).html();
  var register = jQuery('#field_id-4 div',b).html();
  var birth = jQuery('#field_id-12 div',b).html();
 jQuery('.box.table_wrap').each(function() {
  jQuery(this).find('#id').html(id);
  jQuery(this).find('#avat').html(avatar);
  jQuery(this).find('#reg-msg').html(register);
  jQuery(this).find('#nas').html(birth);
  jQuery(this).find('#post-membro').html(posts);
  jQuery(this).find('#reput').html(rep);
 });
sessionStorage.setItem('d_month', jQuery('#d_month').html());
});
}
function makeArray() {
      for (i = 0; i<makeArray.arguments.length; i++)
      this[i + 1] = makeArray.arguments[i];
   }
   var months = new makeArray('Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro');
   var date = new Date();
   var month = date.getMonth() + 1;
   var yy = date.getYear();
   var year = (yy < 1000) ? yy + 1900 : yy;
   jQuery('.top-date').text(months[month] + " " + year);
});
</script> 
   <div id="d_month">
       
      <div class="box table_wrap">
          
         <div class="box_container">
             
            <table class="box_table">
                
               <tbody>
                   
                  <tr>
                      
                     <td align="center" style="background-color: rgb(240, 248, 255);padding: 3px;width: 80px;">
                         
                        <div id="avat">
                           Carregando avatar... 
                        </div>
                         
                     </td>
                      
                     <td style="width: 100%">
                         
                        <div class="inner_container">
                           <span id="id"></span> <span class="top-date box_badge"></span> 
                        </div>
                         
                     </td>
                      
                  </tr>
                   
               </tbody>
                
            </table>
             
         </div>
          
         <div class="box_container b_cont2">
             
            <table class="box_table">
                
               <tbody>
                   
                  <tr>
                      
                     <td>
                         
                        <div class="smaller">
                           Parabéns a <span id="id"></span> nosso novo membro deste mês. Registrado pela primeira vez neste fórum <span id="reg-msg"></span>. Ele comemora aniversário em <span id="nas"></span>. Tem o total de <span id="post-membro"></span> posts. Ele recebeu <span id="reput"></span> pontos de reputação. Parabéns ao membro do mês. 
                        </div>
                         
                     </td>
                      
                  </tr>
                   
               </tbody>
                
            </table>
             
         </div>
          
      </div>
       
   </div><style>
.box_container {
background: white;
border: 1px solid #CECED1;
}
.box_container .inner_container {
width: 100%;
position: relative;
left: -5px;
padding: 5px 5px 5px 10px;
}
.box_container .inner_container #id {
display: block;
border-bottom: 1px solid lightgrey;
padding: 3px 0;
margin: 2px 5px 2px 0;
font-size: 1.3em;
}
.b_cont2 {margin-top: 10px;}
.b_cont2 .smaller {
padding-top: 3px;
font-size: 10px;
color: #1E7145;
text-align: justify;
text-justify: newspaper;
}
#avat img {
height: 50px;
width: 50px;
padding: 1px;
border: 1px solid #D5D5D5;
background: white;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.box_badge {
background: green;
cursor: default;
height: 16px;
min-width: 150px;
line-height: 16px;
padding: 0 5px;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
color: white;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
vertical-align: middle;
}
</style>
</div>
<div style="height:1px">
</div>
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on April 16th 2014, 9:08 am

up
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on April 18th 2014, 11:57 am

bump i realy need help  Sad  Sad  Sad
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Re: how to make MOTM widget?

Post by erchima on May 1st 2014, 12:13 am

up
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum