织梦CMS 评论输入QQ号码显示QQ秀的办法

发布时间:2021-10-12来源:未知 编辑:未知

广告位置(首页一通--图文)

-->在默认模板进行小改动修改3个文件就好第一个文件:templets/default/ajaxfeedback.htm第一打开ajaxfeedback.htm在44行把echo '用户名 改为 cho '输入QQ号码则能显示你的QQ秀:把echo '密码:<input name="pwd" type="password" size="16" class="ipt-txt" />';删掉<input type="checkbox" name="notuser" id="dcmp-submit-guest" /><label for="dcmp-submit-guest" />匿名? </label> 删掉在107行找到if{alert;return;}在下面的加上下面的代码(判断输入是否QQ号)var re = new RegExp;if ==null){ alert;document.feedback.username.focus;return false;}找到if nnotuser = '1';改为if validate = '1';第二个文件:plus/feedback_ajax.php找到<div class='decmt-title'><span class='moodico'><img src='<?php echo $cfg_templeturl; ?>/images/mood/ico-mood-<?php echo $face; ?>.gif'/></span><span class='username'><a href='<?php echo $spaceurl; ?>'><?php echo $username; ?></a></span><span class='date'><?php echo GetDateMk; ?></span><span>发表</span></div>改为<div class='decmt-title'><span class='moodico'><img src='<?php echo $cfg_templeturl; ?>/images/<?php echo $bgimg; ?>' alt='<?php echo $ftypetitle; ?>' /></span>腾讯QQ用户:<a href='<?php echo $spaceurl; ?>'><?php echo $username; ?></a><span>发表于</span><?php echo GetDateMk; ?></div>找到<div class='decmt-content'><?php echo $msg; ?><img src='<?php echo $cfg_templeturl; ?>/images/<?php echo $bgimg; ?>' alt='<?php echo $ftypetitle; ?>' /></div>改为<div class='decmt-content'><div id="qqxiu"><img title=<?php echo $username; ?>的QQ秀 src=http://qqshow-user.tencent.com/<?php echo $username; ?>/11/00/></div><div id="liuyan"><?php echo $msg; ?> <img src='<?php echo $cfg_templeturl; ?>/images/mood/ico-mood-<?php echo $face; ?>.gif'/></div>第三个文件:templets/style/page.css在里面添加#qqxiu{float:left;padding:5px 20px;}#liuyan{margin:5px 20px 5px 0px;padding:5px;border:1px dashed #ccc;width:400px;height:103px;float:right;}