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

迷津渡口

越感到迷惑 越接近真理

emlog评论添加表情方法

评论添加表情,丰富和方便访客的表达,提高访客的回复欲望,添加方法:

首先到小指的百度云盘下载表情和js文件:表情下载

将face.zip上传到模板的images文件夹下,解压


以默认模板为例: 在 module.php 找到发表评论表单函数:

<?php
//blog:发表评论表单
function blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark){
	if($allow_remark == 'y'): ?>
	<div id="comment-place">
	<div class="comment-post" id="comment-post">
		<div class="cancel-reply" id="cancel-reply" style="display:none"><a href="javascript:void(0);" onclick="cancelReply()">取消回复</a></div>
		<p class="comment-header"><b>发表评论:</b><a name="respond"></a></p>
		<form method="post" name="commentform" action="<?php echo BLOG_URL; ?>index.php?action=addcom" id="commentform">
			<input type="hidden" name="gid" value="<?php echo $logid; ?>" />
			<?php if(ROLE == ROLE_VISITOR): ?>
			<p>
				<input type="text" name="comname" maxlength="49" value="<?php echo $ckname; ?>" size="22" tabindex="1">
				<label for="author"><small>昵称</small></label>
			</p>
			<p>
				<input type="text" name="commail"  maxlength="128"  value="<?php echo $ckmail; ?>" size="22" tabindex="2">
				<label for="email"><small>邮件地址 (选填)</small></label>
			</p>
			<p>
				<input type="text" name="comurl" maxlength="128"  value="<?php echo $ckurl; ?>" size="22" tabindex="3">
				<label for="url"><small>个人主页 (选填)</small></label>
			</p>
			<?php endif; ?>
			<p><textarea name="comment" id="comment" rows="10" tabindex="4"></textarea></p>
			<p><?php echo $verifyCode; ?> <input type="submit" id="comment_submit" value="发表评论" tabindex="6" /></p>
			<input type="hidden" name="pid" id="comment-pid" value="0" size="22" tabindex="1"/>
		</form>
	</div>
	</div>
	<?php endif; ?>
<?php }?>

在倒数第二行<?php endif; ?>后面加入如下代码:

<script src="<?php echo BLOG_URL; ?>/include/lib/js/common_tpl.js" type="text/javascript"></script>
<script type="text/javascript">var loaded = false, blog_url = "<?php echo TEMPLATE_URL; ?>";$(function(){$("textarea[name=comment]").bind('focus click',function() {if (!loaded) {$.getScript(blog_url + "images/face/face.js");loaded = true;}});});</script>

保存后在footer.php最后加入如下代码:

<?php $output = ob_get_clean();$output = preg_replace("|\[:([^#]+)#(\d+):\]|i",'<img border="0" src="'.TEMPLATE_URL.'images/face/$1/$2.gif" />',$output);ob_start();echo $output;?>

完成后刷新即可。本方法来自互联网,仅在emlog5.3.1版本测试过~

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

清空信息
关闭评论
bursagti
 bursagti 2019-05-22 06:07回复
#243
<a href="http://www.deerwedding.com/nike-free-run-2-frau-rot-schwarz-schuhek">nike free run 2 frau rot schwarz</a> <a href="http://www.kofaxreseller.com/salomon-gcs-athletic-trail-p%C3%BArpura-scarpeg">salomon gcs athletic trail p煤rpura</a> <a href="http://www.susieqmovie.com/wmns-nike-free-balanza-oro-amarillo-kurpesb">wmns nike free balanza oro amarillo</a> <a href="http://www.woistmeinhund.com/todas-blanco-air-jordan-future-low-zapatosk">todas blanco air jordan future low</a> <a href="http://www.jennyreinio.com/boys-preschool-nike-roshe-one-print-casual-schuhe-runningc">boys preschool nike roshe one print casual schuhe</a> <a href="http://www.ejectdicks.com/adidas-ultra-boost-olive-verde-zapatosj">adidas ultra boost olive verde</a>
bursagti http://www.bursagti.com/
alhotelpau
 alhotelpau 2019-05-22 01:53回复
#242
<a href="http://www.hkyahao.com/odell-beckham-youth-jersey-white-nflh">odell beckham youth jersey white</a> <a href="http://www.innordicau.com/nike-huarache-blanco-pure-platinum-shoese">nike huarache blanco pure platinum</a> <a href="http://www.rahdanesh.com/lyst-polo-ralph-lauren-oxford-check-shirt-in-red-for-men-poloh">lyst polo ralph lauren oxford check shirt in red for men</a> <a href="http://www.myprontocard.com/nike-sock-dart-sp-dam%C3%A4nner-wei%C3%9F-foota">nike sock dart sp dam盲nner wei脽</a> <a href="http://www.eldiadeitalia.com/air-jordan-7-retro-j2k-for-verkauf-craigslist-runninga">air jordan 7 retro j2k for verkauf craigslist</a> <a href="http://www.lapakhoki.com/nike-air-huarache-military-verde-arrow-scarpef">nike air huarache military verde arrow</a>
alhotelpau http://www.alhotelpau.com/
attivopizza
 attivopizza 2019-05-19 16:28回复
#241
<a href="http://www.dbievents.com/m%C3%A4nner-salomon-s-lab-sense-2-marine-royal-blau-schuheh">m盲nner salomon s lab sense 2 marine royal blau</a> <a href="http://www.ilankocaeli.com/kyrie-1-deceptive-red-shoesk">kyrie 1 deceptive red</a> <a href="http://www.msignworx.com/michael-kors-cindy-satchel-peanut-mkh">michael kors cindy satchel peanut</a> <a href="http://www.dianegrams.com/menn-nike-kyrie-1-svart-gr%C3%B8nn-oransje-obuvi">menn nike kyrie 1 svart gr酶nn oransje</a> <a href="http://www.jobstodayng.com/adidas-stan-smith-gituttio-scarpek">adidas stan smith gituttio</a> <a href="http://www.hardcoreboris.com/pink-adidas-climacool-shoesi">pink adidas climacool</a>
attivopizza http://www.attivopizza.com/
rawbiofast
 rawbiofast 2019-05-19 15:49回复
#240
<a href="http://www.jupickuplines.com/nike-kobe-6-rouge-oranger-chaussuresk">nike kobe 6 rouge oranger</a> <a href="http://www.saleuggboot.com/north-face-denali-womens-small-northfaceh">north face denali womens small</a> <a href="http://www.fragmanizletv.com/nike-air-max-bw-gr%C3%BCn-orangen-schuhel">nike air max bw gr眉n orangen</a> <a href="http://www.swisshomeas.com/femmes-nike-air-max-90-vt-gris-noir-chaussuresq">femmes nike air max 90 vt gris noir</a> <a href="http://www.marinersdiary.com/ua-micro-g-torch-verde-amarillo-zapatosl">ua micro g torch verde amarillo</a> <a href="http://www.bourseasie.com/herre-nike-flyknit-lunar-2-bl%C3%A5-gr%C3%A5-skoj">herre nike flyknit lunar 2 bl氓 gr氓</a>
rawbiofast http://www.rawbiofast.com/
foneandlone
 foneandlone 2019-05-19 11:54回复
#239
<a href="http://www.teamdalarna.com/dam%C3%A4nner-asics-gel-noosa-tri-10-himmelblau-grau-schuhej">dam盲nner asics gel noosa tri 10 himmelblau grau</a> <a href="http://www.syairshamyoun.com/herre-nike-air-max-tailwind-6-gr%C3%A5-appelsin-skoh">herre nike air max tailwind 6 gr氓 appelsin</a> <a href="http://www.fizalisfresh.com/femmes-nike-air-huarache-nm-noir-or-chaussuresh">femmes nike air huarache nm noir or</a> <a href="http://www.fsscas.com/oklahoma-city-thunder-new-era-nba-color-prism-pack-59fifty-cap-hatl">oklahoma city thunder new era nba color prism pack 59fifty cap</a> <a href="http://www.imagimp.com/adidas-springblade-pro-gris-rose-chaussuresh">adidas springblade pro gris rose</a> <a href="http://www.burmamaritime.com/air-jordan-retro-29-hombresta-verde-p%C3%BArpura-zapatosp">air jordan retro 29 hombresta verde p煤rpura</a>
foneandlone http://www.foneandlone.com/
cestreaming
 cestreaming 2019-05-18 20:15回复
#238
<a href="http://www.lagunawoodsre.com/air-jordan-retro-3-hvid-royal-bl%C3%A5-skol">air jordan retro 3 hvid royal bl氓</a> <a href="http://www.highbacklink.com/polo-ralph-lauren-white-hoodie-poloh">polo ralph lauren white hoodie</a> <a href="http://www.vuurogen.com/womens-nike-kyrie-1-yellow-white-shoesi">womens nike kyrie 1 yellow white</a> <a href="http://www.rsvppersonnel.com/womens-nike-shox-deliver-white-pink-shoesp">womens nike shox deliver white pink</a> <a href="http://www.shonema.com/kvinners-nike-dunk-lilla-svart-obuvl">kvinners nike dunk lilla svart</a> <a href="http://www.enventsurvey.com/nike-huarache-utility-gr%C3%A5-sort-skoj">nike huarache utility gr氓 sort</a>
cestreaming http://www.cestreaming.com/
paineesq
 paineesq 2019-05-18 12:39回复
#237
<a href="http://www.laketreepress.com/michael-kors-mens-leather-wallet-mkh">michael kors mens leather wallet</a> <a href="http://www.prohaarklinik.com/air-jordan-retro-7-kvinners-gr%C3%B8nn-r%C3%B8d-obuvi">air jordan retro 7 kvinners gr酶nn r酶d</a> <a href="http://www.bonfanticare.com/air-max-thea-in-bianca-scarpej">air max thea in bianca</a> <a href="http://www.antoniopagni.com/nike-huarache-utility-black-sky-blue-shoesh">nike huarache utility black sky blue</a> <a href="http://www.wcshosting.com/mujeres-nike-flyknit-lunar-1-blanco-naranja-zapatosk">mujeres nike flyknit lunar 1 blanco naranja</a> <a href="http://www.biddingstream.com/air-jordan-retro-3-rosado-azul-zapatosp">air jordan retro 3 rosado azul</a>
paineesq http://www.paineesq.com/
yeliseeva
 yeliseeva 2019-05-18 12:16回复
#236
<a href="http://www.sugarforspice.com/adidas-springblade-solyce-nero-bianca-scarpel">adidas springblade solyce nero bianca</a> <a href="http://www.mybancorphsa.com/nike-kobe-8-black-yellow-shoesj">nike kobe 8 black yellow</a> <a href="http://www.scopatore.com/michael-kors-selma-grey-large-tote-bag-mkh">michael kors selma grey large tote bag</a> <a href="http://www.galacticlogos.com/nike-lebron-12-all-bl%C3%A5-obuvi">nike lebron 12 all bl氓</a> <a href="http://www.ispardmore.com/nike-zoom-vomero-femminile-grigio-argento-scarpej">nike zoom vomero femminile grigio argento</a> <a href="http://www.radioramabc.com/air-jordan-eclipse-pink-purple-shoesh">air jordan eclipse pink purple</a>
[url=http://www.yeliseeva.com/]yeliseeva[/url]
shopteamcubs
 shopteamcubs 2019-05-18 12:12回复
#235
<a href="http://www.ptsbarwinslow.com/ray-ban-rb3044-aviator-sunglasses-black-frame-crystal-deep-green-sunglassesh">ray ban rb3044 aviator sunglasses black frame crystal deep green</a> <a href="http://www.sarhallafk.com/nike-lunarcharge-bn-femmes-gris-blanc-chaussuresl">nike lunarcharge bn femmes gris blanc</a> <a href="http://www.philippikus.com/hommes-nike-air-max-90-or-noir-chaussuresl">hommes nike air max 90 or noir</a> <a href="http://www.pngoilgas.com/nike-internationalist-grau-and-wei%C3%9F-schuhej">nike internationalist grau and wei脽</a> <a href="http://www.goficarwash.com/nike-air-vapormax-plus-grau-schuhei">nike air vapormax plus grau</a> <a href="http://www.getairtijuana.com/adidas-superstar-vulc-adv-hvit-svart-sko-obuvj">adidas superstar vulc adv hvit svart sko</a>
shopteamcubs http://www.shopteamcubs.com/
coach bag bag
 coach bag bag 2019-05-18 12:09回复
#234
<a href="http://www.keleric.com/adidas-springblade-pro-himmelbl%C3%A5-lyser%C3%B8d-skoi">adidas springblade pro himmelbl氓 lyser酶d</a> <a href="http://www.jeffreya.com/nike-roshe-two-flyknit-viola-arancia-scarpeq">nike roshe two flyknit viola arancia</a> <a href="http://www.vuduchoan.com/nike-free-blue-orange-womens-shoesj">nike free blue orange womens</a> <a href="http://www.gmfamilylaw.com/michael-michael-kors-jet-set-travel-small-crossbody-mkh">michael michael kors jet set travel small crossbody</a> <a href="http://www.clubephytus.com/nike-air-max-90-kvinners-himmelen-bl%C3%A5-svart-obuvi">nike air max 90 kvinners himmelen bl氓 svart</a> <a href="http://www.findnewcoupon.com/nike-air-max-lunar-90-gituttio-bianca-scarpej">nike air max lunar 90 gituttio bianca</a>
coach bag bag http://www.riffsurfers.com/coach-bag-bag-coachh
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸