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

清空信息
关闭评论
bgaddiict
 bgaddiict 约 21 小时前回复
#172
<a href="http://www.bgaddiict.com/arizona-cardinals-hat-amazon-hath">arizona cardinals hat amazon</a> <a href="http://www.deriogolf.com/nike-free-flyknit-4.0-hombres-azul-verde-plata-zapatosl">nike free flyknit 4.0 hombres azul verde plata</a> <a href="http://www.poluscompany.com/nike-roshe-run-green-shoesk">nike roshe run green</a> <a href="http://www.pariswebjob.com/nike-air-max-1-menn-charcoal-hvit-obuvi">nike air max 1 menn charcoal hvit</a> <a href="http://www.dakvideo.com/air-jordan-cp3-ix-gr%C3%A5-mint-gr%C3%B8nn-obuvk">air jordan cp3 ix gr氓 mint gr酶nn</a> <a href="http://www.freshkeema.com/nike-flyknit-lunar-ii-2-kvinner-rose-r%C3%B8d-hvit-obuvi">nike flyknit lunar ii 2 kvinner rose r酶d hvit</a>
bgaddiict http://www.bgaddiict.com/
breconpharm
 breconpharm 2019-04-19 08:13回复
#171
<a href="http://www.champste.com/white-atlanta-falcons-snapback-hath">white atlanta falcons snapback</a> <a href="http://www.rollaname.com/nike-air-max-95-armada-azul-hombres-zapatosl">nike air max 95 armada azul hombres</a> <a href="http://www.sfcigar.com/nike-huarache-purple-black-pink-purple-shoesk">nike huarache purple black pink purple</a> <a href="http://www.slotoyunpro.com/nike-air-max-90-kvinner-wholesalg-svart-hvit-obuvi">nike air max 90 kvinner wholesalg svart hvit</a> <a href="http://www.eistyles.com/adidas-svart-and-r%C3%B8d-soccer-cleats-obuvk">adidas svart and r酶d soccer cleats</a> <a href="http://www.filmoriental.com/adidas-svart-samba-sko-obuvi">adidas svart samba sko</a>
[url=http://www.breconpharm.com/]breconpharm[/url]
clubephytus
 clubephytus 2019-04-19 07:30回复
#170
<a href="http://www.profancyshop.com/nike-lebron-9-elite-white-shoesh">nike lebron 9 elite white</a> <a href="http://www.lmcgroep.com/mujeres-nike-flyknit-roshe-run-todas-blanco-zapatosp">mujeres nike flyknit roshe run todas blanco</a> <a href="http://www.nowaitnails.com/yeezy-boost-550-rosado-zapatosk">yeezy boost 550 rosado</a> <a href="http://www.xmrujo.com/the-north-face-fleece-hoodie-northfaceh">the north face fleece hoodie</a> <a href="http://www.sevenguard.com/dam%C3%A4nner-air-jordan-retro-13-lila-orangen-schuhej">dam盲nner air jordan retro 13 lila orangen</a> <a href="http://www.escortsue.com/nike-air-max-1-kvinders-r%C3%B8d-s%C3%B8lv-skoh">nike air max 1 kvinders r酶d s酶lv</a>
clubephytus http://www.clubephytus.com/
drmastella
 drmastella 2019-04-18 07:08回复
#169
<a href="http://www.cardiachits.com/nike-soccers-scarpe-cielo-blu-nero-scarpej">nike soccers scarpe cielo blu nero</a> <a href="http://www.zestchannel.com/mens-nike-air-max-tailwind-7-yellow-white-shoesh">mens nike air max tailwind 7 yellow white</a> <a href="http://www.eczacinim.com/hombres-air-jordan-11-gris-zapatosk">hombres air jordan 11 gris</a> <a href="http://www.chilangorails.com/nike-air-max-90-carved-naranja-blanco-zapatosp">nike air max 90 carved naranja blanco</a> <a href="http://www.mariusen.com/the-north-face-womens-rain-jacket-on-sale-northfaceh">the north face womens rain jacket on sale</a> <a href="http://www.brittonoilco.com/air-jordan-retro-12-wei%C3%9F-brot-schuhej">air jordan retro 12 wei脽 brot</a>
drmastella http://www.drmastella.com/
jamiecirillo
 jamiecirillo 2019-04-17 20:52回复
#168
<a href="http://www.cnovas.com/nike-kobe-9-low-femminile-argento-gituttio-scarpel">nike kobe 9 low femminile argento gituttio</a> <a href="http://www.omnicitycorp.com/nike-air-max-hyperposite-red-black-shoesj">nike air max hyperposite red black</a> <a href="http://www.cmcheechalk.com/nike-lunarglide-6-kvinders-guld-appelsin-skok">nike lunarglide 6 kvinders guld appelsin</a> <a href="http://www.armandopaz.com/nike-air-max-gray-svart-hvit-obuvp">nike air max gray svart hvit</a> <a href="http://www.alrightdesign.com/nike-kd-trey-5-gold-grey-shoesi">nike kd trey 5 gold grey</a> <a href="http://www.parksindust.com/air-jordan-retro-6-himmelbl%C3%A5-guld-skoj">air jordan retro 6 himmelbl氓 guld</a>
jamiecirillo http://www.jamiecirillo.com/
dannyishere
 dannyishere 2019-04-17 16:05回复
#167
<a href="http://www.kanseisc.com/nike-dunk-sb-high-rot-schuhej">nike dunk sb high rot</a> <a href="http://www.pragaoviedo.com/oakland-raiders-new-era-nfl-team-basic-low-profile-59fifty-cap-hath">oakland raiders new era nfl team basic low profile 59fifty cap</a> <a href="http://www.turamodenovia.com/nike-roshe-run-hommes-high-noir-argent-bleu-chaussuresh">nike roshe run hommes high noir argent bleu</a> <a href="http://www.redfiveonline.com/nike-mercurical-victory-vi-ic-gr%C3%BCn-braun-schuheh">nike mercurical victory vi ic gr眉n braun</a> <a href="http://www.hoangkang.com/converse-white-leather-trainers-shoesk">converse white leather trainers</a> <a href="http://www.valaseif.com/nike-free-run-2-sort-reflective-skoj">nike free run 2 sort reflective</a>
dannyishere http://www.dannyishere.com/
sporbahispro
 sporbahispro 2019-04-17 04:27回复
#166
<a href="http://www.cherylblogs.com/navy-blue-and-pink-polo-shirt-poloh">navy blue and pink polo shirt</a> <a href="http://www.livefreshpbc.com/nike-air-huarache-ultra-grey-mens-shoesi">nike air huarache ultra grey mens</a> <a href="http://www.bacaiptek.com/air-jordan-retro-5-low-nero-rosso-kite-scarpej">air jordan retro 5 low nero rosso kite</a> <a href="http://www.socabets.com/herren-supra-tk-society-wei%C3%9F-blau-schuhej">herren supra tk society wei脽 blau</a> <a href="http://www.sgeventportal.com/brooklyn-nets-mitchell--ness-nba-cropped-satin-snapback-cap-hath">brooklyn nets mitchell  ness nba cropped satin snapback cap</a> <a href="http://www.isimsizsevda.com/nike-huarache-safari-noir-and-blanc-chaussuresh">nike huarache safari noir and blanc</a>
sporbahispro http://www.sporbahispro.com/
prohaarklinik
 prohaarklinik 2019-04-16 23:43回复
#165
<a href="http://www.laketreepress.com/nike-air-max-2017-naranja-gris-zapatosk">nike air max 2017 naranja gris</a> <a href="http://www.prohaarklinik.com/nike-kd-9-mintgr%C3%B8n-skoq">nike kd 9 mintgr酶n</a> <a href="http://www.bonfanticare.com/nike-zoom-ascention-arancia-rosa-scarpeh">nike zoom ascention arancia rosa</a> <a href="http://www.antoniopagni.com/air-jordan-retro-14-grigio-arancia-scarpei">air jordan retro 14 grigio arancia</a> <a href="http://www.wcshosting.com/nike-kobe-icon-orangen-rot-schuheh">nike kobe icon orangen rot</a> <a href="http://www.biddingstream.com/mens-asics-gel-noosa-tri-8-black-shoesq">mens asics gel noosa tri 8 black</a>
prohaarklinik http://www.prohaarklinik.com/
volcanosmap
 volcanosmap 2019-04-16 20:00回复
#164
<a href="http://www.smfamilylaw.com/nike-mercurial-vapor-10-cristiano-ronaldo-special-edition-boot-white-black-shoesk">nike mercurial vapor 10 cristiano ronaldo special edition boot white black</a> <a href="http://www.frigoarreda.com/adidas-gazelle-sort-and-gr%C3%A5-skol">adidas gazelle sort and gr氓</a> <a href="http://www.veripc.com/kvinners-adidas-boost-rosa-obuvk">kvinners adidas boost rosa</a> <a href="http://www.chrisglahn.com/nike-air-pegasus-83-grigio-marina-militare-scarpei">nike air pegasus 83 grigio marina militare</a> <a href="http://www.itsjustpeople.com/nike-cortez-mujeres-rosado-zapatosh">nike cortez mujeres rosado</a> <a href="http://www.motorzgirl.com/nike-cortez-nylon-lyser%C3%B8d-skok">nike cortez nylon lyser酶d</a>
volcanosmap http://www.volcanosmap.com/
sharonbrown
 sharonbrown 2019-04-16 18:22回复
#163
<a href="http://www.eastyorkvet.net/nike-darwin-sko-gr%C3%B8n-queen-schuhee">nike darwin sko gr酶n queen</a> <a href="http://www.ebonyeyes.net/nike-lunarglide-8-orange-lilla-scarpeb">nike lunarglide 8 orange lilla</a> <a href="http://www.eclinxplus.net/nike-lunarglide-8-sko-for-salg-schuhed">nike lunarglide 8 sko for salg</a> <a href="http://www.ectvnews.net/nike-zoom-structure-18-kvinders-gr%C3%B8n-sort-butyf">nike zoom structure 18 kvinders gr酶n sort</a> <a href="http://www.em-dmkm.net/nike-sock-dart-sp-silber-orange-obuve">nike sock dart sp silber orange</a> <a href="http://www.emiscape.net/adidas-springblade-for-salg-xenia-obuvg">adidas springblade for salg xenia</a>
sharonbrown http://www.sharonbrown.net/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸