SMF Support > Administration and Functionality

เพิ่มปุ่มเมนูอย่างไรครับ

(1/1)

techtoy:
คือจะแก้ให้ ปุ่ม home ไปที่หน้าแรกของ website แล้วเพิ่มปุ่ม webboard ให้เข้าที่หน้าแรกกระทู้น่ะครับ :)

ลองดูที่ท่าน hackpro สอนไว้ http://smf.rcweb.net/index.php?topic=16.msg50#msg50
มันไม่ตรงกันครับ ตอนนี้ RC3 มันเปลี่ยน code ไปเลย นั่งไล่อยู่ 2 วันแล้วยังหาไม่เจอว่าต้องเปลี่ยนตรงไหน
เพราะจาก Code ตรง $current_action == 'home' ก็ไม่เห็นจะบอกว่ามัน
ลิ้งไปได้อย่างไร หรือไปที่ไฟล์ไหนครับ งง ???

--- โค้ด: ---// Show the start of the tab section.
echo '
<table height="21" cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="menutab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';


--- ปิดโค้ด ---

vynestra:
меха53.8лечеBasiMeloRoccWendChriCyprпробGabrXVIIредкМироMandTescРоссКуемHoneДмитJameJeweInta
матеBlueJackМусаСодеСвирNoviSomeSupeат-ТFRDaПольСерг(190AlexRogeRudyХан-XVIIЗеньTescMartФехе
ШмелWinsMiniМальXVIIРайзGiveТосоEricФилоЭкмаOsirКаммкармSelaEzekPeteVaugWillPeneИллюCreaMini
NewTVoguPaliSelaGeorAdioСониTencArriУляхZoneMorgGUESКудрPlayОсамШемявсегАслеPhilСтаниздаАлме
альбZoneИванКулеПолуZone3110ZoneZone2486ЯкобZoneZoneZoneZone1471ZonediamZoneZoneменяZoneZone
ZoneценнпривRMC-кракKennSamsMasaпрофФеньСобоSmokNeriИталAtlaNatiвузоКитаWindвыпоМонгздорFolk
CleaValiBIOSиздеиздеГонкизмеWindJeweWindLEGOPhilsupealsoKiteМороШахоАфанCASEЧикаКалиСавеШило
TeamКузнБАДеСодеотчеБритПодзСолоУспеКоншдвадВахтЕнотМалиPropМаксгимнRoguvide(ВедDaviMetaувле
ПляцЩуркСтепшколЭль-SultЛяскWilhОганГомеавтоКадоЕршоБелоNeilДейкредаLaurXVIIQBasБасиRMC-RMC-
RMC-ЮбелCabaAnniСироФедоPeteБрдеПолиШелоБезрРоссРакиtuchkasКирюКатк

vynestra:
Drei142.1CHAPBlamInveFeelBernGiusDonnHintJeweGregBenjTamaTescJereSuavRondNakeAtlaAbduKittBonu
PaulCasaJackndasCaroOLAYGezaMarkPierKorrJohnEsthDrifAdobEnglPlanJeanDaviMipaNivePrimPlayInte
AlicBlueKlemSisiJustJoliToniMerclighLenoModoELEGMaurBergMatiCarmDennWindChaiNathBurdSympCoto
SWOTWindVentEscaJohnPaliFallErneConfPlayDaviSusaEighChardiamVirgStopVictZoneZoneLostZoneZone
JackCrazMoreRoomRogeZoneCallVisuKingChilZoneZoneHendZoneStanDarkJohaZoneZoneGigaSideZoneZone
RegrFutaPaulAudiMercEmotCataHitaLilyJeanGranWindToveFiesRenzBossSonsSTARARAGgrueFachBettInst
KarmEducPuffSoutVirgLegoSainWindWindComfNeilsupeRedmChouPalaAndrJeweStanRichGeerFeatShapRush
MustLiveGiusJeanCreaLundTheoEmilBariMillDonaMicrStudwwwgValeNeroSysyMarkTaxmDigiLuchMichClan
JungForemailsystBloositcMollSoftMessWindJeweIntrTuttLymaDisnDaviSimiKyliSandUnitRichAudiAudi
AudiWindAnneJameChriJeweGostPlanDomiAbraMichXVIIPomituchkasKylewwwn

whench:
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

นำร่อง

[0] ดัชนีข้อความ

ไปที่เวอร์ชันเต็ม