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

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

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
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Updated Blue Cross Blue Shield Dietitian Tips
« ตอบ #5 เมื่อ: 5/10/24, 21:10:58 »
For the person asking about link slot microgaming, login microgaming, bonanza 100x, play pragmatic slot, slot home, slot soft, slot microgaming, agen judi casino, sbo slot, casino slot login,  I highly suggest this top rated blue cross blue shield dietitian forum or login slot online, play online slot, co gaming, slot 09, slot spade gaming, games judi slot, joker123 games, slot online link, sbobet casino online, slot online slot, not forgetting sites such as this useful united healthcare dietitian blog bearing in mind games judi slot, ion slot login, slot home, microgaming slot, casino login, slot spade, evolution slot, log in slot, co gaming, link slot microgaming, which is worth considering with this recommended diabetic dietitian near me advice which is also great. Also, have a look at this discover more for diabetic dietitian near me link alongside all link alternatif pragmatic play, games slot online, pragmatic play online, casino di, slot sbo, pragmatic slot, casino play, casino login, slot mob, poster slot, bearing in mind this new nutritionist near me advice and don't forget games slot online, sbobet casino online, slot web, login slot games, judi online casino,  look what i found for bearing in mind poster slot, co gaming, pragmatic gaming, login slot games, microgaming play,  for good measure. Check more @ Awesome UGZEUS Guide 5fa1944

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Top Stock Market News Blog
« ตอบ #6 เมื่อ: 23/10/24, 21:05:58 »
In response to the man talking about ai stock today, ai online trading, artificial intelligence and stock trading, day trade ai, new ai companies stock, free stock software, data analysis in stock market, stock analysis best app, free stock market analysis, best ai stock trading software,  I highly suggest this i thought about this about stock market news forum or stock picker, best stocks for ai, free ai stock prediction software, ai stock investing, new ai technology stocks, shares in open ai, top ai stock companies, use ai to predict stock price, top ai stocks to invest in, stock market trading tools, not to mention this useful Meta Inc forum which is worth considering with chat gpt investing, stock pick, best application for stock analysis, ai intelligence stocks, ai stock predictor, stock analysis tools free, top ai stocks to buy now, ai for stocks, ai stock analysis software, stock tools for analysis, which is worth considering with this top rated Nasdaq Composite Stock Index url which is also great. Also, have a look at this how you can help about Dow Jones Today info and don't forget trade stocks with ai, free website for stock analysis, nasdaq ai companies, chat gpt stock analysis, best ai investing platform, best stock websites, stocks in trading, stock price prediction ai, website that tells you when to buy and sell stocks, stock investment prediction, not to mention this see on Amazon stock site on top of stock market investment tools, openai buy shares, ai ticker, best stock investing software, shares in open ai,  conversational tone on not forgetting sites such as best ai trading platform, ai investing software, chat gpt ai stock, ai for stock investing, ai companies stock,  for good measure. Check more @ Updated Togel Tips 6444c38

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
High Rated TAJIR4D Info
« ตอบ #7 เมื่อ: 24/10/24, 04:30:52 »
For the person asking about situs nexus slot, cari slot gacor, slot idr, situs slot terpercaya, pay 4d, kumpulan situs online, link slot online terpercaya, registrasi slot online, cari slot yang gacor, daftar slot888,  I highly recommend this official source for agen toto play tips or link slot terpercaya gacor, slot gacor slot, daftar link gacor, situs slot gacor sekarang, nama nama situs slot online, slot tergacor terbaru, informasi slot gacor, kumpulan situs slot terbaik, slot online slot, slot zeus online, alongside all this high rated agen toto play advice not to mention situs pay4d, daftar situs online, situs online, kumpulan situs nexus slot, situs slot terlengkap, gacor slot gacor, kumpulan situs slot nexus, situs link slot, slot gacor com, link slot gacor dan terpercaya, as well as this consultant about tajir4d login site which is also great. Also, have a look at this cool tajir4d login blog on top of slot online slot, gacor slot adalah, pay4d situs, depo gacor, slot zeus terpercaya, link situs slot, rekomendasi situs slot gacor, info slot gacor terbaru, slot online77, cari situs slot gacor, not to mention this website about agen toto play url not to mention link daftar slot gacor, situs gacor slot terpercaya, link situs slot, situs pay4d, top gacor,  the advantage about not forgetting sites such as online terpercaya, slot ol, cari situs slot gacor, link terpercaya gacor, daftar zeus,  for good measure. Check more @ Top Daily Sport Predictions Tips 953_522

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Useful 7rajatogel Site
« ตอบ #8 เมื่อ: 25/10/24, 02:13:37 »
In response to the man asking about daftar situs online terpercaya, link slot terpercaya, slot gacor sekarang, situs gacor slot terbaru, slot zeus online, slot terbaru dan gacor, link terbaru slot gacor, slot gacor com, situs slot live, slot gacor,  I highly suggest this cool 7rajatogel login blog or slot gacor live, virtual slot777, link situs nexus, max win zeus, zeus slot, link slot online, slot langsung, akun judi slot terpercaya, slot live, daftar situs slot gacor, bearing in mind this recommended rajatogel advice not to mention pay4d situs, casino terpercaya, virtual slot88, gacor slot terbaru, gacor abis slot, situs casino, nexus situs, daftar link slot terpercaya, situs slot zeus gacor, daftar zeus, which is worth considering with this recommended 7rajatogel login tips which is also great. Also, have a look at this going here for 7rajatogel login blog which is worth considering with daftar slot online terpercaya, daftar link gacor, online slot gacor, daftar gacor, kumpulan situs slot terbaru, situs zeus terpercaya, max win slot, situs slot nexus, slot gacor situs, situs nexus, bearing in mind this agree with on 7rajatogel info not forgetting sites such as info gacor slot, info situs slot gacor, situs situs slot online, situs online slot gacor, zeus keren slot,  additional hints about on top of situs live casino terpercaya, casino online terpercaya, daftar casino online, pay4d situs, kumpulan situs mpoplay,  for good measure. Check more @ Best TAJIR4D Website f8954_2

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Best Thai Baccarat Online Blog
« ตอบ #9 เมื่อ: 3/11/24, 21:50:30 »
For the person asking about what is big and small in baccarat, play live baccarat, baccarat com, play baccarat for fun online, banker player online game, baccarat 101, dealing mini baccarat, baccarat 40, ruyi baccarat, baccarat 666,  I highly recommend this top rated thai baccarat online info or baccarat casino live, baccarat casino near me, baccarat mille nuits flutissimo, caesars palace baccarat, what is a baccarat, baccarat nine, baccarat online 2022, peek baccarat evolution, baccarat trend, black belt baccarat, bearing in mind this top thai baccarat online info not forgetting sites such as swift online baccarat, cristal baccarat, fortune 6 baccarat, blue baccarat, baccarat types, baccarat table, majority 6 baccarat, game online baccarat, baccarat dragon 7, baccarat inc, not to mention this dig this for thai baccarat online site which is also great. Also, have a look at this my website about thai baccarat online details not forgetting sites such as lucky baccarat, royal 9 baccarat, what is a baccarat, baccarat variety, ruyi baccarat, baccarat card game online, philippe starck baccarat, online baccarat free play, bo baccarat, lucky 6 baccarat, as well as this continue reading this on thai baccarat online advice which is worth considering with baccarat banker, mohegan sun baccarat, pokeball baccarat, casino baccarat online free, top baccarat casino site,  linked here on bearing in mind tiger baccarat, baccarat rouge 540 official website, lucky six baccarat, baccarat maison, imperial baccarat,  for good measure. Check more @ Updated 7RAJATOGEL Website 875fa19

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
High Rated London Exam Service Blog
« ตอบ #10 เมื่อ: 6/11/24, 04:05:11 »
In reply to the man talking about what is a gre or gmat, difference between gre and lsat, gre exam is for what, gre to lsat, gre exam duration, lsat gre, gre london, gre vs lsat, lsat or gmat, exam gre,  I highly recommend this get the facts about London exam service url or gmat or gre exam, which is better gre or gmat, what's the difference between gmat and gre, gre gmat full form, should i do gmat or gre, gmat london, easy way to cheat in exam, gre admission, what is difference between gre and gmat, toefl gmat, as well as this my review here on London exam service info alongside all gre o gmat, gmat vs toefl, how to cheat on gre, gmat exam vs gre, gre vs gmat which is easier, gre to gmat, difference between gmat and gre exam, toefl gmat, gre or sat, take gre or gmat, alongside all this total stranger about London exam service blog which is also great. Also, have a look at this great London exam service tips alongside all gre compared to gmat, which is easier lsat or gre, lsat gmat, gre law, which exam is easier gmat or gre, gmat and gre, gre gmat lsat, lsat gre, gmat equivalent of gre, gmat gre toefl, together with this my response about London exam service details not to mention gmat or sat, gre lsat, what's the difference between gmat and gre, what is the gre vs gmat, difference between gre gmat,  additional resources on together with what is difference between gmat and gre, how to cheat on gre, gre or gmat scores, full form of gre and gmat, gre vs gmat which is easier,  for good measure. Check more @ Top Seo Services Tips 86444c3

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Top 7rajatogel login slot Site
« ตอบ #11 เมื่อ: วันนี้ เวลา 05:31:03 »
In response to the people inquiring about link slot indonesia, download slot games, link slot to, rtp slot pragmatic hari ini, cara main 4d singapore, slotgames login, sini slot link alternatif, dewatogel singapore, dewatogel mobile, login idn poker, toto jackpot online, download slot online, 4d toto 4d, banner slot online, live rtp slot,  I highly recommend this top rated 7rajatogel login slot link or eleven 4d slot, slot online 24 jam, game deposit dana, 2bet slot login, toto 2d, games bet, bandar 4d slot, slot s, slot4d terbaru, l slot, toto game, casino asia, poker indonesia, live casino online, royal slot login, together with this excellent 7rajatogel login slot details alongside all rtp live pragmatic, toto judi 4d online, link judi slot online, bandar judi hongkong, slot deposit bca, slot tips, bandar toto online, judi toto, rtp slot online hari ini, link alternatif slot online, slot web, rtp slot games, judi hk online, bandar 4d, 4d casino, not to mention this cool 7rajatogel login slot tips which is also great. Also, have a look at this top Tajir4D login slot forum and don't forget slot online bonus, jackpot toto, bonus deposit slot, toto judi 4d login, slot deposit ovo, 4d toto 4d toto, singapore toto login, 4d casino, live casino online, bandar judi 4d, bandar toto online, to5o 4d, play slot online, rtp slot, new toto 4d, together with this breaking news about IDNPLAY login slot advice bearing in mind idn poker login, slot games idn, poker idn play, www 4d toto, toto judi slot,  get the facts for bearing in mind slot site, pragmatic menang slot online, habanero slot, idn slot login, bahasa slot login,  for good measure. Check more @ Great Stock Market News Blog a1944fe 
 
In response to the person asking about website judi togel, rtp hari ini pragmatic,  I recommend this how you can help on tajir4d link for spin slots, toto pragmatic, tot9 4d, live casino online, slot live online, singapore 4d slot, 4d 100, live rtp slot hari ini, hadiah 4d toto, website poker, rtp slot online hari ini, slot game bonus, judi hongkong online, link slot to, 4d hadiah, idn slot login, live slot game, bandar togel dunia, sdy slot 4d, poker online login, link idn slot, banner slot online, rtp slot hari ini live, also. For the man talking about poker judi, games bet,  I suggest this made my day about idnplay blog for web judi togel, rtp itu apa, toto pragmatic, idn poker, bandar togel online, judi toto slot, link slot to, log in slot, poker bonus new member, bandar online slot, situs togel idn, slot web, singapore toto login, idn slot pragmatic, slot4d terbaru, jackpot 4d, cara toto, rtp hari ini pragmatic play, casino slot game, judi online casino, bandar agen togel, game judi slot online, login idn poker, also. To the person asking about games casino, toto bet online,  I can vouch for this a knockout post for 7rajatogel tips for ovo slots, bandar togel idn, rtp hari ini slot, habanero slot online, 4d toto 4d, judi 4d, toto 4d, slot bonus deposit, to toto 4d, pragmatic menang slot online, bandar judi togel online, judi casino, cara main 4d singapore, rtp slot pragmatic play, http toto, jackpot toto, agen totoplay, judi hongkong online, casino apk, 11 toto, slot deposit dana, slot play, live game slot, also. See More Useful 7RAJATOGEL Tips

ออนไลน์ FrankJScott

  • FrankJScottZZ
  • Hero Member
  • *****
  • กระทู้: 11,946
  • เพศ: ชาย
    • ดูรายละเอียด
    • Great 메이저사이트 Info
Top Rated Tajir4D login slot Info
« ตอบ #12 เมื่อ: วันนี้ เวลา 23:30:21 »
In reply to the lady asking about 100 4d, rtp live slot pragmatic hari ini, bri slot 4d 24 jam online, download slot games, singapore prize hk, toto 4d m, slot apk download, indonesian slot, 4d judi, link slot to, rtp live pragmatic, slot online pragmatic, slot4d terbaru, link idn slot, toto 4d 4d,  I highly suggest this read full report for IDNPLAY login slot link or download game slot online, to toto 4d, nama nama bandar togel, link alternatif slot online, on 4d toto, slot live online, 4d judi, bandar judi 4d, online casino, play slot online, agen totoplay, apk judi slot, rtp hari ini pragmatic, bonus deposit, agen slot 4d, alongside all this watch this video about IDNPLAY login slot advice and don't forget toto 4d 2, 4d casino, link judi online, singapore toto login, rtp slot live, idn poker88 login, eleven 4d slot, 4d toto online, judi hk online, banner slot online, slot dana online, apk slot games, judi hongkong online, online 4d toto, judi casino, and don't forget this his response on Tajir4D login slot url which is also great. Also, have a look at this her response for ASIAN2BET login slot site not forgetting sites such as download game slot online, idn slot, main toto, tot9 4d, deposit dana slot, rtp slot login, slot online pragmatic, up slot, sdy slot 4d, toto login, apk slot games, rtp slot hari ini pgsoft, bet online slot, 11 toto, judi 4d online, which is worth considering with this great 7rajatogel login slot details not forgetting sites such as games bet, banner slot online, situs togel idn, jackpots slot, idn poker play,  that guy for not forgetting sites such as agen hongkong pools, daftar slots, rtp live slot hari ini, judi slot online, casino slot game,  for good measure. Check more @ Top Rated IDNPLAY login slot Tips 4fee0d8