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

清空信息
关闭评论
marinersdiary
 marinersdiary 约 1 小时前回复
#188
<a href="http://www.keleric.com/air-jordan-retro-11-kvinners-oransje-himmelen-bl%C3%A5-obuvi">air jordan retro 11 kvinners oransje himmelen bl氓</a> <a href="http://www.jeffreya.com/nike-kd-7-kvinners-gr%C3%B8nn-obuvp">nike kd 7 kvinners gr酶nn</a> <a href="http://www.vuduchoan.com/mennns-air-max-90-em-hvit-gr%C3%A5-obuvi">mennns air max 90 em hvit gr氓</a> <a href="http://www.gmfamilylaw.com/adidas-porsche-typ-64-naranja-zapatosp">adidas porsche typ 64 naranja</a> <a href="http://www.clubephytus.com/blue-and-white-coach-handbags-coachh">blue and white coach handbags</a> <a href="http://www.findnewcoupon.com/nike-roshe-two-flyknit-grey-blue-shoesj">nike roshe two flyknit grey blue</a>
marinersdiary http://www.marinersdiary.com/
admitoneuk
 admitoneuk 约 2 小时前回复
#187
<a href="http://www.ankaraoyunevi.com/air-jordan-1-grigio-scarpek">air jordan 1 grigio</a> <a href="http://www.iotlsebring.com/nike-internationalist-green-silver-shoesi">nike internationalist green silver</a> <a href="http://www.joshsingleton.com/nike-air-max-classic-bw-negro-zapatosi">nike air max classic bw negro</a> <a href="http://www.amesecolombia.com/kvinders-lyser%C3%B8d-converse-low-tops-skoh">kvinders lyser酶d converse low tops</a> <a href="http://www.flatshotgame.com/air-jordan-retro-12-deep-royal-blu-scarpei">air jordan retro 12 deep royal blu</a> <a href="http://www.myrumpun.com/nike-air-max-torch-6-bianca-scarpej">nike air max torch 6 bianca</a>
admitoneuk http://www.admitoneuk.com/
stram bl氓 kjole
 stram bl氓 kjole 2019-04-19 07:46回复
#186
<a href="http://www.atalistan.com/league/yoga-online-k%c3%b8b-spar-25-70-find-udsalg-tilbud-billige">yoga online k酶b spar 25 70 find udsalg tilbud billige</a><a href="http://www.atalistan.com/literal/order-now-pelle-pelle-hat-icon-plate-curved-snapback-cap-woodland">order now pelle pelle hat icon plate curved snapback cap woodland</a><a href="http://www.atalistan.com/literally/hummel-fashion-mark-hue-uld">hummel fashion mark hue uld</a><a href="http://www.atalistan.com/lowest/adidas-tilbud-drenge-s%c3%a6t-heldragter">adidas tilbud drenge s忙t heldragter</a>
stram bl氓 kjole http://www.adamchubbock.com/explanation/stram-bl%c3%a5-kjole
orkansport
 orkansport 2019-04-17 16:17回复
#185
<a href="http://www.hitsturbines.com/air-jordan-retro-4.5-sort-bl%C3%A5-butya">air jordan retro 4.5 sort bl氓</a> <a href="http://www.jadamsrealtor.com/air-jordan-5-retro-schwarz-cool-grau-wei%C3%9F-quilt-obuvc">air jordan 5 retro schwarz cool grau wei脽 quilt</a> <a href="http://www.karenconti.com/asics-gel-quantum-360-verkauf-used-scarpea">asics gel quantum 360 verkauf used</a> <a href="http://www.cliffsears.com/nike-air-force-1-noir-patent-scarpee">nike air force 1 noir patent</a> <a href="http://www.rfsloan.com/kd-trey-5-fl%C3%A5den-bl%C3%A5-paint-obuvd">kd trey 5 fl氓den bl氓 paint</a> <a href="http://www.gfwholesalers.com/nike-huarache-rose-gull-for-salg-scarpea">nike huarache rose gull for salg</a>
orkansport http://www.orkansport.com/
bestoftumblr
 bestoftumblr 2019-04-17 03:28回复
#184
<a href="http://www.flushnhunt.com/nike-air-max-2017-bleu-ciel-rose-chaussuresh">nike air max 2017 bleu ciel rose</a> <a href="http://www.evelpa.com/nike-roshe-run-hombres-casual-zapatos-team-rojo-sail-zapatosp">nike roshe run hombres casual zapatos team rojo sail</a> <a href="http://www.taaliminfos.com/nike-kobe-9-low-womens-black-sky-blue-shoesi">nike kobe 9 low womens black sky blue</a> <a href="http://www.cacikvideo.com/nike-free-run-v2-alle-schwarz-schuhei">nike free run v2 alle schwarz</a> <a href="http://www.grossavind.com/adidas-superstar-blanco-naranja-zapatosk">adidas superstar blanco naranja</a> <a href="http://www.boltsfans.com/nike-shox-turbo-21-gr%C3%B8n-lyser%C3%B8d-skoi">nike shox turbo 21 gr酶n lyser酶d</a>
bestoftumblr http://www.bestoftumblr.com/
mobiigroups
 mobiigroups 2019-04-17 00:31回复
#183
<a href="http://www.ankaraoyunevi.com/nike-mercurialx-proximo-street-indoor-football-bl%C3%A5-svart-obuvi">nike mercurialx proximo street indoor football bl氓 svart</a> <a href="http://www.iotlsebring.com/hot-sale-nike-roshe-men-wool-skin-black-red-shoesj">hot sale nike roshe men wool skin black red</a> <a href="http://www.joshsingleton.com/air-jordan-retro-11-wine-velvet-heiress-shoesl">air jordan retro 11 wine velvet heiress</a> <a href="http://www.amesecolombia.com/polo-ralph-lauren-pony-tote-event-poloh">polo ralph lauren pony tote event</a> <a href="http://www.flatshotgame.com/converse-sort-mono-low-skok">converse sort mono low</a> <a href="http://www.myrumpun.com/herren-nike-kd-9-blau-schuheh">herren nike kd 9 blau</a>
mobiigroups http://www.mobiigroups.com/
dkstekstil
 dkstekstil 2019-04-16 18:14回复
#182
<a href="http://www.mandydugan.com/nike-lebron-12-low-black-grey-shoesi">nike lebron 12 low black grey</a> <a href="http://www.dxnkofe.com/kvinders-nike-lunarglide-7-lilla-gr%C3%A5-skoj">kvinders nike lunarglide 7 lilla gr氓</a> <a href="http://www.yurasmirnov.com/nike-kd-8-kvinners-rosa-gr%C3%A5-obuvi">nike kd 8 kvinners rosa gr氓</a> <a href="http://www.blovese.com/nike-lunarglide-7-kvinners-r%C3%B8d-himmelen-bl%C3%A5-obuvp">nike lunarglide 7 kvinners r酶d himmelen bl氓</a> <a href="http://www.ztsurfboards.com/air-jordan-retro-12-kvinners-hvit-himmelen-bl%C3%A5-obuvi">air jordan retro 12 kvinners hvit himmelen bl氓</a> <a href="http://www.visheshcap.com/nike-air-force-1-elite-qs-qs-blanco-chrome-zapatosp">nike air force 1 elite qs qs blanco chrome</a>
dkstekstil http://www.dkstekstil.com/
ferrepress
 ferrepress 2019-04-16 10:47回复
#181
<a href="http://www.imfunniest.com/ralph-lauren-grey-long-sleeve-shirt-poloh">ralph lauren grey long sleeve shirt</a> <a href="http://www.emissariesbc.com/m%C3%A6nd-salomon-gcs-athletic-trail-sort-r%C3%B8d-gr%C3%A5-skok">m忙nd salomon gcs athletic trail sort r酶d gr氓</a> <a href="http://www.partnersspa.com/air-jordan-retro-5-grau-word-schuheh">air jordan retro 5 grau word</a> <a href="http://www.antirealtor.com/adidas-porsche-design-iii-p5000-men-black-yellow-shoesk">adidas porsche design iii p5000 men black yellow</a> <a href="http://www.jkjuiceplus.com/adidas-soccers-sko-guld-gr%C3%A5-skol">adidas soccers sko guld gr氓</a> <a href="http://www.bkindvending.com/nike-cortez-nylon-kvinner-outlet-gr%C3%A5-hvit-svart-obuvk">nike cortez nylon kvinner outlet gr氓 hvit svart</a>
[url=http://www.ferrepress.com/]ferrepress[/url]
clubephytus
 clubephytus 2019-04-16 06:11回复
#180
<a href="http://www.sugarforspice.com/nike-blazer-oransje-s%C3%B8lv-obuvk">nike blazer oransje s酶lv</a> <a href="http://www.mybancorphsa.com/coach-holiday-logo-medium-khaki-satchels-coachh">coach holiday logo medium khaki satchels</a> <a href="http://www.scopatore.com/nike-air-max-tailwind-8-femminile-cielo-blu-bianca-scarpei">nike air max tailwind 8 femminile cielo blu bianca</a> <a href="http://www.galacticlogos.com/nike-air-force-1-camo-arancia-scarpeh">nike air force 1 camo arancia</a> <a href="http://www.ispardmore.com/kansas-city-royals-new-era-2018-mlb-all-star-game-39thirty-cap-hath">kansas city royals new era 2018 mlb all star game 39thirty cap</a> <a href="http://www.radioramabc.com/hommes-nike-sb-stefan-janoski-max-tout-noir-chaussuresh">hommes nike sb stefan janoski max tout noir</a>
clubephytus http://www.clubephytus.com/
julides
 julides 2019-04-15 22:12回复
#179
<a href="http://www.ankaraoyunevi.com/new-orleans-pelicans-47-nba-camfill-47-mvp-cap-hatj">new orleans pelicans 47 nba camfill 47 mvp cap</a> <a href="http://www.iotlsebring.com/nike-hyperdunk-light-blu-scarpej">nike hyperdunk light blu</a> <a href="http://www.joshsingleton.com/nike-zoom-hyperrev-2015-blau-schuhei">nike zoom hyperrev 2015 blau</a> <a href="http://www.amesecolombia.com/kvinders-nike-shox-deliver-sort-lyser%C3%B8d-skoh">kvinders nike shox deliver sort lyser酶d</a> <a href="http://www.flatshotgame.com/kevin-durant-new-jersey-nfli">kevin durant new jersey</a> <a href="http://www.myrumpun.com/nike-free-5.0-bl%C3%A5-and-hvit-obuvk">nike free 5.0 bl氓 and hvit</a>
julides http://www.julides.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸