Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发佈] “问候一下”V1.0 插件 - GBK 版本

[复制链接]
jersonzhow 发表于 2008-6-1 13:46:25 | 显示全部楼层
原帖由 ndg 于 2008-6-1 13:31 发表
问候显示的位置不好吧?
我找了半天才发现
应该显示在打招呼那里


看这个 https://discuz.dismall.com/thread-947145-1-1.html
回复

使用道具 举报

seadevil 发表于 2008-6-1 14:43:45 | 显示全部楼层
貌似不错
回复

使用道具 举报

coklo 发表于 2008-6-1 16:24:23 | 显示全部楼层
LZ的plug_greetings.htm文件多了几个</DIV>哦,这样会导致页面变形:
<!--{template header}-->

<div class="c_header a_header">
        <h1>送上问候给$tospace[username]!</h1>
</div>

<div class="tabs_header">
        <ul class="tabs">
                        <li id="tab1" class="active"><a href="javascript:showgreet(1)" onfocus="this.blur();">恶搞</a></li>
                        <li id="tab2"><a href="javascript:showgreet(2)" onfocus="this.blur();">美妙</a></li>
                        <li id="tab3"><a href="javascript:showgreet(3)" onfocus="this.blur();">节日</a></li>
                        <li id="tab4"><a href="javascript:showgreet(4)" onfocus="this.blur();">特别日子</a></li>
        </ul>
</div>

<form method="post" id="pokeform" name="pokeform" action="plug.php?plugname=greetings&op=$op&uid=$tospace[uid]">

<div class="c_form">
<h3>选一个:</h3>
<ul id="greatcat1" class="greetlist">
<li><input type="radio" name="greetid" id="greet1" value="1" /><label for="greet1"><img src="/plugs/image/greetings/icon_1.gif"> 给你尝尝拳头的味道!</label></li>
<li><input type="radio" name="greetid" id="greet2" value="2" /><label for="greet2"><img src="plugs/image/greetings/icon_2.gif"> 美女,笑一个嘛~</label></li>
<li><input type="radio" name="greetid" id="greet3" value="3" /><label for="greet3"><img src="plugs/image/greetings/icon_3.gif"> 靓女来也~</label></li>
<li><input type="radio" name="greetid" id="greet4" value="4" /><label for="greet4"><img src="plugs/image/greetings/icon_4.gif"> 拉拉你的衣角,骚扰一下~!</label></li>
<li><input type="radio" name="greetid" id="greet5" value="5" /><label for="greet5"><img src="plugs/image/greetings/icon_5.gif"> 在你的家里踩啊踩!</label></li>
<li><input type="radio" name="greetid" id="greet6" value="6" /><label for="greet6"><img src="plugs/image/greetings/icon_6.gif"> 我汗~!</label></li>
<li><input type="radio" name="greetid" id="greet7" value="7" /><label for="greet7"><img src="plugs/image/greetings/icon_7.gif"> 无视你的存在!</label></li>
<li><input type="radio" name="greetid" id="greet8" value="8" /><label for="greet8"><img src="plugs/image/greetings/icon_8.gif"> 踢你一脚!</label></li>
<li><input type="radio" name="greetid" id="greet9" value="9" /><label for="greet9"><img src="plugs/image/greetings/icon_9.gif"> 打抢钱包!</label></li>
<li><input type="radio" name="greetid" id="greet16" value="16" /><label for="greet16"><img src="plugs/image/greetings/icon_16.gif"> 给你一掌,接住!</label></li>
</ul>
<ul id="greatcat2" class="greetlist" style="display:none;">
<li><input type="radio" name="greetid" id="greet11" value="11" /><label for="greet11"><img src="plugs/image/greetings/icon_11.gif"> 抱抱~</label></li>
<li><input type="radio" name="greetid" id="greet12" value="12" /><label for="greet12"><img src="plugs/image/greetings/icon_12.gif"> 陪你去看流星雨!</label></li>
<li><input type="radio" name="greetid" id="greet13" value="13" /><label for="greet13"><img src="plugs/image/greetings/icon_13.gif"> 佩服,佩服!</label></li>
<li><input type="radio" name="greetid" id="greet14" value="14" /><label for="greet14"><img src="plugs/image/greetings/icon_14.gif"> 你这个朋友我交定了!</label></li>
<li><input type="radio" name="greetid" id="greet15" value="15" /><label for="greet15"><img src="plugs/image/greetings/icon_15.gif"> 送你一个Kiss~</label></li>
<li><input type="radio" name="greetid" id="greet17" value="17" /><label for="greet17"><img src="plugs/image/greetings/icon_17.gif"> 傻傻的一笑,嘿嘿!</label></li>
<li><input type="radio" name="greetid" id="greet18" value="18" /><label for="greet18"><img src="plugs/image/greetings/icon_18.gif"> 出来逛逛</label></li>
<li><input type="radio" name="greetid" id="greet19" value="19" /><label for="greet19"><img src="plugs/image/greetings/icon_19.gif"> 献上我的爱心</label></li>
<li><input type="radio" name="greetid" id="greet21" value="21" /><label for="greet21"><img src="plugs/image/greetings/icon_21.gif"> 祝你好运!</label></li>
<li><input type="radio" name="greetid" id="greet23" value="23" /><label for="greet23"><img src="plugs/image/greetings/icon_23.gif"> 但愿人长久,千里共婵娟</label></li>
<li><input type="radio" name="greetid" id="greet27" value="27" /><label for="greet27"><img src="plugs/image/greetings/icon_27.gif"> 包裹我所有的爱</label></li>
<li><input type="radio" name="greetid" id="greet28" value="28" /><label for="greet28"><img src="plugs/image/greetings/icon_28.gif"> Hi~,你好!</label></li>
</ul>
<ul id="greatcat3" class="greetlist" style="display:none;">
<li><input type="radio" name="greetid" id="greet26" value="26" /><label for="greet26"><img src="plugs/image/greetings/icon_26.gif"> 新年快乐!</label></li>
<li><input type="radio" name="greetid" id="greet22" value="22" /><label for="greet22"><img src="plugs/image/greetings/icon_22.gif"> 恭喜发财!红包拿来!</label></li>
<li><input type="radio" name="greetid" id="greet33" value="33" /><label for="greet33"><img src="plugs/image/greetings/icon_33.gif"> 只爱你一个,情人节快乐!</label></li>
<li><input type="radio" name="greetid" id="greet34" value="34" /><label for="greet34"><img src="plugs/image/greetings/icon_34.gif"> 很想说“三八,节日快乐!”</label></li>
<li><input type="radio" name="greetid" id="greet35" value="35" /><label for="greet35"><img src="plugs/image/greetings/icon_35.gif"> 劳动人民最光荣,劳动节快乐!</label></li>
<li><input type="radio" name="greetid" id="greet36" value="36" /><label for="greet36"><img src="plugs/image/greetings/icon_36.gif"> 成年后报效祖国!青年节快乐!</label></li>
<li><input type="radio" name="greetid" id="greet38" value="38" /><label for="greet38"><img src="plugs/image/greetings/icon_38.gif"> 宝贝儿,祝你儿童节快乐!</label></li>
<li><input type="radio" name="greetid" id="greet25" value="25" /><label for="greet25"><img src="plugs/image/greetings/icon_25.gif"> 包一个装满心意的粽子送你!</label></li>
<li><input type="radio" name="greetid" id="greet49" value="49" /><label for="greet49"><img src="plugs/image/greetings/icon_49.gif"> 吾等乃牛郎织女也,七夕快乐!</label></li>
<li><input type="radio" name="greetid" id="greet24" value="24" /><label for="greet24"><img src="plugs/image/greetings/icon_24.gif"> 中秋月圆人圆共团圆!</label></li>
<li><input type="radio" name="greetid" id="greet40" value="40" /><label for="greet40"><img src="plugs/image/greetings/icon_40.gif"> 国庆节愉快!</label></li>
<li><input type="radio" name="greetid" id="greet30" value="30" /><label for="greet30"><img src="plugs/image/greetings/icon_30.gif"> 圣诞愉快!</label></li>
</ul>
<ul id="greatcat4" class="greetlist" style="display:none;">
<li><input type="radio" name="greetid" id="greet41" value="41" /><label for="greet41"><img src="plugs/image/greetings/icon_41.gif"> Happy birthday!</label></li>
<li><input type="radio" name="greetid" id="greet42" value="42" /><label for="greet42"><img src="plugs/image/greetings/icon_42.gif"> 毕业了!你即将成为人“踩”!</label></li>
<li><input type="radio" name="greetid" id="greet44" value="44" /><label for="greet44"><img src="plugs/image/greetings/icon_44.gif"> 祝贺你又一次击倒病魔!</label></li>
<li><input type="radio" name="greetid" id="greet45" value="45" /><label for="greet45"><img src="plugs/image/greetings/icon_45.gif"> 升职了,祝贺你!</label></li>
<li><input type="radio" name="greetid" id="greet46" value="46" /><label for="greet46"><img src="plugs/image/greetings/icon_46.gif"> 恭喜你喜得贵子!</label></li>
<li><input type="radio" name="greetid" id="greet47" value="47" /><label for="greet47"><img src="plugs/image/greetings/icon_47.gif"> 祝咱们天长地久</label></li>
<li><input type="radio" name="greetid" id="greet48" value="48" /><label for="greet48"><img src="plugs/image/greetings/icon_48.gif"> 欢迎来到这个大家庭!</label></li>
</ul>
<script src="plugs/smiley/command.js" type="text/javascript"></script>
<h3>或者自定义一个:</h3>
<div class="gray" style="margin-bottom:15px;">
<script type="text/javascript">DPSmileyInput.showButton('note');</script>
<input type="text" name="note" id="note" value="" size="30" /> (该项为可选项,会附加在上面选择的问候后面,最多50个汉字)
</div>
<p class="marginbot margintop" style="clear:both;">
<input type="hidden" name="refer" value="$_SGLOBAL[refer]">
<input type="hidden" name="pokesubmit" value="true" />
<input type="submit" name="pokesubmit_btn" id="pokesubmit_btn" value="发送" class="submit" />
</p>
</div>
</form>
<script type="text/javascript">
//showgreet(1);
function showgreet(flag) {
        var greet_categories = 4;
        for(i=1;i<=greet_categories;++i) {
                g = $('greatcat'+i);
                if (parseInt(flag)==i) {
                        g.style.display="";
                        $("tab"+i).className="active";
                } else {
                        g.style.display="none";
                        $("tab"+i).className="";
                }
        }
}
</script>
</div>
</div>
</form>

<!--{if $_SGLOBAL[inajax]}--></div><!--{/if}-->
</div>

<!--{template footer}-->

红色部分应该都是多余的吧
反正我把该部分清除后页面正常了
回复

使用道具 举报

SungYuri 发表于 2008-6-1 16:33:40 | 显示全部楼层
汗!!!
有过节???
回复

使用道具 举报

meeu 发表于 2008-6-1 16:37:49 | 显示全部楼层
下面是什么意思?
错误
SQL 查询:

CREATE TABLE IF NOT EXISTS `uchome_plug_greetings` (

`uid` mediumint( 8 ) unsigned NOT NULL default '0',
`fromuid` mediumint( 8 ) unsigned NOT NULL default '0',
`fromusername` char( 15 ) NOT NULL default '',
`greetid` tinyint( 2 ) NOT NULL ,
`note` char( 80 ) NOT NULL ,
PRIMARY KEY ( `uid` , `fromuid` )
) ENGINE = MYISAM ;
回复

使用道具 举报

 楼主| kiankhoon 发表于 2008-6-1 16:40:17 | 显示全部楼层

回复 74# coklo 的帖子

你说的沒错,多了几个 </div>, 奇怪的是在我的网站沒有错位的现像,呵呵。
回复

使用道具 举报

 楼主| kiankhoon 发表于 2008-6-1 16:42:52 | 显示全部楼层

回复 76# meeu 的帖子

沒看到有错误的SQL查询啊?
回复

使用道具 举报

疯伟 发表于 2008-6-1 16:48:22 | 显示全部楼层
呵呵饿。。不错不错。

http://www.7yqq.cn
回复

使用道具 举报

meeu 发表于 2008-6-1 16:49:59 | 显示全部楼层
原帖由 kiankhoon 于 2008-6-1 16:42 发表
沒看到有错误的SQL查询啊?

什么意思?:)
回复

使用道具 举报

 楼主| kiankhoon 发表于 2008-6-1 16:53:23 | 显示全部楼层

回复 80# meeu 的帖子

你之前帖的那段是要加入数据库的语句,不是什么错误啊。你说的错误SQL查询是什么呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-18 21:56 , Processed in 0.138740 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表