好!欢迎访问迷津渡口 现在时间是: 天气 °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
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
hinogi
 hinogi 约 18 小时前回复
#208
<a href="http://www.unefinemouche.com/nike-air-max-bw-womens-yellow-orange-shoesi">nike air max bw womens yellow orange</a> <a href="http://www.ayuinc.com/dam%C3%A4nner-asics-gel-noosa-tri-9-himmelblau-grau-schuhei">dam盲nner asics gel noosa tri 9 himmelblau grau</a> <a href="http://www.unirlisboa.com/hombres-nike-free-tr-fit-gris-blanco-zapatosk">hombres nike free tr fit gris blanco</a> <a href="http://www.escortfeeds.com/nike-zoom-pegasus-33-kvinders-himmelbl%C3%A5-sort-skoi">nike zoom pegasus 33 kvinders himmelbl氓 sort</a> <a href="http://www.rdjanitorial.com/kvinners-air-max-90-blomsts-svart-oransje-obuvl">kvinners air max 90 blomsts svart oransje</a> <a href="http://www.bookoobeats.com/nike-air-max-90-sky-blue-pink-shoesh">nike air max 90 sky blue pink</a>
hinogi http://www.hinogi.com/
hohzuki
 hohzuki 2019-04-24 23:40回复
#207
<a href="http://www.bodhiwords.com/nike-hypervenom-gold-herren-schuhed">nike hypervenom gold herren</a> <a href="http://www.celeblesbians.com/hommes-asics-gel-noosa-tri-10-violet-rose-obuvf">hommes asics gel noosa tri 10 violet rose</a> <a href="http://www.darycheh.com/adidas-springblade-drive-rojo-corriendo-zapatos-guide-butya">adidas springblade drive rojo corriendo zapatos guide</a> <a href="http://www.domainvlogs.com/dark-r%C3%B8d-nike-cortez-butya">dark r酶d nike cortez</a> <a href="http://www.ercots.com/adidas-superstar-kvinners-salg-paper-obuvd">adidas superstar kvinners salg paper</a> <a href="http://www.frgans.com/maschio-asics-gel-lyte-5-rosso-argento-scarpec">maschio asics gel lyte 5 rosso argento</a>
hohzuki http://www.hohzuki.com/
kennethmarrin
 kennethmarrin 2019-04-24 08:53回复
#206
<a href="http://www.facenextday.com/adidas-neo-campus-nero-rosa-scarpee">adidas neo campus nero rosa</a> <a href="http://www.mellowsblues.com/nike-rot-liberty-print-dunk-sky-hi-scarpeg">nike rot liberty print dunk sky hi</a> <a href="http://www.stackdotnet.com/adidas-zx-750-gituttio-pill-kurpesa">adidas zx 750 gituttio pill</a> <a href="http://www.donatelia.com/herren-vibram-fivefingers-speed-lila-schuhee">herren vibram fivefingers speed lila</a> <a href="http://www.jafcosupply.com/roshe-run-custom-nero-kurpesb">roshe run custom nero</a> <a href="http://www.kanaldtvizle.com/nike-roshe-run-nm-br-sort-hvid-r%C3%B8d-kurpesa">nike roshe run nm br sort hvid r酶d</a>
kennethmarrin http://www.kennethmarrin.com/
airfarelinks
 airfarelinks 2019-04-24 07:26回复
#205
<a href="http://www.ipodammo.com/chicago-blackhawks-2016-winter-classic-jersey-nfli">chicago blackhawks 2016 winter classic jersey</a> <a href="http://www.bezpozyczka.com/asics-onitsuka-tiger-mexico-66-rojo-negro-zapatosh">asics onitsuka tiger mexico 66 rojo negro</a> <a href="http://www.ajhoweaboutpt.com/air-max-90-hyperfuse-rojo-zapatosk">air max 90 hyperfuse rojo</a> <a href="http://www.rawrapture.com/the-north-face-black-jacket-womens-northfaceh">the north face black jacket womens</a> <a href="http://www.staholidays.com/rosa-adidas-originals-gazelle-schuhek">rosa adidas originals gazelle</a> <a href="http://www.gunsrusoregon.com/bl%C3%A5-adidas-basketballe-sko-skoi">bl氓 adidas basketballe sko</a>
airfarelinks http://www.airfarelinks.com/
michiganev
 michiganev 2019-04-23 20:42回复
#204
<a href="http://www.townyplay.com/r%C3%B8d-and-gul-converse-skol">r酶d and gul converse</a> <a href="http://www.djpunjabii.com/nike-jordan-eclipse-hvit-obuvk">nike jordan eclipse hvit</a> <a href="http://www.avsomurie.com/adidas-superstar-w-nero-scarpei">adidas superstar w nero</a> <a href="http://www.circusveil.com/nike-mujeres-free-4.0-flyknit-corriendo-zapatos-negro-gris-zapatosh">nike mujeres free 4.0 flyknit corriendo zapatos negro gris</a> <a href="http://www.laconiaoil.com/nike-hyperrev-2015-alle-sort-skok">nike hyperrev 2015 alle sort</a> <a href="http://www.hurizmir.com/femmes-under-armour-curry-4-oransje-obuvi">femmes under armour curry 4 oransje</a>
michiganev http://www.michiganev.com/
tinaandcoco
 tinaandcoco 2019-04-23 10:01回复
#203
<a href="http://www.delicouncil.com/nike-air-max-1-hvid-and-gr%C3%A5-skok">nike air max 1 hvid and gr氓</a> <a href="http://www.jeffaudette.com/adidas-superstar-himmelblau-silber-schuheh">adidas superstar himmelblau silber</a> <a href="http://www.ezappspro.com/black-leather-converse-with-zipper-shoesk">black leather converse with zipper</a> <a href="http://www.susannekober.com/adidas-pr%C3%B8dator-ne-kadar-skol">adidas pr酶dator ne kadar</a> <a href="http://www.kingsroomlv.com/chuck-taylor-hvit-converse-sko-obuvk">chuck taylor hvit converse sko</a> <a href="http://www.sadecemerak.com/converse-nero-pelle-high-tops-femminile-scarpei">converse nero pelle high tops femminile</a>
tinaandcoco http://www.tinaandcoco.com/
thefarmergirl
 thefarmergirl 2019-04-23 01:45回复
#202
<a href="http://www.hinogi.com/michael-kors-red-studded-bag-mkh">michael kors red studded bag</a> <a href="http://www.prontosignsus.com/nike-foamposite-pro-bl%C3%A5-hvit-obuvi">nike foamposite pro bl氓 hvit</a> <a href="http://www.ticahome.com/nike-kobe-9-low-femminile-viola-oro-scarpej">nike kobe 9 low femminile viola oro</a> <a href="http://www.prformusic.com/air-jordan-retro-5-green-silver-shoesh">air jordan retro 5 green silver</a> <a href="http://www.tatilblogu.com/hombres-asics-gel-lyte-5-cielo-azul-gris-zapatosk">hombres asics gel lyte 5 cielo azul gris</a> <a href="http://www.danieladirosa.com/hombres-aidas-boost-clima-chill-verde-zapatosp">hombres aidas boost clima chill verde</a>
[url=http://www.thefarmergirl.com/]thefarmergirl[/url]
jrelselaw
 jrelselaw 2019-04-21 03:53回复
#201
<a href="http://www.mumbaikichut.com/hombres-nike-sb-stefan-janoski-max-verde-p%C3%BArpura-zapatosk">hombres nike sb stefan janoski max verde p煤rpura</a> <a href="http://www.ikmsdkravmaga.com/the-north-face-womens-denali-fleece-jacket-black-northfaceh">the north face womens denali fleece jacket black</a> <a href="http://www.themusinglens.com/nike-flyknit-lunar-3-dam%C3%A4nner-rosa-silber-schuhej">nike flyknit lunar 3 dam盲nner rosa silber</a> <a href="http://www.startagencia.com/herre-asics-asics-gel-kayano-20-r%C3%B8d-s%C3%B8lv-skoh">herre asics asics gel kayano 20 r酶d s酶lv</a> <a href="http://www.drjennieward.com/air-jordan-14-gris-bleu-chaussuresh">air jordan 14 gris bleu</a> <a href="http://www.genievres.com/minnesota-vikings-47-nfl-cardinal-clean-up-cap-hatl">minnesota vikings 47 nfl cardinal clean up cap</a>
jrelselaw http://www.jrelselaw.com/
hiussalipiilo
 hiussalipiilo 2019-04-20 23:41回复
#200
<a href="http://www.newjerseycdl.com/adidas-pr%C3%B8dator-mania-2017-remake-scarped">adidas pr酶dator mania 2017 remake</a> <a href="http://www.rongifc.com/puma-suede-schwarz-wei%C3%9F-gold-butya">puma suede schwarz wei脽 gold</a> <a href="http://www.theartofdecay.com/air-jordan-true-flight-silber-gold-chaussurese">air jordan true flight silber gold</a> <a href="http://www.uffelfinn.com/kyrie-1-todas-star-socks-butya">kyrie 1 todas star socks</a> <a href="http://www.abbiemorrison.com/nike-free-flyknit-4.0-femmes-bleu-ciel-argent-schuheg">nike free flyknit 4.0 femmes bleu ciel argent</a> <a href="http://www.buditrek.com/polo-ralph-lauren-atlantic-city-polou">polo ralph lauren atlantic city</a>
hiussalipiilo http://www.hiussalipiilo.com/
reviewtogel
 reviewtogel 2019-04-20 03:43回复
#199
<a href="http://www.taiwanmeinet.com/nike-air-max-thea-gris-trainers-zapatosk">nike air max thea gris trainers</a> <a href="http://www.talkwithgirl.com/nike-roshe-run-men-high-warm-wine-red-black-shoesj">nike roshe run men high warm wine red black</a> <a href="http://www.mamatale.com/maryland-terrapins-new-era-ncaa-ac-59fifty-cap-hath">maryland terrapins new era ncaa ac 59fifty cap</a> <a href="http://www.strongtale.com/nike-air-force-1-flyknit-low-negro-blanco-zapatosl">nike air force 1 flyknit low negro blanco</a> <a href="http://www.iranpayamco.com/gel-quantum-360-knit-black-onyx-dark-grey-3-rt-shoesk">gel quantum 360 knit black onyx dark grey 3 rt</a> <a href="http://www.hapeid.com/menn-nike-zoom-winflo-2-gr%C3%A5-bl%C3%A5-obuvi">menn nike zoom winflo 2 gr氓 bl氓</a>
reviewtogel http://www.reviewtogel.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸