Award Sistem

Pagina 3 din 3 Înapoi  1, 2, 3

Vezi subiectul anterior Vezi subiectul urmator In jos

In cos Award Sistem

Mesaj Scris de Emma90 la data de Mar 19 Dec - 21:30

Rezumarea primului mesaj :

salut,

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

Vreau și eu sa fac un sistem ca acela Per forumul meu, dacă te logezi pe acel forum, sistemul merge, funcționează corect..vreau și eu sa îl fac le forumul meu! Cum se face?
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos


In cos Re: Award Sistem

Mesaj Scris de Emma90 la data de Joi 28 Dec - 13:23

[Trebuie sa fiti inscris si conectat pentru a vedea acest link] a rezolvat problema
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Emma90 la data de Joi 28 Dec - 13:27

Nu @teodo codul trimis prin MP nu merge, acum rămâne blocat la 100% pentru toți membri... toate iconurile albastre... nu merge, scuzama
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Teodor la data de Joi 28 Dec - 19:20

Buna ziua,

[Trebuie sa fiti inscris si conectat pentru a vedea acest link], va rugam sa readuceti in atentie intrebarea dumneavoastra doar daca au trecut cel putin 24 de ore fara sa primiti un raspuns. Pentru actualizarea mesajului anterior puteti folosi butonul "Editeaza".

Multumesc pentru înţelegere!



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

Mesaje : 229
Varsta : 21
Localizare : Italia
Data înscrierii : 28/03/2016
Multumiri : 32
Niciun avertisment

Vezi profilul utilizatorului http://Lestreghebuone.net

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Emma90 la data de Vin 29 Dec - 18:28

Scuze Teodor! 

Il astept pe ionut care sigur are o solutie!
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Ionut la data de Vin 29 Dec - 18:51

Scuze dar nu stiu cum functioneaza sistem-ul de pe acel forum, asa ca incerc sa refac codul si cred ca va dura !

EEdit :

[Trebuie sa fiti inscris si conectat pentru a vedea acest link], am revenit cu un sistem simplu tutorial-ul ti l-am scris in cod multa bafta!

P.S. nu am stat sa iti adaug absolut toate prostiile alea fiindca nu avea rost, daca vrei le adaugi tu eu am bagat doar 28 si totusi nu inteleg cu ce ar ajuta forumul cu sistemul asta !

Cod:
/* Cum functioneaza si cum se ampalseaza ? */
/* 1 - Panel - Module - JavaScript - creezi un nou cod javascript */
/* Titlu Awards */
/* Amplasare petoate paginile */
/* Cod javascript in adaugi pe acesta si dai inregistrare */
/* Asigura-te ca ai  codurile js pornite */
/* 2 - Utilizatori & Grupuri - Profiluri - Optiuni generale - bifati Activeaza profilul avansat : DA */
/* Cum functioneaza ? */
/* E simplu */
/* trebuie sa adaugi casute la fiecare utilizator imparte la care vrei sa mearga acest sistem */
/* Copiezi de unde scrie prima casuta pana unde scrie sfarsit */
/* Apoi dai la profilul utilizatorului care vrei sa functioneze sistemul */
/* sus la dresa iti apare u si numarul utilizatorului exemplu la tine apare u1 */
/* acel numar il adaugi unde scrie  if etc ... u1 */
/* p.s. sistemul iti apare daca dai la profil */

jQuery(document).ready(function() {
    if (/\/u\d+/.test(window.location.href)) {
        var tabel = document.getElementById('tabs');
        if (tabel) {
            var newTab = $('li:not(.activetab)', tabs)[0].cloneNode(true);
            newTab.firstChild.href = '/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + '?view_awards=true';
            newTab.firstChild.innerHTML = '<span>Awards</span>';
            tabs.getElementsByTagName('UL')[0].appendChild(newTab);
        };
        if (/view_awards=true/.test(window.location.search)) {
            $('#tabs li a span:contains("Awards")').closest('li').addClass('activetab');
            $('#tabs').each(function() {
                $('a[href*="#"]').closest('li').removeClass('activetab');
                $('a[href*="/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + 'wall"]').closest('li').removeClass('activetab');
                $('a[href*="/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + 'stats"]').closest('li').removeClass('activetab');
                $('a[href*="/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + 'attachments"]').closest('li').removeClass('activetab');
                $('a[href*="/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + 'friends"]').closest('li').removeClass('activetab');
                $('a[href*="/u' + window.location.href.replace(/.*?\/u(\d+).*/, '$1') + 'contact"]').closest('li').removeClass('activetab');
            });

               /* prima casuta utilizatorul Admin - u1*/
            if (/\/u1/.test(window.location.href)) {
                var total = 20 + 0; /* punctaj */
                /* arhivarile Daca vrei sa arhivezi ceva de la utilizatorul respectiv
           adaugi 'achieved' ca la primul exemplu */
                var a_awardmaker = 'achieved';
                var a_membotm = '';
                var a_member = '';
                var a_helloworld = '';
                var a_avatar = '';
                var a_signature = '';
                var a_website = '';
                var a_hobbyist = '';
                var a_ptitle = '';
                var a_affiliate = '';
                var a_beta = '';
                var a_promoter = '';
                var a_bugbuster = '';
                var a_suggestion = '';
                var a_banhammer = '';
                var a_thinker = '';
                var a_fmdbday = '';
                var a_collector1 = '';
                var a_collector2 = '';
                var a_collector3 = '';
                var a_collector4 = '';
                var a_likeable = '';
                var a_loveable = '';
                var a_idol = '';
                var a_contributor = '';
                var a_writer = '';
                var a_keywarrior = '';
                var a_pressstart = '';
            };
/* Sfarsit */

   /* a doua casuta utilizatorul Utilizator - u2*/
            if (/\/u2/.test(window.location.href)) {
                var total = 20 + 0; /* punctaj editeaza in caz ca vrei sa aiba un punctaj mic sau mare  */
                /* arhivarile Daca vrei sa arhivezi ceva de la utilizatorul respectiv
           adaugi 'achieved' ca la primul exemplu */
                var a_awardmaker = 'achieved';
                var a_membotm = '';
                var a_member = '';
                var a_helloworld = '';
                var a_avatar = '';
                var a_signature = '';
                var a_website = '';
                var a_hobbyist = '';
                var a_ptitle = '';
                var a_affiliate = '';
                var a_beta = '';
                var a_promoter = '';
                var a_bugbuster = '';
                var a_suggestion = '';
                var a_banhammer = '';
                var a_thinker = '';
                var a_fmdbday = '';
                var a_collector1 = '';
                var a_collector2 = '';
                var a_collector3 = '';
                var a_collector4 = '';
                var a_likeable = '';
                var a_loveable = '';
                var a_idol = '';
                var a_contributor = '';
                var a_writer = '';
                var a_keywarrior = '';
                var a_pressstart = '';
            };
/* Sfarsit */
            $('#profile-advanced-details').html('<div id="achievement_stats">
    <table>                                  
      <tbody>
        <tr>
            <td class="award_label">Awards Totals&nbsp;:&nbsp;' + total + '/28&nbsp;(' + total + '%)</td>
            <td>
              <span id="aw_total"></span>
                 </td>
                    </tr>
                      <tr>
                        <td colspan="2">
                          <div id="achievement_progress">
                            <div style="width:' + total + '%;">
                              </div>
                                </div>
                                  </td>
                                    </tr>
                                      </tbody>
                                        </table>
                                     <div id="log" style="text-align:center;font-size:14px;margin:10px auto;">
                                   </div>
                             <div id="achievement_stats"></div>
                          <div id="fmd_achievement_list">
<table>
  <tbody>

    <tr>
      <td class="award_icon" ><span class="fa award a_awardmaker ' + a_awardmaker + '"></span></td>
      <td class="award_info">
        <div class="award_title">Award Maker</div>
        <div class="award_desc">The award you suggested was accepted! You make the awards now! <a href="/t424-awards" target="_blank">&nbsp;(?)</a></div>
      </td>
    </tr>
<tr>
      <td class="award_icon"><span class="fa award a_membotm ' + a_membotm + '"></span></td>
      <td class="award_info">
        <div class="award_title">Member of the Month</div>
        <div class="award_desc">A time exclusive award that\'s given to the most active member of the month.&nbsp; Defend your honor!&nbsp;<a href="/t435-member-of-the-month#3509" target="_blank">(?)</a></div>
      </td>
    </tr>
  <tr>
      <td class="award_icon"><span class="fa award a_member ' + a_member + '"></span></td>
      <td class="award_info">
        <div class="award_title">Registered</div>
        <div class="award_desc">You joined the forum! What will you do now?</div>
      </td>
    </tr>
<tr>
      <td class="award_icon"><span class="fa award a_helloworld ' + a_helloworld + '"></span></td>
      <td class="award_info">
        <div class="award_title">Hello world!</div>
        <div class="award_desc">Introduced yourself to the forum. This is the first step to de-lurking! <a href="/f5-introductions-and-farewells" target="_blank">(?)</a></div>
      </td>
    </tr>
             <tr>
      <td class="award_icon"><span class="fa award a_avatar ' + a_avatar + '"></span></td>
      <td class="award_info">
        <div class="award_title">Picture Perfect</div>
        <div class="award_desc">Personalized your avatar. You\'re looking FAB-U-LOUS! <a href="/profile?mode=editprofile&amp;page_profil=avatars" target="_blank">(?)</a></div>
      </td>
    </tr>
          
          <tr>
      <td class="award_icon"><span class="fa award a_signature ' + a_signature + '"></span></td>
      <td class="award_info">
        <div class="award_title">John Hancock \this please</div>
        <div class="award_desc">Filled in your signature. Wait.. what kind of signature IS \this!? <a href="/profile?mode=editprofile&amp;page_profil=signature" target="_blank">(?)</a></div>
      </td>
    </tr>
         <tr>
      <td class="award_icon"><span class="fa award a_website ' + a_website + '"></span></td>
      <td class="award_info">
        <div class="award_title">Site sweet site...</div>
        <div class="award_desc">Filled in your website. Your website is where your heart is.. <a href="/profile?mode=editprofile&amp;page_profil=informations" target="_blank">(?)</a></div>
      </td>
    </tr>
          <tr>
      <td class="award_icon"><span class="fa award a_hobbyist ' + a_hobbyist + '"></span></td>
      <td class="award_info">
        <div class="award_title">Hobbyist</div>
        <div class="award_desc">Filled in your hobbies. Show the world what you enjoy doing! <a href="/profile?mode=editprofile&amp;page_profil=informations" target="_blank">(?)</a></div>
      </td>
    </tr>
             <tr>
      <td class="award_icon"><span class="fa award a_ptitle ' + a_ptitle + '"></span></td>
      <td class="award_info">
        <div class="award_title">They call me...</div>
        <div class="award_desc">Gave yourself a personal title. Make it something catchy! <a href="/profile?mode=editprofile&amp;page_profil=informations" target="_blank">(?)</a></div>
      </td>
    </tr>          
          <tr>
      <td class="award_icon"><span class="fa award a_affiliate ' + a_affiliate + '"></span></td>
      <td class="award_info">
        <div class="award_title">Affiliate</div>
        <div class="award_desc">Became an affiliate. You scratch my back, and I\'ll scratch yours.. <a href="/t405-affiliating-with-fm-design#3247" target="_blank">(?)</a></div>
      </td>
    </tr>
          <tr>
      <td class="award_icon"><span class="fa award a_beta ' + a_beta + '"></span></td>
      <td class="award_info">
        <div class="award_title">Beta Tester</div>
        <div class="award_desc">Became a beta tester. Let\'s commence the experiments! <a href="/t429-application-beta-testers#3443" target="_blank">(?)</a></div>
      </td>
    </tr>
          <tr>
      <td class="award_icon"><span class="fa award a_promoter ' + a_promoter + '"></span></td>
      <td class="award_info">
        <div class="award_title">Self promotion rules!</div>
        <div class="award_desc">Promoted your forum or website. Self promotion isn\'t shameful.. right? <a href="/t65-website-promotion-etiquette" target="_blank">(?)</a></div>
      </td>
    </tr>
          <tr>
      <td class="award_icon"><span class="fa award a_bugbuster ' + a_bugbuster + '"></span></td>
      <td class="award_info">
        <div class="award_title">Bug Buster</div>
        <div class="award_desc">Reported a bug and and got it busted! Who you gonna call? <a href="/t463-submitting-bug-reports-or-suggestions#5261" target="_blank">(?)</a></div>
      </td>
    </tr>
                                                                                                                                                                      
              <tr>
      <td class="award_icon"><span class="fa award a_suggestion ' + a_suggestion + '"></span></td>
      <td class="award_info">
        <div class="award_title">The Power of Suggestion</div>
        <div class="award_desc">Suggested an improvement \for the forum that was accepted! The power of suggestion compels you!! <a href="/t463-submitting-bug-reports-or-suggestions#5261" target="_blank">(?)</a></div>
      </td>
    </tr>
          
          <tr>
      <td class="award_icon"><span class="fa award a_banhammer ' + a_banhammer + '"></span></td>
      <td class="award_info">
        <div class="award_title">The Almighty Ban Hammer</div>
        <div class="award_desc">Banned a member. Don\'t let it go to your head now! <a href="/t421-ban-game#3410" target="_blank">(?)</a></div>
      </td>
    </tr>
          
          <tr>
      <td class="award_icon"><span class="fa award a_thinker ' + a_thinker + '"></span></td>
      <td class="award_info">
        <div class="award_title">Thinking out loud</div>
        <div class="award_desc">Told the world what you were thinking. Did it feel good? <a href="/t165-what-are-you-thinking-right-now#541" target="_blank">(?)</a></div>
      </td>
    </tr>
                                                                                                                                                              <tr>
      <td class="award_icon"><span class="fa award a_fmdbday ' + a_fmdbday + '"></span></td>
      <td class="award_info">
        <div class="award_title">Happy Birthday!</div>
        <div class="award_desc">Celebrated FM Design\'s birthday. Codes-- erm, cake all around!</div>
      </td>
    </tr>
           <tr>
      <td class="award_icon"><span class="fa award a_collector1 ' + a_collector1 + '"></span></td>
      <td class="award_info">
        <div class="award_title">Award Collector</div>
        <div class="award_desc">Collected 5 awards. How many can you collect?</div>
      </td>
    </tr>
                                                                                                                                                              <tr>
      <td class="award_icon"><span class="fa award a_collector2 ' + a_collector2 + '"></span></td>
      <td class="award_info">
        <div class="award_title">Award Hunter</div>
        <div class="award_desc">Collected 15 awards. That\'s quite a haul, hunter!</div>
      </td>
    </tr>
            <tr>
      <td class="award_icon"><span class="fa award a_collector3 ' + a_collector3 + '"></span></td>
      <td class="award_info">
        <div class="award_title">Award Freak</div>
        <div class="award_desc">Collected \30 awards. No one is more crazy about awards than you!</div>
      </td>
    </tr>
            <tr>
      <td class="award_icon"><span class="fa award a_collector4 ' + a_collector4 + '"></span></td>
      <td class="award_info">
        <div class="award_title">God of A<i>war</i>ds</div>
        <div class="award_desc">Collected \60 awards. To become a god...</div>
      </td>
    </tr>      
        <tr>
      <td class="award_icon"><span class="fa award a_likeable ' + a_likeable + '"></span></td>
      <td class="award_info">
        <div class="award_title">Likeable</div>
        <div class="award_desc">\25 people liked your posts. Keep it  </div>
      </td>
    </tr>      
     <tr>
      <td class="award_icon"><span class="fa award a_loveable ' + a_loveable + '"></span></td>
      <td class="award_info">
        <div class="award_title">Loveable</div>
        <div class="award_desc">\100 people liked your posts. Everyone loves you!</div>
      </td>
    </tr>
     <tr>
      <td class="award_icon"><span class="fa award a_idol ' + a_idol + '"></span></td>
      <td class="award_info">
        <div class="award_title">Idol</div>
        <div class="award_desc">\500 people liked your posts. The world-- well, forum adores you!</div>
      </td>
</tr>      
 <tr>
      <td class="award_icon"><span class="fa award a_contributor ' + a_contributor + '"></span></td>
      <td class="award_info">
        <div class="award_title">Contributor</div>
        <div class="award_desc">Posted \50 times. You\'re starting to get the hang of this!</div>
      </td>
    </tr>
  <tr>
      <td class="award_icon"><span class="fa award a_writer ' + a_writer + '"></span></td>
      <td class="award_info">
        <div class="award_title">Born Writer</div>
        <div class="award_desc">Posted \250 times. You were born to write!</div>
      </td>
    </tr>
  <tr>
      <td class="award_icon"><span class="fa award a_keywarrior ' + a_keywarrior + '"></span></td>
      <td class="award_info">
        <div class="award_title">Keyboard Warrior</div>
        <div class="award_desc">Posted \1,\000 times. No one can match your keystrokes!</div>
      </td>
    </tr>
         <tr>
      <td class="award_icon"><span class="fa award a_pressstart ' + a_pressstart + '"></span></td>
      <td class="award_info">
        <div class="award_title">Press Start</div>
        <div class="award_desc">Amassed a total of /250 points. What are these used \for?</div>
      </td>
    </tr>
                                                                                                                                                            
  </tbody>
</table>
</div>
                         </div>
                     </div>
        ');
        };
    };
});

O seara placuta ! La revedere
avatar
Ionut
Contribuitor suport
Contribuitor suport

Mesaje : 771
Varsta : 19
Data înscrierii : 01/11/2015
Multumiri : 123
Niciun avertisment

Vezi profilul utilizatorului http://hhttp://invisionpower.rpgwars.net/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Isaac la data de Sam 30 Dec - 0:39

Buna seara,

Panou de administrare => MODULE => HTML & JAVASCRIPT =>
Gestiunea codurilor JavaScript => Creeaza un cod JavaScript

Titlu * : Any Name
Amplasare : Toate Paginile
Cod JavaScript * :
Cod:
(function(){var version=1;if(!window.FA)window.FA={};if(FA.Popup){if(window.console)console.warn('FA.Popup has already been initialized.');return}FA.Popup={lang:{button_close:'X',default_title:'Popup',loading:'Loading...',error_getPage:'An error occurred while getting the page. Please try again later.',error_connection:'A connection error occurred. Please check your internet connection and try again later.'},active:false,forum:{version:version,content:version?'#main-content':'#content-container > table > tbody > tr > td[width="100%"]',pages:['.gensmall:has(.sprite-arrow_subsilver_left, .sprite-arrow_subsilver_right) a[href^="/"], .nav:has(.sprite-arrow_subsilver_left, .sprite-arrow_subsilver_right) a[href^="/"]','.pagination:not(strong) span a','.paging a[href^="/"]','.pagination a[href^="/"]'][version]},open:function(href,title,callback){if(FA.Popup.active)FA.Popup.close();var box=document.createElement('DIV'),overlay=document.createElement('DIV'),content=document.createElement('DIV'),close=document.createElement('INPUT');close.type='button';close.value=FA.Popup.lang.button_close;close.className='fa_popup_button fa_popup_close';close.onclick=FA.Popup.close;content.id='fa_popup_content';content.innerHTML='<div class="fa_popup_loading">'+FA.Popup.lang.loading+'</div>';overlay.id='fa_popup_overlay';overlay.style.zIndex='99998';overlay.onclick=FA.Popup.close;if(FA.Popup.forum.version==2)box.className+=' pun';box.id='fa_popup';box.style.zIndex='99999';box.innerHTML='<div class="fa_popup_title">'+(title?title:FA.Popup.lang.default_title)+'</div>';box.appendChild(close);box.appendChild(content);if(href){$.get(href,function(data){content.innerHTML='';if(callback)callback(data,content);else{var main=$(FA.Popup.forum.content,data)[0];if(main){content.appendChild(main);var page=$(FA.Popup.forum.pages,content);if(page[0])page.click(FA.Popup.getPage)}}}).fail(function(){content.innerHTML='<div class="fa_popup_error">'+FA.Popup.lang.error_connection+'</div>'})}else if(callback){content.innerHTML='';callback(content)}document.body.style.overflow='hidden';document.body.appendChild(overlay);document.body.appendChild(box);FA.Popup.active=true},close:function(){var box=document.getElementById('fa_popup'),overlay=document.getElementById('fa_popup_overlay');box&&document.body.removeChild(box);overlay&&document.body.removeChild(overlay);document.body.style.overflow='';FA.Popup.active=false},getPage:function(){var content=document.getElementById('fa_popup_content');$.get(this.href,function(data){var main=$(FA.Popup.forum.content,data)[0],page;if(main){content.scrollTop=0;content.innerHTML='';content.appendChild(main);page=$(FA.Popup.forum.pages,content);if(page[0])page.click(FA.Popup.getPage)}else{content.innerHTML='<div class="fa_popup_error">'+FA.Popup.lang.error_getPage+'</div>'}}).fail(function(){content.innerHTML='<div class="fa_popup_error">'+FA.Popup.lang.error_connection+'</div>'});return false}};document.write('<style type="text/css">#fa_popup_overlay{background-color:#FFF;opacity:.8;position:fixed;top:0;left:0;right:0;bottom:0}#fa_popup{font-size:10px;font-family:Verdana,Arial,Helvetica,sans-serif;background:#FFF;border-radius:3px;position:fixed;top:50px;left:12%;right:12%;bottom:30px;padding:3px;width:auto;overflow:hidden;box-shadow:0 3px 10px rgba(34,25,25,.4)}#fa_popup_content{border:1px solid #EEE;border-radius:3px;padding:3px;overflow:auto;height:90%}.fa_popup_title{color:#333;font-size:12px;font-weight:700;font-family:"Trebuchet MS",Arial,Verdana,Sans-serif;border-bottom:1px solid #333;margin:8px 0;padding-bottom:2px}a.fa_popup_button,input.fa_popup_button{color:#FFF!important;font-size:12px;font-weight:700;text-indent:0;text-decoration:none!important;background-color:#39C;border:none;border-bottom:2px solid #17A;border-radius:3px;display:inline-block;line-height:20px;padding:0 6px;cursor:pointer;transition:.3s}input.fa_popup_close{background-color:#E53;border-color:#C31;min-width:25px;position:absolute;top:2px;right:2px}a.fa_popup_button:hover,input.fa_popup_button:hover{background-color:#333;border-color:#111}a.fa_popup_button:active,a.fa_popup_button:focus,input.fa_popup_button:focus{background-color:#EB5;border-color:#C93;outline:0}.fa_popup_error{color:#966;font-size:12px;background:#FEE;border:1px solid #ECC;border-bottom-width:2px;border-radius:3px;padding:9px 6px;margin:6px}.fa_popup_friends{background:#EEE;border:1px solid #DDD;border-bottom-width:2px;border-radius:3px;display:inline-block;padding:3px;margin:3px;float:none;overflow:hidden}#fa_popup .add_success{color:#8B5}#fa_popup .deny_success{color:#E53}#fa_popup .add_failed{color:#EB5}.fa_popup_loading{color:#333;font-size:14px;font-weight:700;text-align:center;padding:25px}.fa_popup_more{text-align:center;margin:3px;clear:both}#fa_popup_content>td{display:block}#fa_popup.pun tbody.statused span.status{position:static}</style>')})();

Panou de administrare => MODULE => HTML & JAVASCRIPT =>
Gestiunea codurilor JavaScript => Creeaza un cod JavaScript

Titlu * : Awards System
Amplasare : Toate Paginile
Cod JavaScript * :
Cod:
window.fmd_achievers_list = {};
function fmd_count_awards(id, target, show) {
  target = target ? target : document;
  id = id ? id : _userdata.user_id;
  var
   total_members = 1,
   data = {"names": {
      1:"Apollo"
   },
   "achieved": {
      "a_member": [1],
      "a_beta":[1],
      "a_promoter":[1],
      "a_teacher":[1],
      "a_artist":[1],
      "a_ptitle":[1],
      "a_banhammer":[1],
      "a_thinker":[1],
      "a_likeable":[1],
      "a_loveable":[1],
      "a_contributor":[1],
      "a_writer":[1],
      "a_pressstart":[1],
      "a_highscore":[1],
      "a_idol":[1],
      "a_keywarrior":[1],
      "a_signature":[1],
      "a_year1":[1],
      "a_year2":[1],
      "a_group1":[1],
      "a_group2":[1],
      "a_group3":[1],
      "a_collector1":[1],
      "a_collector2":[1],
      "a_hobbyist":[1],
      "a_website":[1],
      "a_artist2":[1],
      "a_artist3":[1],
      "a_teacher2":[1],
      "a_teacher3":[1],
      "a_collector3":[1],
      "a_avatar":[1],
      "a_friend":[1],
      "a_pm":[1],
      "a_pm2":[1],
      "a_pm3":[1],
      "a_liker":[1],
      "a_liker2":[1],
      "a_topic":[1],
        "a_topic2":[1],
        "a_topic3":[1],
        "a_friend2":[1],
        "a_liker3":[1],
        "a_number1":[1],
        "a_year3":[1],
        "a_awardmaker":[1],
        "a_bugbuster":[1],
        "a_suggestion":[1],
        "a_tester":[1],
        "a_month1":[1],
        "a_month2":[1],
        "a_tester2":[1],
        "a_membotm":[1],
        "a_month3":[1]
      }
   },
         stats = $("#achievement_stats", target)[0], all_awards = $(".award", target), i = 0, j = all_awards.length, calculate = _userdata.session_logged_in || show;
     stats.innerHTML = '<table><tbody><tr><td class="award_label">Awards Achieved : </td><td><span id="aw_total">0</span>/' + j + ' (<span id="aw_percent">0</span>%)</td></tr><tr><td colspan="2"><div id="achievement_progress"><div style="width:0%;"></div></div></td></tr></tbody></table>' + (calculate ? "" : '<div style="text-align:center;font-size:14px;margin:10px auto;"><a href="/login">Login</a> or <a href="/register">Register</a> to start earning awards!</div>');
   if (calculate) {
    $.get("/u" + id, function(d) {
      var your_awards = $("#field_id1", d), award_array = your_awards.html().replace(/<td class="(.*?)"><\/td>/g, "$1|"), achieved = your_awards[0].getElementsByTagName("TD").length, award_name, c, k, l, m, n, div, percent, rarity, rating, hit, num;
      award_array = award_array.slice(0, award_array.length - 1).split("|");
      l = award_array.length;
      for (; i < j; i++) {
        hit = false;
        div = $('<div class="award_achievers" />')[0];
        c = all_awards[i].className.replace(/fa award /, "");
        for (k = 0; k < l; k++) {
          if (award_array[k] == c) {
            all_awards[i].className += " achieved";
            break;
          }
        }
        for (m in data.achieved) {
          if (m == c) {
            hit = true;
            num = data.achieved[m].length;
            award_name = $(all_awards[i]).parent().next().find(".award_title").text();
            rarity = (num / total_members * 100).toFixed(1);
            rating = rarity >= 50.1 ? "Common" : rarity <= 50 && rarity >= 30.1 ? "Uncommon" : rarity <= 30 && rarity >= 15.1 ? "Rare" : rarity <= 15 && rarity >= 5.1 ? "Very Rare" : "Ultra Rare";
            for (fmd_achievers_list[c] = num + " out of " + total_members + ' members achieved "' + award_name + '"\nRarity : ' + rating + " (" + rarity + "%)\n\n", n = 0; n < num; n++) {
              fmd_achievers_list[c] += n + 1 + ". " + data.names[data.achieved[m][n]] + "\n";
            }
            div.innerHTML = "<strong>" + num + "</strong> member" + (num == 1 ? "" : "s") + ' achieved this award. <a href="#" onclick="alert(fmd_achievers_list.' + c + ", 'Award - " + award_name.replace(/'/g, "\\'") + '\'); return false;">Who?</a> <span class="award_rarity">' + rating + " (" + rarity + "%)</span>";
            break;
          }
        }
        if (!hit) {
          div.innerHTML = 'No one has achieved this award yet. <span class="award_rarity">Ultra Rare (0.0%)</span>';
        }
        $(all_awards[i]).parent().next().append(div);
      }
      var count = $("#aw_total, #aw_percent", target);
      percent = (achieved / j * 100).toFixed();
      count[0].innerHTML = achieved;
      count[1].innerHTML = percent;
      $("#achievement_progress", target)[0].firstChild.style.width = percent + "%";
      count.each(function() {
        $(this).prop("Counter", 0).animate({Counter:$(this).text()}, {duration:500, easing:"swing", step:function(now) {
          $(this).text(Math.ceil(now));
        }});
      });
    });
  }
}

function fmd_achievementHistory(o) {
  if (!o.id) {
    window.console && console.warn && console.warn("Please specify a node id.");
    return;
  }
  if (!o.days) {
    o.days = Infinity;
  }
  var container = document.getElementById(o.id), htmlStr = "", names = {1:"Ange Tuteur", 2:"Deux", 3:"Anlutaire", 4:"Sugar", 5:"mist3r0us_b0y", 6:"HagoromoOtsutsuki", 7:"masinho", 8:"SLGray", 9:"Sasori", 10:"Ikerepc", 11:"karboNNN", 12:"Sir Chivas\u00e2\u201e\u00a2", 13:"Arial Black", 14:"gooraeze", 15:"Mr.Panos", 16:"ddoesmc", 17:"Marios94", 18:"JAN2X", 19:"tripoli.forum", 20:"SSYT", 21:"DanZ", 22:"Selvester", 23:"Luiz1877", 24:"ashik4u", 25:"Ranzer", 26:"ramesh1990", 27:"Rhino.Freak", 28:"Derri",
  29:"masesm", 30:"naki", 31:"bucnong", 32:"SarkZKalie", 33:"semo", 34:"Deh", 35:"K.", 36:"Hancki", 37:"puppycheese123", 38:"Typlo", 39:"LeePark", 40:"lightningterror", 41:"Van-Helsing", 42:"BlackScorpion", 43:"Niko!", 44:"Beyonder", 45:"fxg", 46:"Paradiseng", 47:"Illest\u00e2\u201e\u00a2", 48:"hanabi", 49:"DeathDunk98*", 50:"sivastar", 51:"Theshaka", 52:"Jadster", 53:"Nikoy Oun", 54:"schiggysboard", 55:"Michael_vx", 56:"CoCo", 57:"J0k3R^", 58:"DDril", 59:"Anorak", 60:"SK747", 61:"smejker", 62:"Ch@lo Valdez",
  63:"qirou", 64:"Udarsha45", 65:"Ape", 66:"paint", 67:"JScript", 68:"Ramdaman", 69:"Grow", 70:"FISH CRAZY", 71:"ddr3", 72:"tommycoo", 73:"Ros Joshua Recto", 74:"novaviet.com", 75:"DeeW.", 76:"sonlapro", 77:"Tech Review", 78:"Mati", 79:"brandon_g", 80:"AlexisMcDevin", 81:"420fuse", 82:"_Twisted_Mods_", 83:"Luffy", 84:"geny", 85:"Luke Spike", 86:"refresh101", 87:"Daemon", 89:"Eugeo Ayano", 90:"The Magic 8-Ball", 91:"FM user", 92:"Scout", 93:"ForumMember", 94:"FiB", 95:"Andiweb", 96:"gameworld", 97:"AlvaroX\u00e2\u201e\u00a2",
  98:"gunsmaker", 99:"Eeyen", 100:"Tonight", 101:"bilalbest", 102:"IonutzD", 103:"An Jayce", 104:"STBW", 105:"haya-m", 106:"lasperpen", 107:"duocnham", 108:"lilkhangvn", 109:"Juny Thoang", 111:"GuardianAngel", 112:"Delsin", 113:"Eslam Love", 114:"Blood-Vampire", 115:"Maxime", 116:"Yassine Bablil", 117:"Miltonius", 118:"FrOsTyXi", 119:"fascicularia", 120:"creepytailor59", 121:"Wilson", 122:"mr.abolo", 123:"new.moon", 124:"djblah", 125:"Sir.Mayo", 126:"celestial spirit", 127:"psformii", 128:"qmars(pkq)",
  129:"Niceplug Forum", 130:"chandoi", 131:"Troubleshoot", 132:"maclucpham", 133:"Mpaglametsos", 134:"Anonymos", 135:"bosy", 136:"someone", 137:"BrokenMiracle2", 138:"Stallmp", 139:"GDesign", 140:"DL747", 141:"X-Gaming", 142:"Forward", 143:"Andrei34", 144:"smurfavr", 145:"HTMLCode", 146:"bote", 147:"alla13", 148:"Kadebostany", 149:"aEEk.#", 150:"Cannibal", 151:"TreeTopMonkey", 152:"PAIN", 153:"maytrang", 154:"Amy", 155:"The Awakened", 156:"Kiekie", 157:".DayDreamer.", 158:"Jazeon", 159:"Mick", 160:"isaacl816342117",
  162:"Royal Bengal", 163:"Rukiafan", 164:"Distruktion1408", 165:"RyanPham", 166:"mim\u00c3\u00b3za", 167:"EgoOne", 168:"Canhraungot", 169:"Ruzmarin", 170:"jessy", 171:"omarpop23", 172:"nooneknow", 173:"Yuushishio", 174:"white", 175:"Soulmonster", 176:"Cesar!", 177:"super dj", 178:"skouliki", 180:"Bigtuber", 181:"Shago", 182:"Joost", 183:"Arisa", 184:"jfgonzales", 185:"Asriel Dreemurr", 186:"Philosopher", 187:"Leah7", 188:"Lorem", 189:"Jorpeto", 190:"Ace 1", 191:"trandangduat1", 192:"mybeautiful9",
  193:"vtnlinh", 194:"deadhungryme", 195:"yayayes", 196:"loser", 197:"while2", 198:"Forumedic", 199:"Sora Shiun'in", 200:"george abdo", 201:"forget-me-not", 202:"xaesko", 203:"keko_ferkeko", 204:"TonnyKamper", 205:"Draxion", 206:"assemDz", 207:"requiredv", 208:"ndonhym", 209:"Kisskiss", 210:"Gin NeOs", 211:"universecat", 212:"Valoish", 213:"HaeDoesGraphics", 214:"no_dest", 215:"Haggis", 216:"mr.sayed", 217:"sohab", 218:"Teo!", 219:"mahmoudbadran", 220:"bodahassan", 221:"Mr.Alam", 222:"Adel Rehan",
  223:"Raavein", 224:"TroyEccles", 225:"ahmed salman2", 226:"error404", 227:"IsmaelS.", 228:"Cepheus", 229:"ItalianMunchiez", 230:"Vellichor", 231:"zizou2012", 232:"MateusAnjosV", 233:"mrsrz", 234:"yeffkr"}, history = {"September 8, 2016":{"u62":["a_friend"], "u213":["a_friend", "a_writer"], "u212":["a_pm2"], "u83":["a_pm3", "a_writer", "a_highscore", "a_collector3"], "u61":["a_liker"], "u112":["a_ptitle"], "u158":["a_contributor"], "u187":["a_writer"], "u203":["a_pressstart"]}, "September 1, 2016":{"u212":["a_month1",
  "a_month2", "a_membotm", "a_highscore", "a_collector3"], "u213":["a_month1", "a_pressstart"], "u55":["a_writer", "a_group2", "a_collector2"], "u143":["a_year1", "a_collector2"], "u144":["a_year1"], "u158":["a_pressstart"], "u180":["a_signature", "a_likeable", "a_pressstart"], "u220":["a_avatar"], "u233":["a_avatar", "a_hobbyist", "a_ptitle"], "u234":["a_avatar", "a_signature"]}, "August 28, 2016":{"u55":["a_beta"]}, "August 27, 2016":{"u230":["a_helloworld", "a_topic", "a_avatar", "a_ptitle", "a_hobbyist",
  "a_website", "a_collector1"], "u212":["a_helloworld", "a_loveable", "a_friend", "a_topic2"], "u188":["a_topic", "a_signature"], "u19":["a_highscore", "a_collector1"], "u213":["a_likeable"], "u228":["a_avatar"]}, "August 25, 2016":{"u229":["a_helloworld", "a_topic"]}, "August 24, 2016":{"u198":["a_topic2"], "u171":["a_liker"], "u58":["a_topic", "a_avatar", "a_collector1"], "u158":["a_topic", "a_avatar", "a_group1", "a_collector1"], "u224":["a_topic", "a_group1"], "u225":["a_topic", "a_ptitle"],
  "u227":["a_topic", "a_avatar"], "u4":["a_year3"], "u16":["a_highscore", "a_collector1"], "u18":["a_highscore"], "u22":["a_highscore"], "u140":["a_year1"], "u141":["a_year1"], "u142":["a_year1"], "u213":["a_collector2"], "u222":["a_avatar", "a_hobbyist"]}, "August 23, 2016":{"u227":["a_helloworld"]}, "August 22, 2016":{"u158":["a_helloworld"]}, "August 16, 2016":{"u212":["a_thinker"], "u213":["a_thinker", "a_artist"]}, "August 15, 2016":{"u213":["a_signature", "a_contributor", "a_helloworld"], "u220":["a_topic"],
  "u212":["a_liker2", "a_pm"], "u17":["a_highscore"], "u138":["a_year1"], "u139":["a_year1"], "u171":["a_website"], "u217":["a_pressstart"]}, "August 14, 2016":{"u212":["a_artist"]}, "August 12, 2016":{"u8":["a_tester2"], "u191":["a_topic"], "u221":["a_topic"], "u13":["a_highscore", "a_collector1"], "u14":["a_highscore"], "u46":["a_highscore"], "u162":["a_hobbyist", "a_website", "a_contributor", "a_pressstart", "a_collector1"], "u218":["a_group2", "a_collector1"]}, "August 8, 2016":{"u171":["a_pm"],
  "u180":["a_pm2"], "u162":["a_topic", "a_avatar", "a_group1"], "u217":["a_topic2"], "u88":["a_number1"], "u164":["a_group2"], "u170":["a_pressstart"], "u212":["a_signature", "a_likeable"], "u215":["a_group1"]}, "August 5, 2016":{"u8":["a_pm2"], "u187":["a_liker2"], "u100":["a_topic", "a_collector1"], "u210":["a_topic", "a_website", "a_collector1"], "u217":["a_topic", "a_website", "a_contributor", "a_group1", "a_collector1"], "u20":["a_website"], "u180":["a_contributor"], "u190":["a_pressstart"],
  "u198":["a_pressstart"], "u212":["a_writer"]}, "August 2, 2016":{"u88":["a_fmdbday"], "u46":["a_fmdbday"], "u143":["a_fmdbday"], "u1":["a_fmdbday"], "u42":["a_fmdbday", "a_keywarrior"], "u168":["a_fmdbday"], "u212":["a_fmdbday", "a_collector2"]}, "August 1, 2016":{"u218":["a_beta", "a_group1", "a_topic"], "u215":["a_topic"], "u187":["a_pm3", "a_loveable"], "u212":["a_liker", "a_pressstart"], "u1":["a_year3"], "u2":["a_year3"], "u3":["a_year3", "a_collector2"], "u137":["a_year1"], "u198":["a_avatar"],
  "u209":["a_group1"]}, "July 29, 2016":{"u46":["a_friend", "a_collector2"], "u88":["a_friend2"], "u180":["a_pm"], "u198":["a_pm"], "u213":["a_topic", "a_group2"], "u20":["a_group2"], "u62":["a_year2"], "u212":["a_contributor"], "u215":["a_hobbyist"]}, "July 27, 2016":{"u212":["a_bugbuster"]}, "July 26, 2016":{"u55":["a_liker"], "u168":["a_topic", "a_group2"], "u180":["a_topic"], "u12":["a_highscore"], "u136":["a_year1"], "u170":["a_website"]}, "July 25, 2016":{"u180":["a_beta", "a_avatar", "a_group1",
  "a_group2", "a_collector1"], "u213":["a_beta", "a_group1"], "u212":["a_beta", "a_group1", "a_group2"]}, "July 22, 2016":{"u209":["a_topic"], "u212":["a_topic", "a_avatar", "a_hobbyist", "a_website", "a_ptitle", "a_collector1"], "u214":["a_topic"], "u2":["a_group2"], "u5":["a_group1"], "u8":["a_group3"], "u10":["a_group2"], "u15":["a_group1"], "u22":["a_group1"], "u27":["a_group3"], "u32":["a_group2"], "u40":["a_group1"], "u41":["a_group2", "a_collector3"], "u42":["a_group2"], "u43":["a_group3"],
  "u44":["a_group1"], "u46":["a_group2"], "u51":["a_group1"], "u54":["a_contributor", "a_group2"], "u55":["a_group1"], "u57":["a_group2"], "u61":["a_group1"], "u62":["a_group1"], "u65":["a_group2"], "u70":["a_group1"], "u79":["a_group1"], "u82":["a_group2"], "u83":["a_likeable", "a_group3"], "u86":["a_group1"], "u94":["a_group1"], "u95":["a_group1"], "u121":["a_group2", "a_collector3"], "u135":["a_year1"], "u143":["a_group2"], "u144":["a_group1"], "u151":["a_group1", "a_collector1"], "u169":["a_group2"],
  "u170":["a_group1", "a_collector1"], "u171":["a_group1"], "u178":["a_group2"], "u185":["a_group1"], "u187":["a_signature"], "u188":["a_group2"], "u190":["a_group1"], "u194":["a_group1"], "u198":["a_signature", "a_contributor", "a_group2"], "u203":["a_group2"], "u208":["a_avatar"], "u210":["a_avatar", "a_ptitle"], "u211":["a_avatar"], "u213":["a_avatar", "a_hobbyist", "a_website", "a_ptitle", "a_collector1"]}, "July 18, 2016":{"u54":["a_beta", "a_group1"], "u2":["a_friend"], "u134":["a_year1"],
  "u180":["a_hobbyist"], "u187":["a_contributor", "a_pressstart"], "u46":["a_contributor"], "u170":["a_contributor"]}, "July 16, 2016":{"u178":["a_affiliate", "a_group1"], "u198":["a_beta", "a_group1", "a_collector1"]}, "July 15, 2016":{"u55":["a_highscore"], "u11":["a_highscore", "a_collector1"], "u207":["a_topic"], "u187":["a_beta", "a_group2", "a_group3"], "u88":["a_beta", "a_group2", "a_group3"], "u46":["a_beta", "a_group1"]}, "July 10, 2016":{"u168":["a_liker"], "u203":["a_beta", "a_group1"]},
  "July 8, 2016":{"u203":["a_ptitle", "a_contributor"], "u150":["a_pressstart"], "u133":["a_year1"], "u61":["a_year2"], "u205":["a_topic"]}, "July 6, 2016":{"u204":["a_helloworld"], "u203":["a_helloworld", "a_signature"]}, "July 5, 2016":{"u190":["a_banhammer"], "u178":["a_promoter", "a_collector2"], "u132":["a_year1"], "u198":["a_website"], "u205":["a_avatar"], "u204":["a_friend", "a_liker", "a_topic", "a_avatar", "a_signature", "a_hobbyist", "a_website", "a_ptitle", "a_collector1"], "u203":["a_topic",
  "a_avatar", "a_hobbyist", "a_website", "a_collector1"]}, "July 1, 2016":{"u190":["a_contributor"], "u149":["a_pressstart"], "u27":["a_writer"], "u15":["a_highscore"], "u9":["a_highscore"], "u7":["a_highscore", "a_collector1"]}, "June 27, 2016":{"u201":["a_avatar"], "u131":["a_year1"]}, "June 23, 2016":{"u130":["a_year1"], "u88":["a_loveable"], "u187":["a_pm2", "a_liker", "a_collector2"]}, "June 20, 2016":{"u148":["a_pressstart"], "u129":["a_year1"], "u128":["a_year1"], "u42":["a_website"], "u20":["a_highscore",
  "a_collector2"], "u6":["a_highscore", "a_collector1"], "u200":["a_topic"]}, "June 17, 2016":{"u151":["a_pressstart"], "u59":["a_year2"], "u42":["a_likeable"], "u187":["a_pm"]}, "June 14, 2016":{"u147":["a_pressstart"], "u58":["a_year2"], "u199":["a_topic", "a_helloworld", "a_promoter", "a_avatar", "a_collector1"]}, "June 10, 2016":{"u57":["a_year2"]}, "June 9, 2016":{"u195":["a_writer"], "u179":["a_pressstart"], "u20":["a_topic", "a_helloworld", "a_avatar", "a_hobbyist"]}, "June 7, 2016":{"u194":["a_pressstart"],
  "u56":["a_year2"], "u54":["a_year2"], "u55":["a_year2"], "u42":["a_writer"], "u121":["a_friend2"], "u79":["a_banhammer"]}, "June 2, 2016":{"u146":["a_pressstart"]}, "June 1, 2016":{"u53":["a_year2"], "u42":["a_highscore"], "u64":["a_topic"], "u41":["a_month1"], "u187":["a_thinker"]}, "May 31, 2016":{"u42":["a_thinker", "a_banhammer"], "u54":["a_thinker"], "u46":["a_thinker"]}, "May 29, 2016":{"u42":["a_beta", "a_group1", "a_collector2"], "u194":["a_hobbyist"], "u127":["a_year1", "a_collector1"],
  "u198":["a_topic", "a_promoter"]}, "May 28, 2016":{"u126":["a_year1", "a_collector1"]}, "May 27, 2016":{"u170":["a_avatar"], "u194":["a_banhammer", "a_thinker", "a_contributor"]}, "May 26, 2016":{"u187":["a_website", "a_likeable"], "u1":["a_number1"], "u83":["a_pm2"]}, "May 25, 2016":{"u194":["a_signature"], "u145":["a_pressstart"], "u52":["a_year2"]}, "May 24, 2016":{"u125":["a_year1"], "u51":["a_year2"], "u194":["a_helloworld", "a_avatar", "a_ptitle", "a_topic", "a_collector1"]}, "May 23, 2016":{"u182":["a_website"]},
  "May 22, 2016":{"u42":["a_contributor"]}, "May 21, 2016":{"u171":["a_contributor"], "u124":["a_year1"], "u65":["a_pm2", "a_collector2"]}, "May 20, 2016":{"u193":["a_avatar", "a_hobbyist", "a_website", "a_ptitle", "a_collector1"], "u190":["a_ptitle"], "u83":["a_liker"]}, "May 19, 2016":{"u182":["a_avatar"], "u46":["a_avatar", "a_website"]}, "May 18, 2016":{"u190":["a_avatar", "a_signature", "a_collector1"], "u123":["a_year1"], "u122":["a_year1"]}, "May 17, 2016":{"u83":["a_pm"], "u41":["a_pm2",
  "a_writer"], "u190":["a_topic", "a_helloworld", "a_hobbyist"]}, "May 16, 2016":{"u187":["a_friend", "a_ptitle"], "u42":["a_friend"]}, "May 15, 2016":{"u46":["a_topic", "a_signature", "a_collector1"], "u187":["a_artist"]}, "May 14, 2016":{"u187":["a_affiliate", "a_group1", "a_helloworld", "a_collector1", "a_topic"], "u27":["a_liker2"], "u8":["a_friend2"], "u121":["a_loveable"], "u143":["a_likeable"], "u178":["a_pressstart"]}, "May 13, 2016":{"u41":["a_bugbuster", "a_tester"], "u121":["a_year1"]},
  "May 11, 2016":{"u41":["a_helloworld"], "u83":["a_contributor"], "u50":["a_year2"], "u49":["a_year2"], "u4":["a_highscore"]}, "May 10, 2016":{"u83":["a_beta", "a_group2", "a_thinker", "a_banhammer"], "u186":["a_ptitle"], "u121":["a_pm"], "u188":["a_beta", "a_group1", "a_collector1"], "u32":["a_beta", "a_group1"], "u119":["a_beta", "a_group1", "a_collector1"]}, "May 8, 2016":{"u188":["a_avatar", "a_website", "a_ptitle"], "u186":["a_signature", "a_collector1"], "u178":["a_hobbyist"], "u48":["a_year2"],
  "u93":["a_affiliate", "a_group1", "a_collector1"], "u1":["a_liker3"]}, "May 6, 2016":{"u186":["a_helloworld"], "u185":["a_promoter", "a_helloworld"]}, "May 5, 2016":{"u41":["a_teacher"]}, "May 3, 2016":{"u83":["a_awardmaker", "a_promoter"]}, "May 2, 2016":{"u83":["a_artist", "a_helloworld"], "u88":["a_month1", "a_month2", "a_month3", "a_membotm"], "u8":["a_month1", "a_month2"], "u121":["a_month1"]}, "April 29, 2016":{"u183":["a_helloworld"]}, "April 27, 2016":{"u2":["a_banhammer"]}, "April 24, 2016":{"u168":["a_beta",
  "a_thinker"]}, "April 23, 2016":{"u41":["a_suggestion"], "u121":["a_helloworld"]}, "April 21, 2016":{"u169":["a_suggestion"]}, "April 20, 2016":{"u41":["a_ptitle"]}, "April 18, 2016":{"u88":["a_teacher"], "u164":["a_promoter"], "u27":["a_awardmaker"], "u161":["a_tester"], "u143":["a_tester"], "u121":["a_tester"], "u43":["a_tester"], "u8":["a_tester"]}, "April 17, 2016":{"u179":["a_ptitle", "a_banhammer", "a_thinker", "a_artist"], "u178":["a_thinker"], "u88":["a_awardmaker"], "u164":["a_affiliate"]},
  "April 16, 2016":{"u178":["a_artist", "a_helloworld"], "u179":["a_helloworld"]}, "April 12, 2016":{"u8":["a_suggestion"]}, "April 11, 2016":{"u40":["a_thinker"]}, "April 10, 2016":{"u171":["a_banhammer"]}, "April 9, 2016":{"u88":["a_suggestion"]}, "April 7, 2016":{"u43":["a_helloworld"], "u118":["a_helloworld"], "u8":["a_helloworld"], "u117":["a_helloworld"], "u10":["a_helloworld"], "u94":["a_helloworld"], "u89":["a_helloworld"], "u88":["a_helloworld"], "u55":["a_helloworld"], "u28":["a_helloworld"],
  "u65":["a_helloworld"], "u79":["a_helloworld"], "u82":["a_helloworld"], "u78":["a_helloworld"], "u70":["a_helloworld"], "u47":["a_helloworld"], "u42":["a_helloworld"], "u44":["a_helloworld"], "u40":["a_helloworld"], "u29":["a_helloworld"], "u27":["a_helloworld"], "u15":["a_helloworld"], "u22":["a_helloworld"], "u12":["a_helloworld"], "u5":["a_helloworld"], "u1":["a_helloworld"], "u43":["a_beta", "a_affiliate", "a_banhammer", "a_thinker"], "u41":["a_thinker"]}, "April 6, 2016":{"u121":["a_bugbuster"]},
  "April 5, 2016":{"u1":["a_artist2", "a_artist3", "a_teacher2", "a_teacher3"], "u27":["a_beta", "a_ptitle", "a_artist"], "u82":["a_teacher"], "u61":["a_teacher"], "u29":["a_teacher"], "u121":["a_beta"]}, "April 3, 2016":{"u121":["a_ptitle", "a_thinker"], "u8":["a_bugbuster"]}, "April 2, 2016":{"u52":["a_awardmaker"]}, "April 1, 2016":{"u41":["a_banhammer"], "u8":["a_membotm"], "u20":["a_beta"]}, "March 31, 2016":{"u88":["a_ptitle", "a_banhammer", "a_thinker"], "u8":["a_ptitle", "a_banhammer", "a_thinker"],
  "u1":["a_ptitle", "a_banhammer", "a_thinker"], "u121":["a_banhammer"], "u143":["a_banhammer"], "u165":["a_banhammer"], "u169":["a_banhammer"], "u79":["a_thinker"], "u65":["a_thinker"], "u17":["a_thinker"], "u10":["a_thinker"]}, "March 30, 2016":{"u41":["a_beta"]}, "March 29, 2016":{"u1":["a_promoter", "a_teacher", "a_artist"], "u8":["a_beta", "a_awardmaker", "a_promoter"], "u88":["a_promoter"], "u44":["a_promoter"], "u126":["a_promoter"], "u127":["a_promoter"], "u86":["a_promoter"], "u79":["a_promoter"],
  "u114":["a_promoter"], "u78":["a_promoter"], "u57":["a_promoter"], "u37":["a_promoter"], "u43":["a_promoter"], "u29":["a_promoter"], "u10":["a_promoter"], "u22":["a_promoter"], "u169":["a_awardmaker"], "u161":["a_beta"], "u143":["a_beta"]}, "March 18, 2016":{"u8":["a_affiliate"]}}, i, j, k0, k1, awards, day_members, day_awards, total_awards = 0, total_days = 0;
  for (k0 in history) {
    if (total_days++ < o.days) {
      htmlStr += '<div class="recent_achievement_day"><div class="recent_achievement_date">' + k0 + "</div>";
      day_members = 0;
      day_awards = 0;
      for (k1 in history[k0]) {
        for (i = 0, j = history[k0][k1].length, awards = ""; i < j; i++) {
          awards += '<td class="' + history[k0][k1][i] + '"></td>';
        }
        day_members++;
        day_awards += j;
        total_awards += j;
        htmlStr += '<div class="recent_achievement_row">' + '<div class="recent_achievement_info"><a href="/' + k1 + '?view_awards=true">' + (names[k1.slice(1)] ? names[k1.slice(1)] : "Guest") + '</a> achieved <a href="#" onclick="fmd_awardsToggler.toggle(this.parentNode.nextSibling); return false;">' + j + " award" + (j == 1 ? "" : "s") + "</a></div>" + '<table class="fa fmd_awards recent_achievement_awards" style="display:none;"><tbody><tr>' + awards + "</tr></tbody></table>" + "</div>";
      }
      if (o.summary) {
        htmlStr += '<div class="recent_achievement_summary"><strong>' + day_members + "</strong> member" + (day_members == 1 ? "" : "s") + " achieved <strong>" + day_awards + "</strong> award" + (day_awards == 1 ? "" : "s") + " on " + k0 + ".</div>";
      }
      htmlStr += "</div>";
    } else {
      htmlStr += '<div class="center"><a href="/h10-achievement-history" class="button1">View History</a></div>';
      break;
    }
  }
  container.innerHTML = (o.summary ? '<div id="total_awards_earned"><strong>' + total_awards + "</strong> awards have been earned over <strong>" + total_days + "</strong> days.</div>" : "") + htmlStr;
}
window.fmd_awardsToggler = {last:null, toggle:function(that) {
  if (fmd_awardsToggler.last == that) {
    that.style.display = "none";
    fmd_awardsToggler.last = null;
  } else {
    if (fmd_awardsToggler.last) {
      fmd_awardsToggler.last.style.display = "none";
    }
    that.style.display = "";
    fmd_awardsToggler.last = that;
  }
}};

if (/\/u\d+/.test(window.location.href)) {
  if (/view_awards=true/.test(window.location.search)) {
    document.title = "Awards - " + document.title.replace(/.*? - (.*)/, "$1");
  }
 
  $(function() {
    var tabs = document.getElementById("tabs");
    if (tabs) {
      var newTab = $("li:not(.activetab)", tabs)[0].cloneNode(true);
      newTab.firstChild.href = "/u" + window.location.href.replace(/.*?\/u(\d+).*/, "$1") + "?view_awards=true";
      newTab.firstChild.innerHTML = "<span>Awards</span>";
      tabs.getElementsByTagName("UL")[0].appendChild(newTab);
    }
    if (/view_awards=true/.test(window.location.search)) {
      document.getElementsByTagName("HEAD")[0].insertAdjacentHTML("beforeend", '<style type="text/css">#fmd_achievement_list { height:500px; overflow-y:auto; border:1px solid #CCC; }</style>');
      var main = document.getElementById("cp-main"), a = $("li", tabs), i = 0, j = a.length;
      main.innerHTML = '<div class="center">Fetching awards...</div>';
      $.get("/h1-achievement-list", function(d) {
        main.innerHTML = "";
        main.appendChild($("#fmd_achievements", d)[0]);
        $.getScript("/11746.js", function() {
          fmd_count_awards(window.location.href.replace(/.*?\/u(\d+).*/, "$1"), document.getElementById("fmd_achievements"), true);
        });
      });
      for (; i < j; i++) {
        if (/activetab/.test(a[i].className)) {
          a[i].className = "";
          a[i].firstChild.href = window.location.pathname;
        }
      }
      a[a.length - 1].className = "activetab";
      a[a.length - 1].firstChild.href = "#";
    }
  });
}

$(function() {
  var titles = {
      a_awardmaker:"Award Maker",
      a_membotm:"Member of the Month",
      a_member:"Registered",
      a_helloworld:"Hello world!",
      a_avatar:"Picture Perfect",
      a_signature:"John Hancock this please",
      a_website:"Site sweet site...",
      a_hobbyist:"Hobbyist",
      a_ptitle:"They call me...",
      a_affiliate:"Affiliate",
      a_beta:"Beta Tester",
      a_promoter:"Self promotion rules!",
      a_bugbuster:"Bug Buster",
      a_suggestion:"The Power of Suggestion",
      a_banhammer:"The Almighty Ban Hammer",
      a_thinker:"Thinking out loud",
      a_fmdbday:"Happy Birthday",
      a_collector1:"Award Collector",
      a_collector2:"Award Hunter",
      a_collector3:"Award Freak",
      a_collector4:"God of Awards",
      a_likeable:"Likeable",
      a_loveable:"Loveable",
      a_idol:"Idol",
      a_contributor:"Contributor",
      a_writer:"Born Writer",
      a_keywarrior:"Keyboard Warrior",
      a_pressstart:"Press Start",
      a_highscore:"High Score!",
      a_number1:"Number 1",
      a_year1:"1st Year",
      a_year2:"2nd Year",
      a_year3:"3rd Year",
      a_group1:"Welcome to the Club",
      a_group2:"The Inner Circle",
      a_group3:"Club Juggler",
      a_friend:"Friendly",
      a_friend2:"Friend Lord",
      a_friend3:"Friendzone Master",
      a_pm:"Between you and me...",
      a_pm2:"Privacy is Precious",
      a_pm3:"Keeper of Secrets",
      a_liker:"I like you",
      a_liker2:"I love you",
      a_liker3:"I idolize you",
      a_topic:"My First Topic",
      a_topic2:"Stay on Topic",
      a_topic3:"Topic Starter",
      a_tester:"Test Dummy",
      a_tester2:"QA Team Leader",
      a_tester3:"Mad Scientist",
      a_artist:"My First Piece",
      a_artist2:"Aspiring Artist",
      a_artist3:"Art is Love",
      a_teacher:"I'm your new Teacher",
      a_teacher2:"Today's lesson is...",
      a_teacher3:"Best Teacher Ever",
      a_month1:"Postman",
      a_month2:"Carrier Pigeon",
      a_month3:"Spam Bot"
   }, a = document.getElementsByTagName("TD"), i = 0, j = a.length, c;
   for (; i < j; i++) {
      c = a[i].className;
      if (c && /^a_.*?$/.test(c)) {
         a[i].title = titles[c] || c.slice(2);
      }
   }
});

Panou de administrare => MODULE => HTML & JAVASCRIPT =>
HTML => Administrare pagini HTML => Creare in mod avansat (HTML)

Titlu * : Achievement List
Doriti sa utilizati partea de sus si de jos a paginii forumului dvs.? Da
Continutul paginii *
Cod:
<div id="fmd_achievements">
<style type="text/css">#achievement_stats table, #fmd_achievement_list table { margin:10px auto; }
#achievement_stats { font-size:18px; }

#fmd_achievement_list .award {
  color:#FFF;
  font-size:36px;
  text-align:center;
  background:#69C;
  border-radius:100px;
  cursor:default;
  display:inline-block;
  position:relative;
  width:64px;
  height:64px;
  line-height:64px;
  margin:10px 10px 10px 1px;
  opacity:0.5;
  transition:500ms;
  -webkit-filter:grayscale(1);
          filter:grayscale(1);
}

#fmd_achievement_list .achieved {
  opacity:1;
  -webkit-filter:grayscale(0);
          filter:grayscale(0);
}

.award_title {
  font-size:18px;
  font-weight:bold;
}

.award_label {
  text-align:right;
  font-weight:bold;
}

.award_desc { font-size:12px; width:500px; }
.award_icon { text-align:right; }
.award_info { text-align:left; }

.user_award_info { text-align:center; font-size:18px; }
.user_award_info img { height:50px; width:50px; border-radius:50px; border:1px solid #CCC; background:#FFF; padding:3px; margin-right:10px; vertical-align:middle; }

.award_achievers {
  font-size:11px;
  font-style:italic;
  margin-top:5px;
}
.award_rarity { float:right; }

#achievement_progress {
  background:#CCC;
  height:10px;
  margin:3px 0;
}

#achievement_progress div {
  background:#69C;
  height:10px;
  transition:500ms;
}</style>
<script type="text/javascript">if (_userdata.session_logged_in) document.write('<div class="user_award_info">' + _userdata.avatar + '<a href="/u' + _userdata.user_id + '">' + _userdata.username + '</a>' + '</div>');</script>
<div id="achievement_stats"></div>
<div id="fmd_achievement_list"></div>
</div>
<script type="text/javascript">//<![CDATA[
  $.getScript('/11746.js', function() {
  fmd_count_awards(_userdata.user_id, document.getElementById('fmd_achievements'));
  });
//]]></script>


Panou de administrare => Utilizatori & Grupuri => Profiluri =>
Camp din profil => Campuri => Adauga

Tip : Zona de text
Nume : Awards
Afisare : Profil & Mesaje
Cine poate modifica valoarea continutului?: Moderatori

De modificat:
In codul JS:
Cod:
"#field_id1", "/h1-achievement-list", "/11746.js"

In codul HTML:
Cod:
"/11746.js"


Inactiv in perioada [31.03.2018 - 20.04.2018]
Pentru probleme contactati un Administrator sau un moderator.
Pentru probleme generale PM @Teodor
avatar
Isaac
Administrator
Administrator

Mesaje : 1346
Varsta : 23
Localizare : France, Aisne
Data înscrierii : 10/08/2015
Multumiri : 189
Niciun avertisment

Vezi profilul utilizatorului https://goo.gl/FNpP4P

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Emma90 la data de Mar 2 Ian - 18:00

Apollo tie iti merge?
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Isaac la data de Mar 2 Ian - 19:15

Buna seara,
Nu am avut timp sa testez acest cod, insa ar trebui sa functioneze, e cel pe care acel forum il foloseste.


Inactiv in perioada [31.03.2018 - 20.04.2018]
Pentru probleme contactati un Administrator sau un moderator.
Pentru probleme generale PM @Teodor
avatar
Isaac
Administrator
Administrator

Mesaje : 1346
Varsta : 23
Localizare : France, Aisne
Data înscrierii : 10/08/2015
Multumiri : 189
Niciun avertisment

Vezi profilul utilizatorului https://goo.gl/FNpP4P

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Emma90 la data de Joi 11 Ian - 0:33

salut, ori nu merge, ori nu stiu eu sa il folosesc
avatar
Emma90
Membru Forumgratuit

Mesaje : 70
Varsta : 27
Data înscrierii : 04/05/2017
Multumiri : 0
Niciun avertisment

Vezi profilul utilizatorului http://svdp.yes-da.com/

Sus In jos

In cos Re: Award Sistem

Mesaj Scris de Zachary la data de Mar 23 Ian - 1:03

Avand in vedere ca in ultimele 2 saptamani autorul nu a mai aratat interes pentru acesta problema, topicul va fi inchis si trimis in cos. Daca problema nu a fost rezolvata, va invitam sa deschideti un nou topic, in sectiunea corespunzatoare si avind un titlu explicit.

=> Topic trimis in cosul de gunoi
avatar
Zachary
Membru activ

Mesaje : 2412
Localizare : România
Data înscrierii : 08/05/2013
Multumiri : 194
Niciun avertisment

Vezi profilul utilizatorului http://www.forumgratuit.ro

Sus In jos

Pagina 3 din 3 Înapoi  1, 2, 3

Vezi subiectul anterior Vezi subiectul urmator Sus


Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum