SMF Thailand.

SMF Development => SMF Coding Discussion => ข้อความที่เริ่มโดย: SK117 ที่ 20/11/07, 17:53:57

หัวข้อ: @@ต้องให้เลขไอดีโชว์ข้างใต้ชื่อทำไงครับ@@
เริ่มหัวข้อโดย: SK117 ที่ 20/11/07, 17:53:57
ต้องทำยังไงครับให้เลขไอดีโชว์ที่ใต้ชื่อสมาชิกอ่ะครับ
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้าชื่อทำไงครับ@@
เริ่มหัวข้อโดย: Riryoku ที่ 20/11/07, 23:28:34
อธิบายให้ละเอียดกว่านี้ครับ เรื่องนี้ผมตอบคุณได้ แต่ผมไม่เข้าใจจั่วหัวกระทู้ของคุณครับ สงสัยว่าคุณจะพิมพ์อะไรผิดหรือเปล่า
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้าชื่อทำไงครับ@@
เริ่มหัวข้อโดย: w-h-i-t-e l-i-n-e ที่ 21/11/07, 01:57:37
คือแบบว่า เราต้องการ ให้เลขไอดีที่สมัครโชว์ครับ เลขตามที่สมัครสมาชิก ครับ
ดังตัวอย่ง

๛MH๛Pe๛
น้ำส้มคั้น


ระดับแอลกอฮอล์ 2
[ + ]
 ออฟไลน์

Posts : 42
id : 6630   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< มันจะโชว์ครับ

ไม่รู้ว่าต้องใช้ MOD หรือว่าต้องทำอย่างไรครับ
ช่วยหน่อยนะครับ
 
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้าชื่อทำไงครับ@@
เริ่มหัวข้อโดย: SK117 ที่ 21/11/07, 12:12:55
คือแบบว่า เราต้องการ ให้เลขไอดีที่สมัครโชว์ครับ เลขตามที่สมัครสมาชิก ครับ
ดังตัวอย่ง

๛MH๛Pe๛
น้ำส้มคั้น


ระดับแอลกอฮอล์ 2
[ + ]
 ออฟไลน์

Posts : 42
id : 6630   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< มันจะโชว์ครับ

ไม่รู้ว่าต้องใช้ MOD หรือว่าต้องทำอย่างไรครับ
ช่วยหน่อยนะครับ
 

ตามที่ว่ามาเลยครับอยากรู้มากขอบคุณครับ
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้างใต้ชื่อทำไงครับ@@
เริ่มหัวข้อโดย: SK117 ที่ 22/11/07, 10:17:54
สงสัยไม่มีใครรู้ ปัญหาเล็กแค่นี้ เราหามา3วันแล้วยังไม่ได้หรือว่ายากขนาดนั้นเลยเหรอหรือว่าเวปนี้เค้าเลิกเล่นกันแล้ว  ??? ???
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้างใต้ชื่อทำไงครับ@@
เริ่มหัวข้อโดย: giggock ที่ 22/11/07, 14:47:03
เป็นโค้ดแสดง id ตรงชื่อครับ ว่าสมัครเป็นคนที่เท่าไร

(http://img70.imageshack.us/img70/3838/zapsnap005zm8.jpg)


ไปที่
Themes/default/Display.template.php

หา
โค้ด: [เลือก]
', $txt[26], ': ', $message['member']['posts'], '<br />

วางต่อจากที่หา
โค้ด: [เลือก]
', $txt['member_number'], ': ', $message['member']['id'], '<br />


ไปที่
Themes/default/Profile.template.php


ค้นหา
โค้ด: [เลือก]
<td>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</td>

เอาไปวางต่อจากที่หา
โค้ด: [เลือก]
</tr><tr>
<td><b>', $txt['member_number'], ': </b></td>
<td>', $context['member']['id'], '</td>


สำหรับภาษาไทย
ไปที่
Themes/default/languages/Modifications.thai.php

ค้นหา
โค้ด: [เลือก]
// Version: 1.1; Modifications

เอาไปวางต่อจากที่หา
โค้ด: [เลือก]
$txt['member_number'] = 'สมาชิก ID';

สำหรับภาษาอังกฤษไปที่
Themes/default/languages/Modifications.english.php

ค้นหา
โค้ด: [เลือก]
// Version: 1.0 RC2; Modifications

เอาไปวางต่อจากที่หา
โค้ด: [เลือก]
$txt['member_number'] = 'Member ID';

ที่มา
โค้ด: [เลือก]
http://www.simplemachines.org/community/index.php?topic=11118.0



ต่อไปเป็นโค้ดแสดงรูปของสมาชิกที่ยังไม่ใส่รูป


ก่อนแก้ไข ให้สำรองไฟล์ที่จะแก้ไขไว้ก่อนนะครับกันผิดพลาด เพราะโค้ดที่นำมาฝากเป็นของเวอร์ชั่นเก่า

แต่ผมเอามาทดสอบแล้วใช่ได้ก็เลยนำมาฝาก กันนะครับ

โค้ดจะแบ่งเป็นสองส่วนนะครับ  บนหัวเว็บ  กับ  ในกระทู้

สำหรับ บางธีมไม่มีรูปตรงหัวเว็บก็ ใส่แค่อันเดียวพอครับ

ก่อนอืนสร้างรูป ชื่อ noavatar.gif  ไปไว้ใน โฟเดอร์ images ของธีมที่เราใช้



อันแรกเป็นโค้ดรูปส่วนหัวเว็บ

ธีมเว็บใครไม่มีก็ข้ามไป รูปในกระทู้เลยครับ

ไปที่
themedir/index.template.php


ค้นหา
โค้ด: [เลือก]
if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

เอาโค้ดด้านล่างไปแทนที่

โค้ด: [เลือก]
if (!empty($context['user']['avatar'])){
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';}

else{
                echo ' <td class="windowbg" valign="middle"><img src="', $settings['images_url'], '/noavatar.gif" alt="" /></td>';}




ส่วนนี้ เป็นรูปในกระทู้

ไปที่
$themedir/Display.template.php

หา
โค้ด: [เลือก]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

เอาโค้ดด้านล่างไปวางแทน

โค้ด: [เลือก]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image'])){
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
}
else{
                                 echo '           <div style="overflow: auto; width: 100%;"><img src="', $settings['images_url'], '/noavatar.gif" alt="" /></div><br />';}

ที่มา  ลองเข้าไปดูเพิ่มเติมครับ 
โค้ด: [เลือก]
http://www.simplemachines.org/community/index.php?topic=19500.0
 
หัวข้อ: Re: @@ต้องให้เลขไอดีโชว์ข้างใต้ชื่อทำไงครับ@@
เริ่มหัวข้อโดย: xuniz ที่ 8/03/25, 21:06:19
Econ (http://audiobookkeeper.ru/book/208)243.5 (http://cottagenet.ru/plan/336)PERF (http://eyesvision.ru)Bett (http://eyesvisions.com)Голи (http://factoringfee.ru/t/1133252)Vict (http://filmzones.ru/t/924674)Rene (http://gadwall.ru/t/898537)Лемк (http://gaffertape.ru/t/1101800)Even (http://gageboard.ru/t/1094329)Sidn (http://gagrule.ru/t/847561)клей (http://gallduct.ru/t/1162195)фило (http://galvanometric.ru/t/945548)Mark (http://gangforeman.ru/t/1069958)цвет (http://gangwayplatform.ru/t/1481158)текс (http://garbagechute.ru/t/1144130)Gold (http://gardeningleave.ru/t/1027737)Omeg (http://gascautery.ru/t/1144006)лече (http://gashbucket.ru/t/819605)К-01 (http://gasreturn.ru/t/1144148)Frit (http://gatedsweep.ru/t/835893)клей (http://gaugemodel.ru/t/1161591)Нена (http://gaussianfilter.ru/t/1208206)Monk (http://gearpitchdiameter.ru/t/931508)
Bioc (http://geartreating.ru/t/928350)More (http://generalizedanalysis.ru/t/920972)Милл (http://generalprovisions.ru/t/940617)Best (http://geophysicalprobe.ru/t/854117)Davi (http://geriatricnurse.ru/t/933074)John (http://getintoaflap.ru/t/900279)Char (http://getthebounce.ru/t/767670)Papa (http://habeascorpus.ru/t/1088123)Swee (http://habituate.ru/t/1090998)Койн (http://hackedbolt.ru/t/834664)Boro (http://hackworker.ru/t/1125149)Adam (http://hadronicannihilation.ru/t/1102210)Гарн (http://haemagglutinin.ru/t/1095658)иллю (http://hailsquall.ru/t/812926)Geor (http://hairysphere.ru/t/845599)Петр (http://halforderfringe.ru/t/811802)Соде (http://halfsiblings.ru/t/854503)Mich (http://hallofresidence.ru/t/811319)кори (http://haltstate.ru/t/862594)1571 (http://handcoding.ru/t/1027416)Tesc (http://handportedhead.ru/t/1044406)мест (http://handradar.ru/t/809789)XVII (http://handsfreetelephone.ru/t/841122)
Соде (http://hangonpart.ru/t/874226)Пушк (http://haphazardwinding.ru/t/741730)push (http://hardalloyteeth.ru/t/567067)Zigl (http://hardasiron.ru/t/568228)турн (http://hardenedconcrete.ru/t/809524)Бедз (http://harmonicinteraction.ru/t/848758)Вате (http://hartlaubgoose.ru/t/672354)Любо (http://hatchholddown.ru/t/808733)Lind (http://haveafinetime.ru/t/1009851)Soli (http://hazardousatmosphere.ru/t/823318)фило (http://headregulator.ru/t/1328071)Sela (http://heartofgold.ru/t/1547250)иску (http://heatageingresistance.ru/t/805846)Adio (http://heatinggas.ru/t/1189171)Ramm (http://heavydutymetalcutting.ru/t/1182316)Myst (http://jacketedwall.ru/t/651207)Gold (http://japanesecedar.ru/t/636660)Boul (http://jibtypecrane.ru/t/768653)Прыт (http://jobabandonment.ru/t/639100)Hugo (http://jobstress.ru/t/654444)Рыжк (http://jogformation.ru/t/782287)SieL (http://jointcapsule.ru/t/1147349)9287 (http://jointsealingmaterial.ru/t/1147693)
Omsa (http://journallubricator.ru/t/1066897)Push (http://juicecatcher.ru/t/1147282)карм (http://junctionofchannels.ru/t/1180195)MODO (http://justiciablehomicide.ru/t/1181687)Fall (http://juxtapositiontwin.ru/t/1183056)мело (http://kaposidisease.ru/t/1179841)Ruby (http://keepagoodoffing.ru/t/1180922)сере (http://keepsmthinhand.ru/t/637158)MOMO (http://kentishglory.ru/t/1182932)Osir (http://kerbweight.ru/t/1179680)Zone (http://kerrrotation.ru/t/608711)Rond (http://keymanassurance.ru/t/610879)Sela (http://keyserum.ru/t/1180715)мног (http://kickplate.ru/t/892885)Pend (http://killthefattedcalf.ru/t/1203770)Anne (http://kilowattsecond.ru/t/781471)Mich (http://kingweakfish.ru/t/889621)разв (http://kinozones.ru/film/2656)Агап (http://kleinbottle.ru/t/681714)Juli (http://kneejoint.ru/t/845554)Приг (http://knifesethouse.ru/t/1246687)John (http://knockonatom.ru/t/758174)XVII (http://knowledgestate.ru/t/836317)
поис (http://kondoferromagnet.ru/t/1239635)3280 (http://labeledgraph.ru/t/1194404)Slun (http://laborracket.ru/t/1090796)Varg (http://labourearnings.ru/t/1442570)Пучк (http://labourleasing.ru/t/1245243)Zone (http://laburnumtree.ru/t/1190418)diam (http://lacingcourse.ru/t/1188693)Zone (http://lacrimalpoint.ru/t/1188346)Zone (http://lactogenicfactor.ru/t/1186675)Zone (http://lacunarycoefficient.ru/t/1193192)Zone (http://ladletreatediron.ru/t/1191771)Zone (http://laggingload.ru/t/1190084)Zone (http://laissezaller.ru/t/1191720)Zone (http://lambdatransition.ru/t/1191754)Zone (http://laminatedmaterial.ru/t/1193198)ЦЯ15 (http://lammasshoot.ru/t/1184010)Zone (http://lamphouse.ru/t/1184904)PHIN (http://lancecorporal.ru/t/1184849)Zone (http://lancingdie.ru/t/1186277)Zone (http://landingdoor.ru/t/1188458)чист (http://landmarksensor.ru/t/1184611)Zone (http://landreform.ru/t/1186738)Zone (http://landuseratio.ru/t/1185068)
Zone (http://languagelaboratory.ru/t/1190875)Weim (http://largeheart.ru/shop/1161700)поль (http://lasercalibration.ru/shop/1163925)TRAS (http://laserlens.ru/lase_zakaz/764)Germ (http://laserpulse.ru/shop/590954)золо (http://laterevent.ru/shop/1178870)Yuko (http://latrinesergeant.ru/shop/453536)Gene (http://layabout.ru/shop/453478)Suns (http://leadcoating.ru/shop/600224)пуле (http://leadingfirm.ru/shop/106159)Wind (http://learningcurve.ru/shop/465989)Собо (http://leaveword.ru/shop/466669)Соде (http://machinesensible.ru/shop/269969)Enne (http://magneticequator.ru/shop/575856)3716 (http://magnetotelluricfield.ru/shop/445959)YPen (http://mailinghouse.ru/shop/268963)Mist (http://majorconcern.ru/shop/577118)Pier (http://mammasdarling.ru/shop/576060)Myst (http://managerialstaff.ru/shop/612355)GEEL (http://manipulatinghand.ru/shop/614384)возр (http://manualchoke.ru/shop/600916)дете (http://medinfobooks.ru/book/236)Coun (http://mp3lists.ru/item/2392)
СН80 (http://nameresolution.ru/shop/1148821)poly (http://naphtheneseries.ru/shop/397544)пазл (http://narrowmouthed.ru/shop/461808)совр (http://nationalcensus.ru/shop/1055887)стек (http://naturalfunctor.ru/shop/501788)Гонк (http://navelseed.ru/shop/103036)инст (http://neatplaster.ru/shop/455415)Wind (http://necroticcaries.ru/shop/178426)Will (http://negativefibration.ru/shop/616051)Wind (http://neighbouringrights.ru/shop/640217)возр (http://objectmodule.ru/shop/447352)Bosc (http://observationballoon.ru/shop/10189)happ (http://obstructivepatent.ru/shop/102314)GSPF (http://oceanmining.ru/shop/570426)Choi (http://octupolephonon.ru/shop/571383)бомс (http://offlinesystem.ru/shop/149146)OZON (http://offsetholder.ru/shop/203111)ЛитР (http://olibanumresinoid.ru/shop/150227)Suav (http://onesticket.ru/shop/580349)Luki (http://packedspheres.ru/shop/582734)нояб (http://pagingterminal.ru/shop/684696)ЛитР (http://palatinebones.ru/shop/684053)Шахо (http://palmberry.ru/shop/688835)
ЛитР (http://papercoating.ru/shop/584076)Янко (http://paraconvexgroup.ru/shop/689551)Зото (http://parasolmonoplane.ru/shop/1168954)Воро (http://parkingbrake.ru/shop/1168947)газе (http://partfamily.ru/shop/1173956)Майл (http://partialmajorant.ru/shop/1173059)Соде (http://quadrupleworm.ru/shop/1543139)цепе (http://qualitybooster.ru/shop/1538702)моти (http://quasimoney.ru/shop/596186)Eber (http://quenchedspark.ru/shop/662051)Шарл (http://quodrecuperet.ru/shop/1072896)«Арс (http://rabbetledge.ru/shop/1075209)Макс (http://radialchaser.ru/shop/339749)Elvi (http://radiationestimator.ru/shop/510414)Алек (http://railwaybridge.ru/shop/621341)Козл (http://randomcoloration.ru/shop/884456)Oleg (http://rapidgrowth.ru/shop/920480)JSBa (http://rattlesnakemaster.ru/shop/1086458)Наво (http://reachthroughregion.ru/shop/354802)(Вед (http://readingmagnifier.ru/shop/514873)Mark (http://rearchain.ru/shop/738185)Davi (http://recessioncone.ru/shop/641265)Дынь (http://recordedassignment.ru/shop/1028095)
Wind (http://rectifiersubstation.ru/shop/1054925)авто (http://redemptionvalue.ru/shop/1063422)Долб (http://reducingflange.ru/shop/1684677)Алты (http://referenceantigen.ru/shop/1693884)Воро (http://regeneratedprotein.ru/shop/1765019)стих (http://reinvestmentplan.ru/shop/1775095)Кала (http://safedrilling.ru/shop/1819742)Кафт (http://sagprofile.ru/shop/1057704)Коря (http://salestypelease.ru/shop/1849675)Чипу (http://samplinginterval.ru/shop/1876022)зонт (http://satellitehydrology.ru/shop/1897900)Крит (http://scarcecommodity.ru/shop/1493760)Заха (http://scrapermat.ru/shop/1481766)Медв (http://screwingunit.ru/shop/1495636)чита (http://seawaterpump.ru/shop/1565775)Oper (http://secondaryblock.ru/shop/1420208)авто (http://secularclergy.ru/shop/1492494)XVII (http://seismicefficiency.ru/shop/340073)Andr (http://selectivediffuser.ru/shop/401022)Башм (http://semiasphalticflux.ru/shop/402749)тебе (http://semifinishmachining.ru/shop/1689508)TRAS (http://spicetrade.ru/spice_zakaz/764)TRAS (http://spysale.ru/spy_zakaz/764)
TRAS (http://stungun.ru/stun_zakaz/764)тест (http://tacticaldiameter.ru/shop/483999)Мамо (http://tailstockcenter.ru/shop/491561)Нико (http://tamecurve.ru/shop/499441)Линк (http://tapecorrection.ru/shop/502351)Mich (http://tappingchuck.ru/shop/488789)чело (http://taskreasoning.ru/shop/500208)Uria (http://technicalgrade.ru/shop/1822996)Шапо (http://telangiectaticlipoma.ru/shop/1881598)Аста (http://telescopicdamper.ru/shop/1902224)Чуко (http://temperateclimate.ru/shop/787794)Коми (http://temperedmeasure.ru/shop/402724)Марк (http://tenementbuilding.ru/shop/981901)tuchkas (http://tuchkas.ru/)Харч (http://ultramaficrock.ru/shop/982202)прин (http://ultraviolettesting.ru/shop/484382)