The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to make MOTM widget?

View previous topic View next topic 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

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.

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
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

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.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.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

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 :

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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>

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

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

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

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

View previous topic View next topic Back to top


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