Bine a-ti venit pe fraNNNta-Design.
Vezi ultimul index creat de noi <a href="https://frannnta-design.hitforum.ro/t1994-cs-gold-design-remake">Cs Gold Design remake</a>


Bine a-ti venit pe fraNNNta-Design.
Vezi ultimul index creat de noi <a href="https://frannnta-design.hitforum.ro/t1994-cs-gold-design-remake">Cs Gold Design remake</a>

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

Conectare

descriptionStil IPB pentru numarul de mesaje EmptyStil IPB pentru numarul de mesaje

more_horiz
Salutare, de curand am revenit in domeniu, si vreau sa va prezint ceva nou.
Sper sa va placa.

Pasul 1:
Panou de administrare > Module > HTML & JAVASCRIPT > Gestiunea codurilor JavaScript
Cod: JS
Cod:
/*
@copyright: Copyright (c) Staark, all right reserved.
@author: Staark (C. Ionut)
@date: 28 Aprilie 2015
@code: Edit tabs of profile on post only.
*/

$(document).ready(function() {
   var post = $('.post .postprofile dl dd'), // Modificati in functie de versiune
   i,
   msg = ["Mesaje:"], // Schimbati daca voi aveti modificat.
   like = ["Like-uri:"], // Schimati in functie de textul pus de voi
   pint = ["Puncte:"]; // Credite, sau ori ce alt text aveti voi.

   for (i = 0; i < post.length; i++)
   {
      // Edit rows of profiles
      $(post[i]).html($(post[i]).html().replace(/<span class="label/g,'<span class="rows5"><span class="label-attr'));
      $(post[i]).html($(post[i]).html().replace(/<br/g,'</span><br'));
      
      // Create a new options of posts numbers
      var val = $('.rows5:contains("'+ msg +'")', post[i]).text(),
      cnt = val.match(/\d+/i);
      $('.rows5:contains("'+ msg +'")', post[i]).html('<b>'+ cnt +'</b> posts');
      
      // Create a new options of likes numbers
      var val = $('.rows5:contains("'+ like +'")', post[i]).text(),
      cnt = val.match(/\d+/i);
      $('.rows5:contains("'+ like +'")', post[i]).html('<b>'+ cnt +'</b> like\'s');
      
      // Create a new options of point\'s numbers
      var val = $('.rows5:contains("'+ pint +'")', post[i]).text(),
      cnt = val.match(/\d+/i);
      $('.rows5:contains("'+ pint +'")', post[i]).html('<b>'+ cnt +'</b> points');
   }
});


Preview: (phpBB3 Default)
Stil IPB pentru numarul de mesaje XOmtFNh

#OldSchoolCoding

Ultima editare efectuata de catre Vip3R. in Mier Mai 20, 2015 8:50 am, editata de 1 ori

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
Un tutorial destul de bun,sper sa apara pentru toate versiunile :)

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
e foarte tare bravo ma bucur ca ai revenit la noi :)

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
P.S: @Dana. In tot deauna voi reveni de unde am plecat ;)
P.S: @mr.franta am testat doar pe phpbb3, era un cod asa de revenire, nu prea am mai avut agilitatea din trecut

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
Am inteles bosse ,acum vad ca merge,este implementat pe forum de tine :)

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
Super bv

descriptionStil IPB pentru numarul de mesaje EmptyRe: Stil IPB pentru numarul de mesaje

more_horiz
privacy_tip Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
power_settings_newConectați-vă pentru a răspunde