找回密码
 注册加入

扫一扫,极速登录

QQ登录

只需一步,快速开始

搜索
查看: 4333|回复: 2

自学写插件!求助兄弟们

[复制链接]
发表于 2012-1-12 16:37:07 | 显示全部楼层 |阅读模式
悬赏10金币未解决
嵌入单独的汉字字符我知道这么做,如果我想嵌入下面这个该这么写
  1. <style type='text/css'>
  2. .vDateBox {
  3.         border: #a8e4fa 5px solid;
  4.         padding: 5px;
  5.         line-height: 19px;
  6.         margin: 0px 0px 5px 0px;
  7.         width: 150px;
  8.         word-wrap: break-word;
  9.         background: #e7f9ff;
  10.         overflow: hidden;
  11.         word-break: break-all;
  12.         _position: relative
  13. }
  14. .ico_vData {
  15.         text-align: center;
  16.         width: 89px;
  17.         font: bold 12px/22px 'simsun';
  18.         background: url({IMGDIR}/vdata.png) no-repeat;
  19.         background-position: -89px -428px;
  20.         margin-bottom: 3px;
  21.         height: 21px;
  22.         color: #fff;
  23.         overflow: hidden;
  24.         _line-height: 23px
  25. }
  26. </style>
  27. <div class='vDateBox'>
  28.   <div class='ico_vData'>实名认证</div>
  29.   &nbsp;&nbsp;&nbsp;&nbsp;<a href='home.php?mod=spacecp&ac=profile&op=verify&vid=6' title='如果你也还未进行认证,那么你可以点击这里进行实名认证'><font color='#CC3366'>该用户还未进行实名认证</font></a></div>";
复制代码
下面这段是嵌入字符,如果嵌入上面那段该这么写!!!!!
  1. class plugin_piaobo_cs {
  2.          function plugin_piaobo_cs() {
  3.          }
  4. }
  5. class plugin_piaobo_cs_forum extends plugin_piaobo_cs{
  6. function viewthread_sidetop_output(){
  7. //对viewthread_useraction嵌入点开始function
  8. global $_G;
  9. //获取全局变量$_G
  10. loadcache('plugin');
  11. $verify = DB::result_first("SELECT verify6 FROM ".DB::table('common_member_verify')." WHERE uid = '$post[authorid]'");
  12. $adminid = DB::result_first("SELECT adminid FROM ".DB::table('common_member')." WHERE uid = '$post[authorid]'");
  13. $realname = DB::result_first("SELECT realname FROM ".DB::table('common_member_profile')." WHERE uid = '$post[authorid]'");
  14. if ($verify == 0 and ($adminid == -1 or $adminid == 0)){
  15. $result [] ="这里嵌入字符"
  16. return $return;
复制代码

发表于 2012-10-31 16:34:17 | 显示全部楼层
额,真心不懂。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册加入  

本版积分规则

Archiver|手机版|小黑屋|Discuz!扩展中心 ( 浙ICP备14042422号-1 )|网站地图QQ机器人

GMT+8, 2024-5-15 16:20 , Processed in 0.163123 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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