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

清空信息
关闭评论
drlforbes
 drlforbes 2019-05-21 17:33回复
#257
<a href="http://www.westzouktime.com/nike-cortez-menn-bl%C3%A5-jade-obuvi">nike cortez menn bl氓 jade</a> <a href="http://www.rozfile.com/kvinner-nike-air-max-thea-lilla-hvit-obuvk">kvinner nike air max thea lilla hvit</a> <a href="http://www.emcoroofing.com/adidas-tubular-bl%C3%A5-hvit-obuvi">adidas tubular bl氓 hvit</a> <a href="http://www.sposhnation.com/hombres-nike-free-flyknit-5.0-v2-naranja-negro-zapatosl">hombres nike free flyknit 5.0 v2 naranja negro</a> <a href="http://www.fiqhfrench.com/nike-internationalist-viola-nero-scarpeh">nike internationalist viola nero</a> <a href="http://www.idlifehealth.com/mens-adidas-springblade-drive-2.0-green-shoesk">mens adidas springblade drive 2.0 green</a>
[url=http://www.drlforbes.com/]drlforbes[/url]
chrissinacori
 chrissinacori 2019-05-21 05:46回复
#256
<a href="http://www.govolsrealtor.com/limited-mychal-kendricks-youth-jersey-philadelphia-eagles-95-alternate-black-nfla">limited mychal kendricks youth jersey philadelphia eagles 95 alternate black</a> <a href="http://www.djdiscgolf.com/new-balance-retro-sneakers-skox">new balance retro sneakers</a> <a href="http://www.saraviquez.com/ray-ban-aviator-folding-ultra-75th-anniversary-collection-time-sunglassesb">ray ban aviator folding ultra 75th anniversary collection time</a> <a href="http://www.dfweliquid.com/mulberry-tessie-tote-pris-zero-mulberrya">mulberry tessie tote pris zero</a> <a href="http://www.mrforgps.com/billig-nike-shox-nz-dam%C3%A4nner-silber-trainersa">billig nike shox nz dam盲nner silber</a> <a href="http://www.nunbori.com/canada-goose-kensington-arctic-dusk-canadagooser">canada goose kensington arctic dusk</a>
chrissinacori http://www.chrissinacori.com/
ayuinc
 ayuinc 2019-05-20 12:54回复
#255
<a href="http://www.truthtapes.com/nike-kd-8-verde-cielo-azul-zapatosk">nike kd 8 verde cielo azul</a> <a href="http://www.veskopetrov.com/north-face-greenland-jacket-northfaceh">north face greenland jacket</a> <a href="http://www.kaosmotogp.com/dam%C3%A4nner-adidas-springblade-ignite-gr%C3%BCn-schuhej">dam盲nner adidas springblade ignite gr眉n</a> <a href="http://www.doularhythms.com/nike-kd-7-himmelbl%C3%A5-hvid-skoh">nike kd 7 himmelbl氓 hvid</a> <a href="http://www.animalpainvet.com/hommes-nike-roshe-run-speckle-blanc-rose-chaussuresh">hommes nike roshe run speckle blanc rose</a> <a href="http://www.texarillo.com/cleveland-indians-new-era-mlb-2-tone-link-9fifty-snapback-cap-hatl">cleveland indians new era mlb 2 tone link 9fifty snapback cap</a>
ayuinc http://www.ayuinc.com/
milajerdchat
 milajerdchat 2019-05-20 04:04回复
#254
<a href="http://www.adanastarpen.com/nike-air-max-95-rot-gelb-schuhel">nike air max 95 rot gelb</a> <a href="http://www.actconfident.com/air-jordan-retro-7-gamma-bleu-rose-chaussuresq">air jordan retro 7 gamma bleu rose</a> <a href="http://www.erzurumihl.com/under-armour-curry-2-rojo-verde-zapatosl">under armour curry 2 rojo verde</a> <a href="http://www.candctowingil.com/kvinders-air-max-90-em-sort-hvid-skoj">kvinders air max 90 em sort hvid</a> <a href="http://www.onlysidekick.com/nike-air-max-tailwind-7-kvinners-himmelen-bl%C3%A5-gull-obuvi">nike air max tailwind 7 kvinners himmelen bl氓 gull</a> <a href="http://www.rmmassage.com/air-jordan-retro-3-naranja-p%C3%BArpura-zapatosp">air jordan retro 3 naranja p煤rpura</a>
milajerdchat http://www.milajerdchat.com/
xthbgc
 xthbgc 2019-05-20 01:36回复
#253
<a href="http://www.sousoushop.com/nike-cortez-bianca-toddler-scarpel">nike cortez bianca toddler</a> <a href="http://www.rcfitcamp.com/nike-air-max-90-carved-purple-silver-shoesj">nike air max 90 carved purple silver</a> <a href="http://www.milajerdchat.com/free-og-14-br-lyser%C3%B8d-gr%C3%A5-skok">free og 14 br lyser酶d gr氓</a> <a href="http://www.girisweb.com/nike-air-max-tailwind-8-bl%C3%A5-oransje-obuvp">nike air max tailwind 8 bl氓 oransje</a> <a href="http://www.abcmovieplot.com/mens-nike-air-huarache-nm-yellow-grey-shoesi">mens nike air huarache nm yellow grey</a> <a href="http://www.oldhalliwell.com/herre-asics-asics-gel-kayano-20-appelsin-lilla-skoj">herre asics asics gel kayano 20 appelsin lilla</a>
xthbgc http://www.xthbgc.com/
ericmichaelpr
 ericmichaelpr 2019-05-18 09:18回复
#252
<a href="http://www.yogafriendly.com/croatia-home-croatia-away-nfli">croatia home croatia away</a> <a href="http://www.btvspassion.com/mujer-nike-air-force-1-flyknit-low-watermelon-rojo-zapatosh">mujer nike air force 1 flyknit low watermelon rojo</a> <a href="http://www.trusejenta.com/air-max-90-zapatilla-de-deporteboot-rojo-zapatosk">air max 90 zapatilla de deporteboot rojo</a> <a href="http://www.chatgroupies.com/ladies-pink-north-face-jacket-northfaceh">ladies pink north face jacket</a> <a href="http://www.tamarindoyam.com/nike-magistax-proximo-ii-ic-schwarz-orange-schuhek">nike magistax proximo ii ic schwarz orange</a> <a href="http://www.tinaandcoco.com/nike-air-max-thea-trainers-gr%C3%A5-skoi">nike air max thea trainers gr氓</a>
ericmichaelpr http://www.ericmichaelpr.com/
poluscompany
 poluscompany 2019-05-18 08:37回复
#251
<a href="http://www.dowsadvocate.com/air-jordan-9-black-and-white-shoesi">air jordan 9 black and white</a> <a href="http://www.laflammesinc.com/nike-air-max-90-rosa-maschio-scarpej">nike air max 90 rosa maschio</a> <a href="http://www.thisisitnyc.com/frau-nike-air-yeezy-schwarz-rot-schuhej">frau nike air yeezy schwarz rot</a> <a href="http://www.tuurulz.com/black-usc-hat-hath">black usc hat</a> <a href="http://www.todotecnicos.com/nike-free-trainer-5.0-bleu-and-gris-chaussuresh">nike free trainer 5.0 bleu and gris</a> <a href="http://www.xaviersarrate.com/nike-internationalist-army-gr%C3%BCn-schuheh">nike internationalist army gr眉n</a>
poluscompany http://www.poluscompany.com/
mamatale
 mamatale 2019-05-18 08:29回复
#250
<a href="http://www.priakurus.com/nike-air-max-90-kvinner-hvit-siler-obuvi">nike air max 90 kvinner hvit siler</a> <a href="http://www.batatastudio.com/nike-sb-stefan-janoski-nero-scarpek">nike sb stefan janoski nero</a> <a href="http://www.kahawellness.com/adidas-stan-smith-black-croc-shoesi">adidas stan smith black croc</a> <a href="http://www.metabolifes.com/adidas-zx-flux-negro-mettodasic-oro-torsion-zapatosi">adidas zx flux negro mettodasic oro torsion</a> <a href="http://www.breconpharm.com/nike-lunarepic-low-flyknit-lyser%C3%B8d-skoh">nike lunarepic low flyknit lyser酶d</a> <a href="http://www.bagintaiwan.com/a-buon-mercato-converse-nero-and-bianca-scarpei">a buon mercato converse nero and bianca</a>
mamatale http://www.mamatale.com/
prformusic
 prformusic 2019-05-18 04:41回复
#249
<a href="http://www.seymourdugan.com/nike-kobe-12-hvit-oransje-obuvk">nike kobe 12 hvit oransje</a> <a href="http://www.dkstekstil.com/nike-air-max-90-engineered-mesh-id-shoesi">nike air max 90 engineered mesh id</a> <a href="http://www.thegillssell.com/jordan-gamma-bl%C3%A5-pris-skoj">jordan gamma bl氓 pris</a>
prformusic http://www.prformusic.com/
batatastudio
 batatastudio 2019-05-18 04:41回复
#248
<a href="http://www.michiganev.com/m%C3%A6nd-nike-air-max-2016-r%C3%B8d-royal-bl%C3%A5-sort-hvid-skoh">m忙nd nike air max 2016 r酶d royal bl氓 sort hvid</a> <a href="http://www.serdarhan.com/jordan-eclipse-nero-blu-scarpei">jordan eclipse nero blu</a> <a href="http://www.ankaralimnet.com/adidas-gazelle-nero-and-bianca-pelle-scarpej">adidas gazelle nero and bianca pelle</a> <a href="http://www.greenwichua.com/toronto-argonauts-ricky-ray-adidas-home-jersey-nflh">toronto argonauts ricky ray adidas home jersey</a> <a href="http://www.minicomposer.com/coach-logo-signature-lock-medium-black-totes-coachh">coach logo signature lock medium black totes</a> <a href="http://www.tabletopsport.com/nike-air-max-2016-bianca-blu-scarpei">nike air max 2016 bianca blu</a>
batatastudio http://www.batatastudio.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸