Grazie per ModernBB

2 partecipanti

Risolto Grazie per ModernBB

Messaggio Da McLaren Mercedes Gio 15 Giu 2017 - 17:27

http://prntscr.com/fk5168  

@Niko e @MattiaDes ECCOLAAA !!! Qualche giorno fa ci stavamo infognando per trovare una scritta del tipo "Grazie ecc.." Non so come.. io oggi sono entrato nel forum un utente mi ha ringraziato e mi è uscita: 

 Grazie per ModernBB Fa_sta10Grazie ! Questa risposta è una delle migliori ! ! Grazie per ModernBB Fa_sta10

ModernBB. 

Non so come ho fatto ora cerco nei JavaScript oppure hanno solamente aggiornato ? Very Happy


Ultima modifica di McLaren Mercedes il Ven 16 Giu 2017 - 16:02 - modificato 1 volta.
McLaren Mercedes
McLaren Mercedes
****

Sesso : Maschio
Età : 23
Messaggi : 309
Località : Roma - Venezia

http://thetamultigaming.italiaforum.net/
McLaren Mercedes è stato ringraziato dall'autore di questo topic.

Risolto Re: Grazie per ModernBB

Messaggio Da McLaren Mercedes Gio 15 Giu 2017 - 17:46

Capito quale codice è: JavaScript 

Codice:
$(function() {
  var message = function(child, parent) {
        var pseudo = $(child, parent).text(),
            icon = '<img src="http://i18.servimg.com/u/f18/18/21/60/73/fa_sta10.png" alt=""/>';
 
        return '<div id="fa_thanks_message">' + icon + ' Grazie ! Questa risposta è una delle migliori ! ' + pseudo + ' ! ' + icon + '</div>';
      },
   
      version = $('body[id="modernbb"]')[0] ? 4 : $('.bodylinewidth')[0] ? 0 : document.getElementById('wrap') ? 1 : $('.pun')[0] ? 2 : document.getElementById('ipbwrapper') ? 3 : 'badapple', // version check
      node = document.createElement(version ? 'DIV' : 'TR'),
      post = $(version ? 'div' : 'tr' + '.post'),
      j = post.length,
      i = 0;
 
  if (version == 'badapple') {
    if (window.console) console.error('This plugin is not optimized for your forum version. Please contact the support for further assistance.');
    return;
  }
 
  node.id = 'fa_thanks'; // id for style modifications
  if (!version) node.innerHTML = '<td colspan="2"></td>'; // phpbb2 must have a cell as the child node
 
  for (; i < j; i++) {
 
    if ((version ? post[i] : post[i].firstChild).style.backgroundColor) { // thanked posts have the backgroundColor style property
   
      post[i].className += ' thanked'; // mark the thanked post with a class
      (version ? node : node.firstChild).innerHTML = message(['.name', 'dl > dt > strong', '.username', '.popmenubutton'][version], post[i]); // thanks message
   
      switch (version) {
     
        case 0 : // phpbb2
          node.firstChild.style.backgroundColor = post[i].firstChild.style.backgroundColor;
          node.firstChild.className = post[i].firstChild.className;
          post[i].parentNode.insertBefore(node, post[i].nextSibling);
          break;
       
        case 1 : // phpbb3
          post[i].firstChild.insertBefore(node, post[i].firstChild.lastChild.previousSibling);
          break;
       
        case 2 : // punbb
          node.className = 'postfoot';
          node.style.margin = '0';
          post[i].appendChild(node);
          break;
       
        case 3 : // invision
          node.className = 'post-footer';
          node.style.backgroundColor = post[i].style.backgroundColor;
          post[i].appendChild(node);
          break;

case 4 : // ModernBB
          node.className = 'post-head';
          node.style.backgroundColor = post[i].style.backgroundColor;
          post[i].appendChild(node);
          break;
     
      }
   
      break; // break out of the for loop when the thanked post is found
    }
 
  }
});
Codice:
return '<div id="fa_thanks_message">' + icon + ' Grazie ! Questa risposta è una delle migliori ! ' + pseudo + ' ! ' + icon + '</div>';
      },


Cambiare " Grazie ! Questa risposta è una delle migliori !"
McLaren Mercedes
McLaren Mercedes
****

Sesso : Maschio
Età : 23
Messaggi : 309
Località : Roma - Venezia

http://thetamultigaming.italiaforum.net/
McLaren Mercedes è stato ringraziato dall'autore di questo topic.

Risolto Re: Grazie per ModernBB

Messaggio Da MattiaDes Ven 16 Giu 2017 - 15:42

Uh, perfetto Very Happy


Grazie per ModernBB Z_user10

Grazie per ModernBB 1300 Grazie per ModernBB 2203 Grazie per ModernBB 392
MattiaDes
MattiaDes
Amministratore
Amministratore

Sesso : Maschio
Età : 28
Messaggi : 5129
Località : Italy

http://www.habbolifeforum.com
MattiaDes è stato ringraziato dall'autore di questo topic.

Risolto Re: Grazie per ModernBB

Messaggio Da McLaren Mercedes Ven 16 Giu 2017 - 16:01

Grazie ForumAttivo Very Happy
McLaren Mercedes
McLaren Mercedes
****

Sesso : Maschio
Età : 23
Messaggi : 309
Località : Roma - Venezia

http://thetamultigaming.italiaforum.net/
McLaren Mercedes è stato ringraziato dall'autore di questo topic.

Visualizza l'argomento precedente Visualizza l'argomento successivo Torna in alto

- Argomenti simili

 
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.