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

迷津渡口

越感到迷惑 越接近真理

小指分享-emlog模板预览实现

其实非常简单~

修改方法:

删除init.php里面

//前台模板URL
define('TEMPLATE_URL',TPLS_URL.Option::get('nonce_templet').'/');

替换主站index.php和微语/t/index.php里面

define('TEMPLATE_PATH', TPLS_PATH.Option::get('nonce_templet').'/');//前台模板路径

替换为

if (isset($_GET['preview'])) {
	define('TEMPLATE_PATH', TPLS_PATH.$_GET["preview"].'/');//前台模板路径
	//前台模板URL
	define('TEMPLATE_URL',TPLS_URL.$_GET["preview"].'/');
} else {
	define('TEMPLATE_PATH', TPLS_PATH.Option::get('nonce_templet').'/');//前台模板路径
	//前台模板URL
	define('TEMPLATE_URL',TPLS_URL.Option::get('nonce_templet').'/');
}

使用方法:

找到需要预览的模板的目录名称,如默认模板的目录名称为default。

在当前模板访问的路径上添加一个传输数据即可。

原本没有传输数据的链接在最后添加

?preview=default

例如首页:

http://www.example.com/

修改为:

http://www.example.com/?preview=default

原本已经传输数据的链接在传输数据的数据串后面添加

&preview=default

例如文章页:

http://www.example.com/?post=1

修改为:

http://www.example.com/?post=1&preview=default


完全不影响普通访客的使用有木有,实现让访客自选模板不是梦有木有~

如果觉得不想别人乱访问,自己把preview改成个性化一点的就可以了。

搞定,说了很简单的嘛^_^

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

清空信息
关闭评论
iamfitshop
 iamfitshop 约 6 小时前回复
#77
<a href="http://www.foxyfoot.com/nike-free-run-wolf-grau-scarpea">nike free run wolf grau</a> <a href="http://www.jobmarketni.com/adidas-zx-flux-negro-and-rose-oro-mujeres-zapatos-chaussuresg">adidas zx flux negro and rose oro mujeres zapatos</a> <a href="http://www.linamauri.com/nike-air-huarache-light-p%C3%BArpura-negro-kurpese">nike air huarache light p煤rpura negro</a> <a href="http://www.ngencomputer.com/nike-kd-7-bad-apple-for-vente-obuva">nike kd 7 bad apple for vente</a> <a href="http://www.otsutyazh.com/ralph-lauren-hoodies-blue-black-polox">ralph lauren hoodies blue black</a> <a href="http://www.visapuebla.com/nike-free-run-2-femminile-nero-a-buon-mercato-schuhee">nike free run 2 femminile nero a buon mercato</a>
iamfitshop http://www.iamfitshop.com/
culdesacmag
 culdesacmag 约 15 小时前回复
#76
<a href="http://www.atrapaniapp.com/michael-kors-jet-set-travel-small-tote-bag-mkh">michael kors jet set travel small tote bag</a> <a href="http://www.maplebeyond.com/nike-lebron-soldier-9-rosa-r%C3%B8d-obuvi">nike lebron soldier 9 rosa r酶d</a> <a href="http://www.collisionsix.com/nike-air-huarache-verde-bianca-scarpej">nike air huarache verde bianca</a> <a href="http://www.todololitas.com/nike-air-max-90-independence-day-navy-blue-shoesh">nike air max 90 independence day navy blue</a> <a href="http://www.jcwjrlaw.com/kobe-9-p%C3%BArpura-zapatosk">kobe 9 p煤rpura</a> <a href="http://www.vstsblog.com/air-jordan-retro-4-plata-brojo-zapatosp">air jordan retro 4 plata brojo</a>
culdesacmag http://www.culdesacmag.com/
nike free 5.0
 nike free 5.0 2019-02-15 15:52回复
#75
<a href="http://www.rjmarinesales.com/nike-free-flyknit-5.0-salg-near-me-schuhed">nike free flyknit 5.0 salg near me</a> <a href="http://www.ojidrinks.com/red-and-black-jordan-snapback-hatr">red and black jordan snapback</a> <a href="http://www.armeinius.com/new-balance-kids-shoes-skot">new balance kids shoes</a> <a href="http://www.tauhuay.com/nike-womens-marvin-jones-jr-black-backer-detroit-lions-nfl-11-t-shirt-nflt">nike womens marvin jones jr black backer detroit lions nfl 11 t shirt</a> <a href="http://www.mikemurphylaw.com/nfl-nike-new-york-jets-83-eric-tomlinson-ash-backer-t-shirt-nflu">nfl nike new york jets 83 eric tomlinson ash backer t shirt</a> <a href="http://www.xwildtube.com/air-jordan-retro-2-guld-s%C3%B8lv-kurpesd">air jordan retro 2 guld s酶lv</a>
nike free 5.0 http://www.cokhithinhanh.com/nike-free-5.0-skot
lojandreia
 lojandreia 2019-02-14 17:20回复
#74
<a href="http://www.hustlepool.com/nike-tiempo-legend-iv-gelb-diamond-schuhef">nike tiempo legend iv gelb diamond</a> <a href="http://www.kidbleach.com/kvinders-ralph-lauren-pony-brun-gr%C3%A5-poloz">kvinders ralph lauren pony brun gr氓</a> <a href="http://www.muchopiso.com/soccers-chaussures-jaune-rose-chaussuresa">soccers chaussures jaune rose</a> <a href="http://www.sheltertoken.com/kaufen-jordan-12-schwarz-and-wei%C3%9F-schuhee">kaufen jordan 12 schwarz and wei脽</a> <a href="http://www.bundlemurah.com/herren-asics-gel-hyper-33-schwarz-grau-scarpea">herren asics gel hyper 33 schwarz grau</a> <a href="http://www.gradualdesing.com/maschio-salomon-gcs-athletic-trail-argento-blu-kurpesf">maschio salomon gcs athletic trail argento blu</a>
lojandreia http://www.lojandreia.com/
enventsurvey
 enventsurvey 2019-02-14 15:31回复
#73
<a href="http://www.snifferwalk.com/air-jordan-imminent-yellow-pink-shoesh">air jordan imminent yellow pink</a> <a href="http://www.fishmackerel.com/air-jordan-eclipse-oro-cielo-azul-zapatosp">air jordan eclipse oro cielo azul</a> <a href="http://www.lauraenergy.com/nike-sportswear-nike-free-run-2-ext-zapatilla-de-deporte-negro-zapatosk">nike sportswear nike free run 2 ext zapatilla de deporte negro</a> <a href="http://www.magellantt.com/black-north-face-womens-rain-jacket-northfaceh">black north face womens rain jacket</a> <a href="http://www.sportablecrew.com/adidas-gazelle-boost-lila-rot-schuhej">adidas gazelle boost lila rot</a> <a href="http://www.digisolnc.com/kvinders-air-jordan-retro-7-hvid-gr%C3%B8n-skoh">kvinders air jordan retro 7 hvid gr酶n</a>
enventsurvey http://www.enventsurvey.com/
cosmicupcake
 cosmicupcake 2019-02-14 02:17回复
#72
<a href="http://www.kainjipark.com/womens-nike-huarache-utility-black-denmark-shoeso">womens nike huarache utility black denmark</a> <a href="http://www.lapthelakes.com/adidas-ultra-boost-clear-gr%C3%A5-restock-kurpesb">adidas ultra boost clear gr氓 restock</a> <a href="http://www.delmaroffice.com/jordans-3-zapatost">jordans 3</a> <a href="http://www.medieneinsatz.com/girls-high-converse-shoesz">girls high converse</a> <a href="http://www.linexcanton.com/hombres-nike-air-max-1-suede-schuheb">hombres nike air max 1 suede</a> <a href="http://www.saskostomy.com/detroit-tigers-pullover-hoodie-burgundy-red-black-nflu">detroit tigers pullover hoodie burgundy red black</a>
[url=http://www.cosmicupcake.com/]cosmicupcake[/url]
aloulavideos
 aloulavideos 2019-02-13 05:25回复
#71
<a href="http://www.placedumusee.com/himmelblau-ralph-lauren-shirt-polot">himmelblau ralph lauren shirt</a> <a href="http://www.prismbuffalo.com/nfl-mens-nike-new-york-giants-46-calvin-munson-royal-blue-name-number-pullover-hoodie-nflz">nfl mens nike new york giants 46 calvin munson royal blue name number pullover hoodie</a> <a href="http://www.surlion.com/salomon-xt-wings-3-kvinders-sko-gul-kurpesd">salomon xt wings 3 kvinders sko gul</a> <a href="http://www.tokodanaya.com/red-garrett-celek-limited-jersey-womens-88-nike-nfl-san-francisco-49ers-therma-long-sleeve-nflz">red garrett celek limited jersey womens 88 nike nfl san francisco 49ers therma long sleeve</a> <a href="http://www.damimiyy.com/nike-jordan-11-retro-r%C3%B8d-obuve">nike jordan 11 retro r酶d</a> <a href="http://www.dinerwareoc.com/adidas-superstar-naranja-stripes-scarped">adidas superstar naranja stripes</a>
aloulavideos http://www.aloulavideos.com/
allthatspool
 allthatspool 2019-02-12 10:19回复
#70
<a href="http://www.eworklife.com/boy-london-snapbacks-blue-hatb">boy london snapbacks blue</a> <a href="http://www.fullcountkbo.com/nike-shoes-2018-womens-grey-pink-runninge">nike shoes 2018 womens grey pink</a> <a href="http://www.shackofstones.com/air-jordan-retro-11-femmes-argent-hommesthe-verte-schuhea">air jordan retro 11 femmes argent hommesthe verte</a> <a href="http://www.tamworthbacon.com/jordan-retro-11-gr%C3%A5-mist-for-salg-scarpeb">jordan retro 11 gr氓 mist for salg</a> <a href="http://www.dvmengineers.com/nike-air-max-2019-green-uk-shoeso">nike air max 2019 green uk</a> <a href="http://www.questoffine.com/adidas-springblade-negro-and-blanco-kit-kurpesc">adidas springblade negro and blanco kit</a>
allthatspool http://www.allthatspool.com/
dkstekstil
 dkstekstil 2019-02-12 09:53回复
#69
<a href="http://www.ortzproducts.com/dam%C3%A4nner-nike-air-presto-gold-lila-schuhej">dam盲nner nike air presto gold lila</a> <a href="http://www.cooterscamera.com/pittsburgh-pirates-47-mlb-core-47-mvp-cap-hath">pittsburgh pirates 47 mlb core 47 mvp cap</a> <a href="http://www.marjalfun.com/femmes-nike-kobe-9-low-or-violet-chaussuresh">femmes nike kobe 9 low or violet</a> <a href="http://www.alecsblog.com/nike-free-run-3-bianca-verde-scarpeq">nike free run 3 bianca verde</a> <a href="http://www.troudumonde.com/free-og-14-br-purple-pink-shoesj">free og 14 br purple pink</a> <a href="http://www.smilesdrdavid.com/adidas-neo-lazy-gul-bl%C3%A5-skoi">adidas neo lazy gul bl氓</a>
dkstekstil http://www.dkstekstil.com/
miendiation
 miendiation 2019-02-11 00:55回复
#68
<a href="http://www.daddeaze.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.debracousins.com/nike-sb-dunk-high-lr-game-royal-skof">nike sb dunk high lr game royal</a> <a href="http://www.yankaripark.com/adidas-superstar-colors-yellow-skob">adidas superstar colors yellow</a> <a href="http://www.yicailottery.com/dallas-cowboys-white-knit-hat-hatd">dallas cowboys white knit hat</a> <a href="http://www.calebcraw.com/nike-free-5-mens-black-trainer-men-runningf">nike free 5 mens black trainer men</a> <a href="http://www.liquidputter.com/nike-hypervenom-phantom-gr%C3%B8n-sort-hvid-schuhea">nike hypervenom phantom gr酶n sort hvid</a>
miendiation http://www.miendiation.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸