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

清空信息
关闭评论
drmastella
 drmastella 约 12 小时前回复
#83
<a href="http://www.findatrans.com/nike-kd-8-appelsin-gr%C3%A5-skoh">nike kd 8 appelsin gr氓</a> <a href="http://www.isabellerigal.com/femmes-nike-kobe-9-low-vert-gris-chaussuresh">femmes nike kobe 9 low vert gris</a> <a href="http://www.esnafkocaeli.com/new-york-mets-new-era-mlb-white-batting-practice-39thirty-cap-hatl">new york mets new era mlb white batting practice 39thirty cap</a> <a href="http://www.dkdjabar.com/nike-air-max-hyperfuse-tout-noir-chaussuresh">nike air max hyperfuse tout noir</a> <a href="http://www.jamiecirillo.com/mujeres-nike-zoom-structure-18-oro-blanco-zapatosk">mujeres nike zoom structure 18 oro blanco</a> <a href="http://www.xpostshopx.com/air-jordan-retro-18-black-pink-shoesi">air jordan retro 18 black pink</a>
drmastella http://www.drmastella.com/
og air max 90
 og air max 90 约 13 小时前回复
#82
<a href="http://www.giantsfree.com/herre-nike-free-5.0-v2-r%C3%B8d-gul-kurpesb">herre nike free 5.0 v2 r酶d gul</a> <a href="http://www.zalinki.com/ray-ban-aviator-matte-gold-blue-mirror-sunglassesr">ray ban aviator matte gold blue mirror</a> <a href="http://www.embarquelibre.com/game-ray-rice-jersey-baltimore-ravens-champions-27-black-nflb">game ray rice jersey baltimore ravens champions 27 black</a> <a href="http://www.theamaazing.com/all-nike-hyperdunk-shoes-skot">all nike hyperdunk shoes</a> <a href="http://www.prospectgain.com/nike-roshe-run-dark-grey-one-woman-trainerse">nike roshe run dark grey one woman</a> <a href="http://www.tommorning.com/adidas-tubular-runner-gr%C3%A5-guld-value-chaussuresa">adidas tubular runner gr氓 guld value</a>
[url=http://www.lavoroweb.com/og-air-max-90-zapatosu]og air max 90[/url]
waughjiujitsu
 waughjiujitsu 2019-02-15 20:39回复
#81
<a href="http://www.fitwizhawaii.com/nike-huarache-ultra-cachi-zero-kurpesf">nike huarache ultra cachi zero</a> <a href="http://www.grafiscar.com/nike-kobe-7-hvit-himmelen-bl%C3%A5-schuheg">nike kobe 7 hvit himmelen bl氓</a> <a href="http://www.michaelclear.com/nike-kobe-10-grau-silber-wei%C3%9F-schwarz-pants-schuheb">nike kobe 10 grau silber wei脽 schwarz pants</a> <a href="http://www.mousetoyou.com/nike-mercurial-vapor-venta-qld-chaussuresd">nike mercurial vapor venta qld</a> <a href="http://www.apocreative.com/kd-7-tout-star-butyg">kd 7 tout star</a> <a href="http://www.lojandreia.com/reebok-royal-ec-ride-azul-blanco-scarpea">reebok royal ec ride azul blanco</a>
waughjiujitsu http://www.waughjiujitsu.com/
industrialegy
 industrialegy 2019-02-14 23:48回复
#80
<a href="http://www.colintilley.com/air-jordan-retro-4-dam%C3%A4nner-schwarz-rosa-schuhej">air jordan retro 4 dam盲nner schwarz rosa</a> <a href="http://www.xthbgc.com/kvinders-nike-air-max-thea-gr%C3%B8n-bl%C3%A5-skoh">kvinders nike air max thea gr酶n bl氓</a> <a href="http://www.iberishop.com/air-jordan-retro-12-argent-rouge-chaussuresh">air jordan retro 12 argent rouge</a> <a href="http://www.karmacanix.com/houston-astros-47-mlb-kelly-white-47-clean-up-cap-hatl">houston astros 47 mlb kelly white 47 clean up cap</a> <a href="http://www.tobepartridge.com/hommes-nike-air-max-tailwind-6-oranger-bleu-chaussuresh">hommes nike air max tailwind 6 oranger bleu</a> <a href="http://www.shopdunks.com/mujeres-asics-gel-lyte-5-oro-amarillo-zapatosp">mujeres asics gel lyte 5 oro amarillo</a>
industrialegy http://www.industrialegy.com/
laketreepress
 laketreepress 2019-02-12 12:26回复
#79
<a href="http://www.cnovas.com/florida-state-seminoles-zephyr-ncaa-black-white-stretch-cap-hatl">florida state seminoles zephyr ncaa black white stretch cap</a> <a href="http://www.omnicitycorp.com/nike-air-max-90-em-argent-bleu-ciel-chaussuresh">nike air max 90 em argent bleu ciel</a> <a href="http://www.cmcheechalk.com/hombres-nike-air-huarache-nm-azul-rosado-zapatosk">hombres nike air huarache nm azul rosado</a> <a href="http://www.armandopaz.com/womens-asics-gel-kayano-20-orange-shoesi">womens asics gel kayano 20 orange</a> <a href="http://www.alrightdesign.com/nike-zoom-alle-out-wei%C3%9F-silber-schuhei">nike zoom alle out wei脽 silber</a> <a href="http://www.parksindust.com/mujeres-nike-free-run-3-rojo-rosado-zapatosp">mujeres nike free run 3 rojo rosado</a>
laketreepress http://www.laketreepress.com/
danaperth
 danaperth 2019-02-11 05:10回复
#78
<a href="http://www.rightreaxion.com/nike-pegasus-32-bl%C3%A5-for-salg-schuhee">nike pegasus 32 bl氓 for salg</a> <a href="http://www.visasdecanada.com/air-jordan-18-arancia-oro-scarpec">air jordan 18 arancia oro</a> <a href="http://www.billknorr.com/maple-leafs-34-auston-matthews-blue-sawyer-hooded-sweatshirt-1918-arenas-throwback-stitched-nhl-jersey-nflw">maple leafs 34 auston matthews blue sawyer hooded sweatshirt 1918 arenas throwback stitched nhl jersey</a> <a href="http://www.brentography.com/mens-customized-elite-jersey-white-nike-nfl-san-francisco-49ers-super-bowl-xlvii-road-nflz">mens customized elite jersey white nike nfl san francisco 49ers super bowl xlvii road</a> <a href="http://www.dulcemusa.com/nike-kobe-12-verde-grigio-kurpesa">nike kobe 12 verde grigio</a> <a href="http://www.hirepeyton.com/nike-air-force-1-low-lv8-rot-python-butyg">nike air force 1 low lv8 rot python</a>
danaperth http://www.danaperth.com/
miendiation
 miendiation 2019-02-10 20:37回复
#77
<a href="http://www.daddeaze.com/nike-free-3.0-v4-blanc-tiffany-bleu-schuhea">nike free 3.0 v4 blanc tiffany bleu</a> <a href="http://www.debracousins.com/mennns-nike-shox-current-gul-oransje-scarpeb">mennns nike shox current gul oransje</a> <a href="http://www.yankaripark.com/womens-nike-huarache-utility-black-denmark-shoeso">womens nike huarache utility black denmark</a> <a href="http://www.yicailottery.com/jordan-retro-6-sort-infrar%C3%B8d-toddler-kurpesb">jordan retro 6 sort infrar酶d toddler</a> <a href="http://www.calebcraw.com/womens-new-balance-gym-clothes-zapatost">womens new balance gym clothes</a> <a href="http://www.liquidputter.com/girls-high-converse-shoesz">girls high converse</a>
miendiation http://www.miendiation.com/
drmastella
 drmastella 2019-02-09 09:56回复
#76
<a href="http://www.egyptmaritime.com/nike-zoom-ascention-rose-rouge-chaussuresk">nike zoom ascention rose rouge</a> <a href="http://www.erstube.com/north-face-light-waterproof-jacket-northfaceh">north face light waterproof jacket</a> <a href="http://www.thecardplayer.com/air-jordan-after-game-schwarz-rot-schuhel">air jordan after game schwarz rot</a> <a href="http://www.theweedaddict.com/hommes-nike-air-presto-gris-noir-chaussuresq">hommes nike air presto gris noir</a> <a href="http://www.thecampingman.com/nike-kobe-icon-cielo-azul-zapatosl">nike kobe icon cielo azul</a> <a href="http://www.otuzbircek.com/nike-air-presto-lilla-gr%C3%A5-skoj">nike air presto lilla gr氓</a>
drmastella http://www.drmastella.com/
saleuggboot
 saleuggboot 2019-02-08 12:30回复
#75
<a href="http://www.shiftcampus.com/kvinders-asics-gel-noosa-tri-8-s%C3%B8lv-sort-skoh">kvinders asics gel noosa tri 8 s酶lv sort</a> <a href="http://www.fiestanetwork.com/nike-air-max-97-femmes-rouge-argent-chaussuresh">nike air max 97 femmes rouge argent</a> <a href="http://www.sunbeltsaves.com/brixton-busker-cap-hatl">brixton busker cap</a> <a href="http://www.drmastella.com/femmes-nike-kyrie-2-bleu-rouge-chaussuresh">femmes nike kyrie 2 bleu rouge</a> <a href="http://www.khzrubber.com/mujeres-nike-blazer-oro-naranja-zapatosk">mujeres nike blazer oro naranja</a> <a href="http://www.jkdeskisehir.com/womens-air-jordan-retro-2-yellow-blue-shoesi">womens air jordan retro 2 yellow blue</a>
saleuggboot http://www.saleuggboot.com/
lifeonfilms
 lifeonfilms 2019-02-06 23:05回复
#74
<a href="http://www.shiftcampus.com/womens-nike-air-max-tailwind-7-grey-blue-shoesj">womens nike air max tailwind 7 grey blue</a> <a href="http://www.fiestanetwork.com/herre-asics-asics-gel-kayano-20-lilla-r%C3%B8d-skop">herre asics asics gel kayano 20 lilla r酶d</a> <a href="http://www.sunbeltsaves.com/adidas-neo-lazy-oransje-obuvk">adidas neo lazy oransje</a> <a href="http://www.drmastella.com/womens-air-jordan-retro-1-grey-black-shoesi">womens air jordan retro 1 grey black</a> <a href="http://www.khzrubber.com/kvinders-nike-roshe-run-blomstret-lyser%C3%B8d-gul-skoj">kvinders nike roshe run blomstret lyser酶d gul</a> <a href="http://www.jkdeskisehir.com/nike-lunarglide-6-mennns-l%C3%B8ping-sko-svart-obuvi">nike lunarglide 6 mennns l酶ping sko svart</a>
lifeonfilms http://www.lifeonfilms.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸