ติดต่อลงโฆษณา racingweb@gmail.com

ผู้เขียน หัวข้อ: "แถบ Level" ทำอย่างไรครับ  (อ่าน 7274 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ BaLLaB

  • New Member
  • *
  • กระทู้: 27
    • ดูรายละเอียด
"แถบ Level" ทำอย่างไรครับ
« เมื่อ: 20/06/07, 17:56:24 »


แบบ ที่มี Level อะครับ ทำยังไง แล้วมันคืออะไร
แล้วใช้งานยังไงครับ

แล้ว สงสัยอีกเรื่องครับ

Garma นี่ คืออะไรครับ แล้ววิธีใช้ใช้อย่างไร
แล้ว ถ้าโดย + หรือ - แล้วจะเป็นอะไรครับ

ขอบคุณครับ

ออฟไลน์ USIAM

  • New Member
  • *
  • กระทู้: 4
    • ดูรายละเอียด
    • my new forums
Re: "แถบ Level" ทำอย่างไรครับ
« ตอบ #1 เมื่อ: 16/03/08, 17:38:57 »
นั่นสิครับ รอคำตอบอยู่เหมือนกันน่ะครับ
คือผมเปิดGarma แล้ว แต่ไม่เห็นมีแถบ level ขึ้นมาเลยน่ะครับ  ???

ออฟไลน์ 2t

  • New Member
  • *
  • กระทู้: 3
    • ดูรายละเอียด
Re: "แถบ Level" ทำอย่างไรครับ
« ตอบ #2 เมื่อ: 16/03/08, 18:27:27 »
1. เปิดไฟล์ Sources/Load.php

2. หลังบรรทัดแรก ("<?php") ให้เพิ่มโค้ดนี้ลงไปครับ

///////////////
// พลังงานความร้อนแฝงกลางใจ SMF //
///////////////

$rpgSettings = array();
$rpgSettings['init'] = 5;
$rpgSettings['incre'] = 3;
function calRpg($p) {
   global $rpgSettings;
   $i = 0; $j = $rpgSettings['init']; $l = 0;
   while ($i < $p) {
      $l++;
      $i += $j;
      $j += $rpgSettings['incre'];
   }
   $fn = $i;
   $cbase = ($i - ($j - $rpgSettings['incre']));
   if ($l < 1) $l = 1;
   $pc = (($p - $cbase) / ($fn - $cbase)) * 100;
   return array(
      'level' => $l,
      'cbase' => $cbase,
      'nbase' => $fn,
      'perce' => $pc
   );
}

3. เปิดไฟล์ Themes/default/Display.template.php
และแก้ไข ไฟล์ ใน ธีมปัจจุบัน ด้วย

4. หาบรรทัดที่มีข้อความนี้ครับ

         // Show avatars, images, etc.?

5. เพิ่มโค้ดนี้ ก่อนหน้าบรรทัดที่ให้หาครับ

         $cp = $message['member']['posts'];
         $cr = calRpg($cp);
         echo 'Level ' . $cr['level'] . ' : Exp ' . round($cr['perce']) . '%<div style="width:92%;border: 1px solid #999; background: #fff" align="left">
                           <div style="width:', round($cr['perce']), '%;background:#ccc;height:8px;"></div></div>';

   $membID = $message['member']['id'];
   $lastMsg = mysql_fetch_array(mysql_query($sql = "SELECT max(posterTime) FROM {$db_prefix}messages WHERE ID_MEMBER = {$membID}"));
   $hp = round(100 / (1 + ((time() - $lastMsg[0]) / 100000)), 1);
   echo '
                        HP: ' . $hp . '%<div style="width:92%;border: 1px solid #999; background: #fff" align="left">
                           <div style="width:', round($hp), '%;background:#ccc;height:8px;"></div></div>';

         echo '
';


ในไฟล์ Display.template.php ตรง

function template_main()


ต่อจาก { ให้ใส่ว่า
global $db_prefix;ครับ

2. หลังบรรทัดแรก ("<?php") ให้เพิ่มโค้ดนี้ลงไปครับ

///////////////
// พลังงานความร้อนแฝงกลางใจ SMF //
///////////////

$rpgSettings = array();
$rpgSettings['init'] = 5;
$rpgSettings['incre'] = 3;
function calRpg($p) {
   global $rpgSettings;
   $i = 0; $j = $rpgSettings['init']; $l = 0;
   while ($i < $p) {
      $l++;
      $i += $j;
      $j += $rpgSettings['incre'];
   }
   $fn = $i;
   $cbase = ($i - ($j - $rpgSettings['incre']));
   if ($l < 1) $l = 1;
   $pc = (($p - $cbase) / ($fn - $cbase)) * 100;
   return array(
      'level' => $l,
      'cbase' => $cbase,
      'nbase' => $fn,
      'perce' => $pc
   );
}

ขออนุญาติเพิ่มเติมและขุดนะครับ
ให้ใส่บรรทัดนี้ลงไปหลังบรรทัดนี้ครับ

โค๊ด:
$pc = (($p - $cbase) / ($fn - $cbase)) * 100;

ใส่ว่า

โค๊ด:
if ($pc >= 100) { $pc=0; $l++; }

จะเปลี่ยนสีของ Level กับ Hp
ดูดีๆ นะ มีบอก
$cp = $message['member']['posts'];
         $cr = calRpg($cp);
         echo '
                        Level ' . $cr['level'] . ' : Exp ' . round($cr['perce']) . '%<div style="width:92%;border: 1px solid #999; padding: 1px; background: #fff" align="left">
                           <div style="width:', round($cr['perce']), '%;overflow: hidden; height: 12px; border: 1px solid #2a1; background: #0a0 url(http://รุปแถบพลังงาน) center right;"></div></div>';

   $membID = $message['member']['id'];
   $lastMsg = mysql_fetch_array(mysql_query($sql = "SELECT max(posterTime) FROM {$db_prefix}messages WHERE ID_MEMBER = {$membID}"));
   $hp = round(100 / (1 + ((time() - $lastMsg[0]) / 100000)), 1);
   echo '
                        HP: ' . $hp . '%<div style="width:92%;border: 1px solid #999; padding: 1px; background: #fff" align="left">
                           <div style="width:', round($hp), '%;overflow: hidden; height: 12px; border: 1px solid #912; background: #901 url(http://รุปแถบพลังงาน) center right;"></div></div>';

         echo '
';

วีธีทำก็เหมือนขั้นตอนทั้งหมดตั้งแต่ตอนแรกเลยครับ ดูที่ ข้อ 5 นะครับ แทนที่ข้อ 5 เลย



เครดิตในเว็บ zone-it นะครับ ตอนนี้ผมก็ใช้อยู่นะครับ โดยมีไฟล์สองตัวเป็นไฟล์ต้นฉบับ (ตัวเปล่าๆ ไม่มีโหมดไรเลย) อยากได้ เมล์มา i2indy@hotmail.com
หรือลองดูได้ในเว็บนี http://i2indy.myokhost.com 

ออฟไลน์ USIAM

  • New Member
  • *
  • กระทู้: 4
    • ดูรายละเอียด
    • my new forums
Re: "แถบ Level" ทำอย่างไรครับ
« ตอบ #3 เมื่อ: 16/03/08, 19:53:11 »
ขอบคุณมากครับ

เดี๋ยวขอลองกลับไปทำดูก่อนนะครับ  ;D

ออฟไลน์ pee-ae110

  • New Member
  • *
  • กระทู้: 19
    • ดูรายละเอียด
Re: "แถบ Level" ทำอย่างไรครับ
« ตอบ #4 เมื่อ: 17/03/08, 15:54:11 »
ลองไปทำดูคับ ;D

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 9,051
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Updated RTP ASIAN2BET Site
« ตอบ #5 เมื่อ: 30/08/24, 02:52:39 »
For the person inquiring about situs agen judi slot online, bandar online slot, website slot online, slot jackpot online, judi slot sgp, bonus judi, agen judi slot malaysia, link alternatif slot online, slot malaysia online, slot game link,  I highly suggest this use this link on ASIAN2BET forum or apa itu judi slot online, slot spade, web judi online, judi slot indonesia, agen slot88 login, judi slot itu apa, bandar casino online, play slot88 login, asia slot game, provider slot online, alongside all this look at this for RTP ASIAN2BET details and don't forget slot slot 88, sistem game slot, judi slot88 online, sg slot online, judi slot 88, game judi jackpot, provider slot online, cari situs judi slot online, jp slot888, web judi togel, and don't forget this this site about RTP ASIAN2BET link which is also great. Also, have a look at this the original source about RTP ASIAN2BET url on top of casino ion, agen sport slot, website game slot online, 4d judi, agen slot pg soft, slot online slot, bandar judi indo slot online, situs slot yg ada rtp, judi online casino, nama situs judi slot, not to mention this new RTP ASIAN2BET info with agen slot asia, cari situs judi slot online, judi slot game, toto play online, sini slot online, agen judi terpercaya, judi online 4d, bonus judi, game slot game, agen 01 slot,  for good measure. Check more @ Recommended RTP ASIAN2BET Tips 7875fa1

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 9,051
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Updated UGZEUS Blog
« ตอบ #6 เมื่อ: 30/08/24, 23:58:49 »
To the person asking about slot online terpercaya di indonesia, gacor situs slot, slot yang, nama nama situs, daftar slot indonesia, max win bet 200, situs gacor slot, cara mendapatkan maxwin slot, situs slot online terbaru, link slot games,  I highly suggest this homepage about UGZEUS blog or trik slot online, daftar situs slot resmi, cara menang main slot pg soft, slot adalah permainan, link slot online terpercaya, game slot game, situs slot togel terpercaya, game slot online paling mudah menang, situs gacor resmi, slot gacor situs, on top of this sell on UG ZEUS link not to mention permainan slot online adalah, slot gacor ini, link slot online gacor, maxwin gacor slot, permainan slot gampang menang, situs gacor slot online, game slot yang gampang menang, situs yang gacor, permainan pg soft, link game terbaik, alongside all this additional reading for UG ZEUS tips which is also great. Also, have a look at this great ugzeus slot login url not to mention slot gacor pragmatic play slot online, slot resmi indonesia, situs game slot terbaik, slot main, link terbaik slot, daftar main slot online, situs resmi slot online, juga akan, cara main slot online, arcade slot, alongside all this read this post here on UG ZEUS link with situs terlengkap, game togel, situs slot game, link main slot gacor, situs gampang maxwin, main slot menang, daftar slot terpercaya, cara dapat uang dari game slot, link terpercaya slot, situs online togel,  for good measure. Check more @ Recommended 7RAJATOGEL Tips b7875fa

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 9,051
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Updated TAJIR4D Blog
« ตอบ #7 เมื่อ: 4/09/24, 00:49:01 »
To the lady talking about 100 4d, t0gel online, main toto, online bandar, 4d toto 4d, toto judi, agen play, situs togel idn, cara main 4d singapore, master wap,  I highly recommend this top rated TAJIR4D site or toto 4ds, online bandar, situs bandar judi slot online, bandar togel online, slot4d terbaru, bandar online, cara toto, bandar judi toto, toto judi slot, bandar sgp online, not to mention this updated TAJIR4D tips on top of cara toto, on 4d toto, situs togel idn, sdy slot4d, dewatogel slot online login, www 4d net m, master wap, situs bandar judi, bandar togel terbesar dan terpercaya di indonesia, bandar toto online, and don't forget this more info for TAJIR4D info which is also great. Also, have a look at this high rated Tajir4D Login blog not to mention bandar togel terbesar dan terpercaya di indonesia, toto play online, 4d 4d toto, online toto 4d, bandar online deposit pulsa, bandar toto online, slot 4d singapore, whatsapp 4d, toto 4d, 4d toto 4d, not to mention this my response about TAJIR4D url with toto 4e, judi online 4d, deposit dewatogel, toto judi, 4d toto online, dewatogel singapore, bandar online, whatsapp 4d, bandar slot4d, cara menang toto 4d,  for good measure. Check more @ High Rated CUANSLOT Blog ee0d864

ออฟไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 9,051
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Cool Daily Sport Predictions Blog
« ตอบ #8 เมื่อ: 6/09/24, 00:42:53 »
To the man talking about best tennis predictions platform, cricket picks maker, tennis h2h prediction news today, best crypto sports book, espn / draftking nfl promo codes, nfl tips computer picks, winning basketball nba picks today, tennis predictions this weekend, daily predictions news for cricket, table tennis predictions this weekend,  I highly recommend this top article for new sport prediction tips or expert h2h stats predictions against the spread, nfl & nba picks monday night, american football nfl predictions today & tomorrow, best h2h stats picks & parlays, nfl & nba predictions maker, up to date american football nfl news, daily predictions for darts, ice hockey nhl picks each week, best tennis predictions platform, daily predictions news for basketball nba, not to mention this our website about updated sport prediction advice and don't forget basketball nba picks each week, ice hockey nhl picks tomorrow, h2h stats predictions today, table tennis predictions today straight up, basketball nba predictions, daily predictions news for nfl & nba, tenis noticias ahora, best nfl tips predictions today, best baseball mlb prediction model, profitable tennis h2h prediction strategy, as well as this read review about awesome sport prediction details which is also great. Also, have a look at this best top sport prediction site alongside all daily predictions for mls, mls predictions of the day, best table tennis picks & parlays, expert baseball mlb predictions, best cricket prediction strategy, tennis picks tomorrow, best tennis h2h predictions today, daily picks for h2h stats, winning h2h stats predictions, daily picks for ice hockey nhl, as well as this resources about excellent sport prediction blog with tennis h2h picks today, computadora tenis pronosticos strategy, ice hockey nhl predictions maker, h2h stats predictions today straight up, tennis picks, expert h2h stats predictions against the spread, nfl & nba picks today, ice hockey nhl predictions tomorrow, daily predictions for nfl bets, mls picks maker,  for good measure. Check more @ High Rated Daily Sport Predictions Tips f8952_e