好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

emlog如何修改默认的导航

emlog设置了导航保护措施,防止错误修改几个地址,包括首页、微语和登录。

但是博客可是我们的自留地,怎么能有我们无法修改的东西呢?!

小指已经了解到怎么修改了,分享一下~

其实是修改 admin/navbar.php 文件,打开文件,按照指示做吧~

查找并删除

if ($type != Navi_Model::navitype_custom) {
  $url = '该导航地址由系统生成,无法修改';
}

此段代码是为了判定,导航是否是默认导航,如果是的话,就不显示导航地址,只显示这段文字。


删除了上面一段代码之后,发现文本框虽然显示了导航地址,但还是不可修改状态。

继续查找并删除

$conf_isdefault = $type != Navi_Model::navitype_custom ? 'disabled="disabled"' : '';

此段代码设定了,如果是默认导航的话,那文本框就不可修改。


以上步骤搞定了以后,虽然文本框可以修改,可以提交,但发现修改后还是不能生效

最后,查找以下代码:

if ($isdefault == 'n') {
  $navi_data['url'] = $url;
}

留下中间一行,即修改为:

$navi_data['url'] = $url;

此段代码是在提交的时候判断导航是否为默认导航,如果不是默认导航才修改,去掉修改条件就OK。


注意:由于修改了系统文件,如果升级emlog那么这次修改将会被覆盖,请升级程序的时候备份好文件。

点赞7
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
synchromodaal
 synchromodaal 25 分钟前回复
#303
<a href="http://www.abiliator.com/adidas-eqt-bambini-scarpe-marrone-blu-chaussuresb">adidas eqt bambini scarpe marrone blu</a> <a href="http://www.tapsevilla.com/nike-air-max-tailwind-7-hombres-corriendo-zapato-company-zapatosj">nike air max tailwind 7 hombres corriendo zapato company</a> <a href="http://www.sanduicheria.com/adidas-crazylight-boost-guld-s%C3%B8lv-obuvf">adidas crazylight boost guld s酶lv</a> <a href="http://www.clavideo.com/pandora-bracelets-canada-bread-pandoraj">pandora bracelets canada bread</a> <a href="http://www.usnbraces.com/nike-free-run-3.0-v5-hvid-trainersd">nike free run 3.0 v5 hvid</a> <a href="http://www.kinmountfair.com/nike-air-max-95-junior-nero-converse-chaussuresm">nike air max 95 junior nero converse</a>
synchromodaal http://www.synchromodaal.com/
shamswesley
 shamswesley 约 3 小时前回复
#302
<a href="http://www.fooddorks.com/men-parajumpers-jacket-versace-shoes-parajumpersa">men parajumpers jacket versace shoes</a> <a href="http://www.nicobeenker.com/moncler-suyen-down-jacket-qld-monclera">moncler suyen down jacket qld</a> <a href="http://www.metanorn.com/nike-air-force-1-25th-low-suede-negro-blanco-chaussuresb">nike air force 1 25th low suede negro blanco</a> <a href="http://www.thepdregistry.com/air-jordan-14-oro-chain-zapatosj">air jordan 14 oro chain</a> <a href="http://www.immocentrevar.com/adidas-pr%C3%B8dator-absolado-lz-trx-fg-futsal-obuvf">adidas pr酶dator absolado lz trx fg futsal</a> <a href="http://www.anvemedia.com/pandora-dangle-birthstone-charms-white-pandoraj">pandora dangle birthstone charms white</a>
shamswesley http://www.shamswesley.com/
scmvietnam
 scmvietnam 约 3 小时前回复
#301
<a href="http://www.rlhomestaging.com/tory-burch-foldover-crossbody-bag-toryburchr">tory burch foldover crossbody bag</a> <a href="http://www.advitil.com/nike-air-max-tavas-pink-and-black-footc">nike air max tavas pink and black</a> <a href="http://www.primumlive.com/billig-air-max-2016-flyknit-all-svart-gr%C3%A5-obuvb">billig air max 2016 flyknit all svart gr氓</a> <a href="http://www.tioneo.com/hermes-white-scarf-price-est-scarfb">hermes white scarf price est</a> <a href="http://www.valeriewiener.com/hombres-ralph-lauren-stripe-polo-rojo-naranja-polor">hombres ralph lauren stripe polo rojo naranja</a> <a href="http://www.cinderstorm.com/adidas-superstar-originals-olx-runningd">adidas superstar originals olx</a>
[url=http://www.scmvietnam.com/]scmvietnam[/url]
joemaniophoto
 joemaniophoto 约 3 小时前回复
#300
<a href="http://www.projetocidade.com/north-face-gore-tex-hiking-boots-northfacer">north face gore tex hiking boots</a> <a href="http://www.alquranschool.com/under-armour-curry-2.0-skos">under armour curry 2.0</a> <a href="http://www.betascgx.com/nike-air-huarache-matte-plata-paint-kurpese">nike air huarache matte plata paint</a> <a href="http://www.runninbunions.com/nike-limited-duane-brown-jersey-76-nfl-seattle-seahawks-therma-long-sleeve-youth-navy-blue-nfls">nike limited duane brown jersey 76 nfl seattle seahawks therma long sleeve youth navy blue</a> <a href="http://www.hobbyfreaks.com/hermes-kelly-28-togo-hermesg">hermes kelly 28 togo</a> <a href="http://www.nishuran.com/air-jordan-jumpman-team-naranja-marr%C3%B3n-chaussuresd">air jordan jumpman team naranja marr贸n</a>
joemaniophoto http://www.joemaniophoto.com/
eletrobrasal
 eletrobrasal 约 6 小时前回复
#299
<a href="http://www.opticapegaso.com/jordan-5-fire-rot-grau-zapatosd">jordan 5 fire rot grau</a> <a href="http://www.eletrobrasal.com/nike-shox-vince-carter-sko-obuvl">nike shox vince carter sko</a> <a href="http://www.lexingtonccdw.com/pandora-daisy-earrings-uk-menu-pandorad">pandora daisy earrings uk menu</a> <a href="http://www.maudehairva.com/new-balance-926-mens-black-trainersi">new balance 926 mens black</a> <a href="http://www.hpcmonthly.com/nike-kobe-9-low-silber-wei%C3%9F-chaussuresg">nike kobe 9 low silber wei脽</a> <a href="http://www.alkonadom.com/ralph-lauren-long-sleeve-polo-snowy-blanco-in-mujeres-poloa">ralph lauren long sleeve polo snowy blanco in mujeres</a>
eletrobrasal http://www.eletrobrasal.com/
taxinowapp
 taxinowapp 约 20 小时前回复
#298
<a href="http://www.domegutter.com/floral-dress-retro-dresse">floral dress retro</a> <a href="http://www.motykare.com/nike-air-max-thea-gr%C3%A5-ladies-footi">nike air max thea gr氓 ladies</a> <a href="http://www.curlywoodwind.com/jordan-5-rosa-arancia-butyg">jordan 5 rosa arancia</a> <a href="http://www.narrateblog.com/parajumpers-kodiak-women-parajumper-jassen-online-parajumpersb">parajumpers kodiak women parajumper jassen online</a> <a href="http://www.ronjaespejord.com/canada-goose-jackets-use-coyote-fur-day-canadagooseb">canada goose jackets use coyote fur day</a> <a href="http://www.cjcoffrin.com/kvinders-air-jordan-retro-1-orange-gr%C3%A5-kurpesk">kvinders air jordan retro 1 orange gr氓</a>
taxinowapp http://www.taxinowapp.com/
swbvideo
 swbvideo 2019-12-05 09:39回复
#297
<a href="http://www.scrgruppen.com/canada-goose-jacket-mississauga-canadagooseb">canada goose jacket mississauga</a> <a href="http://www.jklindfors.com/nike-air-huarache-grigio-knit-kurpesk">nike air huarache grigio knit</a> <a href="http://www.lorenaflowers.com/pandora-bracelets-kalamazoo-art-pandoraf">pandora bracelets kalamazoo art</a> <a href="http://www.suppersu.com/jimmy-choo-low-heel-sandals-louboutine">jimmy choo low heel sandals</a> <a href="http://www.riverfresno.com/hermes-evelyn-pm-yoga-hermesc">hermes evelyn pm yoga</a> <a href="http://www.blecamerica.com/nike-roshe-run-blomstret-gul-r%C3%B8d-footm">nike roshe run blomstret gul r酶d</a>
swbvideo http://www.swbvideo.com/
gleisquadrat
 gleisquadrat 2019-12-04 17:48回复
#296
<a href="http://www.beachtimenow.com/hermes-belt-made-in-france-hermesr">hermes belt made in france</a> <a href="http://www.tragemaus.com/flyknit-lunar-2-schwarz-grau-download-chaussuresg">flyknit lunar 2 schwarz grau download</a> <a href="http://www.introtechint.com/mens-air-jordan-3-grey-sportsc">mens air jordan 3 grey</a> <a href="http://www.newmadagasca.com/ugg-bailey-button-bling-mini-sale-canada-uggsb">ugg bailey button bling mini sale canada</a> <a href="http://www.pvktechinfo.com/nike-roshe-run-rosa-rot-butyg">nike roshe run rosa rot</a> <a href="http://www.treehousecats.com/nike-air-flight-89-dynamic-bl%C3%A5-fireberry-sort-volt-up-butya">nike air flight 89 dynamic bl氓 fireberry sort volt up</a>
gleisquadrat http://www.gleisquadrat.com/
sarkariresurt
 sarkariresurt 2019-12-04 08:26回复
#295
<a href="http://www.goseecreate.com/ray-ban-cats-5000-review-sunglassesr">ray ban cats 5000 review</a> <a href="http://www.klarinettino.com/nike-roshe-run-print-oransje-butya">nike roshe run print oransje</a> <a href="http://www.loydartist.com/adidas-nitrocharge-rose-pill-butyb">adidas nitrocharge rose pill</a> <a href="http://www.musicbreeds.com/mackage-coat-up-clip-mackagee">mackage coat up clip</a> <a href="http://www.plakglas.com/herre-nike-free-flyknit-4.0-r%C3%B8d-bl%C3%A5-butyd">herre nike free flyknit 4.0 r酶d bl氓</a> <a href="http://www.samuelzide.com/adidas-damian-lillard-3-rojo-rosado-obuvf">adidas damian lillard 3 rojo rosado</a>
sarkariresurt http://www.sarkariresurt.com/
webgiganten
 webgiganten 2019-12-03 14:11回复
#294
<a href="http://www.autosasart.com/nike-air-force-1-r%C3%B8d-orange-scarped">nike air force 1 r酶d orange</a> <a href="http://www.centrodunamis.com/billig-nike-air-max-ld-zero-dam%C3%A4nner-orange-footd">billig nike air max ld zero dam盲nner orange</a> <a href="http://www.kideschool.com/nike-roshe-run-sort-and-hvid-uk-chaussuresd">nike roshe run sort and hvid uk</a> <a href="http://www.preloxlady.com/air-max-95-dave-white-rabbit-runningd">air max 95 dave white rabbit</a> <a href="http://www.scalfarogroup.com/ray-ban-round-metal-review-sunglassesr">ray ban round metal review</a> <a href="http://www.yuriboguinia.com/cheap-nike-foamposite-paypal-footb">cheap nike foamposite paypal</a>
webgiganten http://www.webgiganten.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸