注册 | 登录 | 搜索 
 ›› ›› 『 动网论坛插件 』›› 活动报名系统插件1.0beta正式发布!
共有 8850 人关注过本帖  
<< 上一主题    下一主题 >>
平板 打印

活动报名系统插件1.0beta正式发布!

帅哥哟,离线,有人找我吗?

  • 蓝色暴力

等级:版主

威望:1

文章:2857

积分:10387

注册:2006-04-29 19:01:00

  2007-07-26 22:10:36  

预览截图:

按此在新窗口浏览图片
list页面2


此主题相关图片如下:
按此在新窗口浏览图片
post页面1


此主题相关图片如下:
按此在新窗口浏览图片

POST页面2


此主题相关图片如下:
按此在新窗口浏览图片

浏览页面1


此主题相关图片如下:
按此在新窗口浏览图片

浏览页面2
 


此主题相关图片如下:
按此在新窗口浏览图片

请各位再等等。。。。

现在开始安装本插件!

请注意以下事项:

本插件为测试版随时可能更新请注意本帖的更新情况!

动网活动报名系统插件安装说明:
涉及文件:

dispbbs.php
index.php
post.php
savepost.php
topicother.php
templates\default\dispbbs.tpl.php
templates\default\index.list.tpl.php
templates\default\savepost.tpl.php
templates\default\post.tpl.php


虽然安装本插件不会对您原有系统造成损坏但我们还是强烈建议您备份原有文件!

本插件安装较为复杂,如安装过程中出现问题请联系版主和会员进行帮助!

现在开始安装!

安装第1步打开dispbbs.php文件找到以下代码:

if( $query = $db->query("SELECT {$SQL_CACHE} CASE WHEN topicmode<>1 THEN REPLACE(title,'<','&lt;') ELSE title END AS title,istop,isbest,postusername,postuserid,hits,isvote,child,pollid,locktopic,posttable,boardid,topicmode,getmoney,usetools,getmoneytype,dateandtime,expression,topicid,topicid AS replyid,topicid AS star,topicid AS page,topicid AS skin,@PostUserIDList:=NULL FROM {$dv}topic WHERE topicid={$AnnounceID} AND boardid={$boardid}",array('pageSize'=>1)) ){
 $TopicInfo =& $db->fetch_array($query);
}


用以下代码替换:

if( $query = $db->query("SELECT {$SQL_CACHE} CASE WHEN topicmode<>1 THEN REPLACE(title,'<','&lt;') ELSE title END AS title,istop,isbest,postusername,postuserid,hits,isvote,child,pollid,locktopic,posttable,boardid,topicmode,getmoney,usetools,getmoneytype,dateandtime,expression,topicid,activeid,topicid AS replyid,topicid AS star,topicid AS page,topicid AS skin,@PostUserIDList:=NULL FROM {$dv}topic WHERE topicid={$AnnounceID} AND boardid={$boardid}",array('pageSize'=>1)) ){
 $TopicInfo =& $db->fetch_array($query);
}


再找到以下代码:

   if( dateDiff('S',$voteinfo['timeout'],TIME_NOW) > 0 ){
    $voteinfo['istimeout'] = 1;
   } else{//检查此人是否已经投过票了
    if( $userid > 0 && $TopicInfo['locktopic'] === 0 && $voteinfo['userid'] === $userid ){
     $voteinfo['alreadyvote'] = 1;
    }
   }
  }
 }
}


下面一行添加以下代码:

//活动修改开始--BY暴力
if( $TopicInfo['isvote'] == -2 ){
  if( $query = $db->query("SELECT {$SQL_CACHE} activeid,activename,activecity,activeclass,timemode,starttime,endtime,location,cost,sex,strength,expiretime FROM {$dv}active WHERE activeid='".$TopicInfo['activeid']."'")){
  $activeinfo =& $db->fetch_array($query);
   if( !empty($activeinfo) ) {
   $db->free_result($query);
   }
  }
  $joinquery = $db->query("SELECT u1.id,u1.joindate,u1.userid,u1.costmode,u1.costnum,u1.systemmode,u1.message,u1.isexamine,u2.username FROM {$dv}activeuser as u1,{$dv}user as u2 WHERE activeid='".$TopicInfo['activeid']."' and u1.userid = u2.userid;");
  if( $nonum = $db->query("SELECT {$SQL_CACHE} count(*) as nonum from {$dv}activeuser where isexamine = 0 and activeid='".$TopicInfo['activeid']."'")){
  $activenonum =& $db->fetch_array($nonum);
   if( !empty($activenonum) ) {
   $db->free_result($nonum);
   }
  }
  if( $isnum = $db->query("SELECT {$SQL_CACHE} count(*) as isnum from {$dv}activeuser where isexamine = 1 and activeid='".$TopicInfo['activeid']."'")){
  $activeisnum =& $db->fetch_array($isnum);
   if( !empty($activeisnum) ) {
   $db->free_result($nonum);
   }
  }
}
//活动修改结束--BY暴力


安装第2步:
打开index.php文件找到以下代码:

   if (intval($result['isbest']) == 1){
    $result['istop'] = 3;
   }elseif($result['locktopic'] == 1){
    $result['istop'] = 4;
   }elseif($result['isvote'] == 1){
    $result['istop'] = 5;
   }elseif($result['child'] > $fsetting['hottopicreply']){
    $result['istop'] = 6;
   }else{
    $result['istop'] = 7;
   }


用以下代码替换!:

   if (intval($result['isbest']) == 1){
    $result['istop'] = 3;
   }elseif($result['locktopic'] == 1){
    $result['istop'] = 4;
   }elseif($result['isvote'] == 1){
    $result['istop'] = 5;
   }elseif($result['child'] > $fsetting['hottopicreply']){
    $result['istop'] = 6;
   }elseif($result['isvote'] == -2){
    $result['istop'] = 7;
   }else{
    $result['istop'] = 8;
   }


第3步打开

post.php文件找到以下代码:
  case 'argue_topic': // 发起一个辩论主题
   Show_Argue_Body_topic();
   break;


下面一行添加:

///////////活动修改--BY暴力
  case 'active_topic': // 发起一个活动主题
   Show_Active_topic();
   break;
///////////活动修改--BY暴力


然后再找到以下代码:

 require printout('post');
}//end function Show_Argue_Body_append


下面一行添加:

/////活动修改post.php--BY暴力
function Show_Active_topic() // 发起一个活动主题:$Action = 9
{
 global $userid,$membername,$memberword,$master,$boardmaster,$superboardmaster,$lang,$db,$dv,$boardid,$board_settings,$groupsetting,$fsetting,$boardinfo;
 $toaction = 'savepost.php?action=active_topic&boardid='.$boardid;
 $IsAudit = intval($boradinfo['ischeckout']);
 $Action = 9;
 require_once CACHE_PATH.'forum_pic.php';
 $empath = $_DCACHE['forum_emot'][0];
 require printout('post');
}//end function Show_Active_topic
/////活动修改post.php--BY暴力

第4步打开savepost.php文件找到以下代码:

if( $action == 'snew' || $action == 'svote' ){
 if( str_replace($lang['template.strings34'],'',$topic) === '' ){
  head();
  showmsg($lang['Error.strings20']);
  exit;
 }
}


用以下代码替换:

if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){
 if( str_replace('','',$topic) === '' ){
  head();
  showmsg($lang['Error.strings20']);
  exit;
 }
}


然后再找到:

$voteid = 0;
$isvote = 0;


下面一行添加:

$activeid = 0;
if( $action =='active_topic'){
 $activesubject = trim($_POST['activesubject']);
 $activiecity = trim($_POST['activiecity']);
 $activieclass = trim($_POST['activieclass']);
 $starttime = trim(strtotime($_POST['startall']));
 $endtime = trim(strtotime($_POST['end']));
 $activieplace = trim($_POST['activieplace']);
 $cost = intval(trim($_POST['cost']));
 $sex = trim($_POST['gender']);
 $strength = intval(trim($_POST['strength']));
 $expiretime = trim(strtotime($_POST['alltime']));
 $timemode = trim($_POST['timemode']);
 if($timemode == 0)
 $endtime = 0;
 if($activesubject==''){
  head();
  showmsg("对不起,活动名称不能为空");
  exit;
 }
 if($activiecity==''){
  head();
  showmsg("对不起,活动类别不能为空");
  exit;
 }
 if($strength==''||!is_numeric($strength)){
  head();
  showmsg("对不起,需要人数不能为空!或包含非数字字符!");
  exit;
 }
 if(!eregi('^[0-9]+$',$expiretime)){
  head();
  showmsg("对不起您输入的的时间格式不正确请检查后输入!");
  exit;
 }
 if(!is_numeric($cost)){
  head();
  showmsg("对不起,活动费用输入不合法!");
  exit;
 }
 if($activieplace==''){
  head();
  showmsg("活动地点不能为空!");
  exit;
 }
 if(!is_numeric($timemode)){
  head();
  showmsg("系统错误");
  exit;
 }
}


然后再找到

if( $action == 'snew' || $action == 'svote' ){
 $CanLockTopic = false;
 $CanTopTopic = false;
 $CanTopTopic_a = false;


用以下代码替换:

if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){
 $CanLockTopic = false;
 $CanTopTopic = false;
 $CanTopTopic_a = false;


然后再找到:

 if( ($action == 'snew' || $action == 'svote') && ($getposttype == 1 || $getposttype == 2) ){
 } elseif( $action == 'sre' && $getposttype == 1 && $getmoneytype == 4 ){
  GetMoney_SaveRe();
 }
}


用以下代码替换:

 if( ($action == 'snew' || $action == 'svote'|| $action == 'active_topic') && ($getposttype == 1 || $getposttype == 2) ){
 } elseif( $action == 'sre' && $getposttype == 1 && $getmoneytype == 4 ){
  GetMoney_SaveRe();
 }
}


然后再找到:

if( $groupsetting[3] == 0 && ($GLOBALS['action'] == 'snew' || $GLOBALS['action'] == 'svote' ) ){


用以下代码替换:

if( $groupsetting[3] == 0 && ($GLOBALS['action'] == 'snew' || $GLOBALS['action'] == 'svote' || $GLOBALS['action'] == 'active_topic') ){


然后再找到:

if( $userid > 0 && preg_match('/snew|sre|svote/i',$GLOBALS['action']) === 1 && ChkUserLogin() === false ){

用以下代码替换:

if( $userid > 0 && preg_match('/snew|sre|svote|active_topic/i',$GLOBALS['action']) === 1 && ChkUserLogin() === false ){


然后再找到:

if( $getposttype != '' && ( $action == 'snew' || $action == 'svote' ) ){


用以下代码替换:

if( $getposttype != '' && ( $action == 'snew' || $action == 'svote' || $action == 'active_topic') ){


然后再找到:

 if( $action == 'snew' || $action == 'svote' ){
  if( $FoundUseMagic ){


用以下代码替换:

 if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){
  if( $FoundUseMagic ){


然后再找到:

} elseif( $action == 'snew' || $action == 'svote' ){


用以下代码替换:

} elseif( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){


然后再找到:

 uploadedFilesProc(); // 处理上传文件
 if( $action == 'snew' || $action == 'svote' ){


用以下代码替换:

 uploadedFilesProc(); // 处理上传文件
 if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){


然后再找到:

  if( $action == 'svote' ){
   Insert_To_Vote();
  }


下面一行添加:

  if( $action == 'active_topic'){
   Insert_To_Active();
  }


然后再找到:

  //待审核取消回复更新最后发帖。
  if( $action == 'snew' || $action == 'svote' ){


用以下代码替换:

  //待审核取消回复更新最后发帖。
  if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){


然后再找到:

 if( $action == 'snew' || $action == 'svote' ){
  $toptopic = str_replace('$','&#36;',cutStr($topic,20));


用以下代码替换:

 if( $action == 'snew' || $action == 'svote' || $action == 'active_topic'){
  $toptopic = str_replace('$','&#36;',cutStr($topic,20));

续接2楼

[此帖子已经被作者于2007-07-26 23:03:55编辑过]
动网论坛商业版热卖中
动网论坛商业版热卖中
TOP

帅哥哟,离线,有人找我吗?

  • 蓝色暴力

等级:版主

威望:1

文章:2857

积分:10387

注册:2006-04-29 19:01:00

  2007-07-26 22:11:11  

然后再找到:

$stmt = "INSERT INTO {$dv}topic (title,boardid,postusername,postuserid,dateandtime,expression,lastpost,lastposttime,posttable,locktopic,istop,topicmode,isvote,pollid,mode,getmoney,usetools,getmoneytype,issmstopic,hidename) VALUES('{$topic}',".$GLOBALS['boardid'].",'".$db->escape_string($GLOBALS['username'])."',".$GLOBALS['userid'].",'".$strDateTime."','".$db->escape_string($expression[0])."|".$db->escape_string($expression[1])."','$$".$strDateTime."$$$$','".$MyLastPostTime."','".$db->escape_string($GLOBALS['totalusetable'])."',".intval($GLOBALS['locktopic']).",".intval($GLOBALS['MyIsTop']).",".intval($GLOBALS['MyTopicMode']).",".$GLOBALS['isvote'].",".$GLOBALS['voteid'].",".$GLOBALS['topicmode'].",'".$GLOBALS['tomoney']."','".$db->escape_string($GLOBALS['UseTools'])."',".($GLOBALS['getmoneytype']?$GLOBALS['getmoneytype']:'NULL').",".$GLOBALS['isAlipayTopic'].",".$hidename.")";


用以下代码替换:

$stmt = "INSERT INTO {$dv}topic (title,boardid,postusername,postuserid,dateandtime,expression,lastpost,lastposttime,posttable,locktopic,istop,topicmode,isvote,pollid,mode,getmoney,usetools,getmoneytype,issmstopic,hidename,activeid) VALUES('{$topic}',".$GLOBALS['boardid'].",'".$db->escape_string($GLOBALS['username'])."',".$GLOBALS['userid'].",'".$strDateTime."','".$db->escape_string($expression[0])."|".$db->escape_string($expression[1])."','$$".$strDateTime."$$$$','".$MyLastPostTime."','".$db->escape_string($GLOBALS['totalusetable'])."',".intval($GLOBALS['locktopic']).",".intval($GLOBALS['MyIsTop']).",".intval($GLOBALS['MyTopicMode']).",".$GLOBALS['isvote'].",".$GLOBALS['voteid'].",".$GLOBALS['topicmode'].",'".$GLOBALS['tomoney']."','".$db->escape_string($GLOBALS['UseTools'])."',".($GLOBALS['getmoneytype']?$GLOBALS['getmoneytype']:'NULL').",".$GLOBALS['isAlipayTopic'].",".$hidename.",'".$GLOBALS['activeid']."')";


然后再找到以下代码:

 $voteid = intval($db->scalar("SELECT MAX(voteid) FROM {$dv}vote"));
 $isvote = 1;
}//end function Insert_To_Vote


下面一行添加:

function Insert_To_Active(){
 global $userid,$isvote,$dv,$db,$groupsetting,$uarticle,$activesubject,$activiecity,$activieclass,$starttime,$endtime,$activieplace,$cost,$sex,$strength,$expiretime,$timemode,$endtime,$activeid;
 $db->query("INSERT INTO {$dv}active(postuserid,activename,activecity,activeclass,timemode,starttime,endtime,location,cost,sex,strength,expiretime) VALUES(".$userid.",'".$activesubject."','".$activiecity."','".$activieclass."',".$timemode.",'".$starttime."','".$endtime."','".$activieplace."','".$cost."','".$sex."','".$strength."','".$expiretime."');");
 $activeid= intval($db->scalar("SELECT MAX(activeid) FROM {$dv}active"));
 $isvote = -2;
}//end function Insert_To_Active


然后再找到以下代码;
第5步打开topicother.php文件:
找到以下代码

 case 7:
  sendpage_main();
  break;
 case 8:


下面一行添加:

 case 9:
  PostActive_Main();
  break;
 case 10:
  AdminActive_Main();
  break;


然后找到以下代码:

 header("Location: {$_SERVER['HTTP_REFERER']}");
 exit;
}//end function PostVote_Main


下面一行添加:

function PostActive_Main(){
 global $dv, $db, $master, $superboardmaster, $boardmaster, $lang, $userid, $boardid, $id, $voteid, $fsetting, $groupsetting, $userinfo, $board_settings;
 $stats = $fsetting['forumname'].' - '.$lang['VoteHeaderTitle'];
 $arrNavMenu = array(
   0=>array('linktitle'=>$lang['ActiveHeaderTitle'])
 );
  if( $_SERVER['HTTP_REFERER'] != '' ){
  $comeurl = $_SERVER['HTTP_REFERER'];
  }else{
   $comeurl = $fsetting['homepage'];
  }
 $TopicID = $GLOBALS['id'];
 $activeid = trim($_GET['activeid']);
 $timemode = $_POST['payment'];
 $systemmode = trim($_POST['contact']);
 $message = trim($_POST['message']);
 if($timemode ==0)
 $costnum = 0;
 else
 $costnum = intval(trim($_POST['payvalue']));
  if( $query = $db->query("SELECT u1.sex,u1.strength,u2.usersex FROM {$dv}active as u1,{$dv}user as u2 WHERE activeid={$activeid}")){
  $activeinfo =& $db->fetch_array($query);
   if( !empty($activeinfo) ) {
   $db->free_result($query);
   }
  }
  if( $num = $db->query("SELECT count(*) as num from {$dv}activeuser where activeid='".$activeid."'")){
  $activenum = $db->fetch_array($num);
   if( !empty($activenum) ) {
   $db->free_result($num);
   }
  }
  if($activenum['num']>=$activeinfo['strength']){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str1']);
   exit;
  }
  if ($userid==0) {
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str2']);
   exit;
  }
  if($activeinfo['sex']==0)
  $sex = $lang['Active_gril.str1'];
  else
  $sex = $lang['Active_boy.str1'];
  if($activeinfo['sex']!=-1){
   if($activeinfo['usersex']!=$activeinfo['sex']){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str3']);
   exit;
   }
  }
  $activerid = $db->scalar("SELECT userid FROM {$dv}activeuser WHERE activeid='{$activeid}' AND userid='{$userid}'");
  if ($activerid > 0) {
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str4']);
   exit;
  }
  if ($timemode!=0) {
   if($costnum==''){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str5']);
   exit;
   }
  }
 if (''==$systemmode||strlen($systemmode)<10) {
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str6']);
  exit;
 }
 if (''==$message||strlen($message)<10) {
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str7']);
  exit;
 }
 if (!is_numeric($activeid)||$activeid<1) {
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str8']);
  exit;
 }
  $result = $db->query("INSERT INTO {$dv}activeuser(activeid,userid,joindate,costmode,costnum,systemmode,message,isexamine) VALUES(".$activeid.",".$userid.",".TIME_NOW.",".$timemode.",".$costnum.",'".$systemmode."','".$message."',0)");
  $db->query("UPDATE {$dv}topic SET lastposttime='".TIME_NOW."' WHERE topicid='{$TopicID}' AND istop=0");
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str9'],1,$comeurl);
 exit;
}

function AdminActive_Main(){
 global $dv, $db, $master, $superboardmaster, $boardmaster, $lang, $userid, $boardid, $id, $voteid, $fsetting, $groupsetting, $userinfo, $board_settings;
 $stats = $fsetting['forumname'].' - '.$lang['Activeadmintittle'];
 $arrNavMenu = array(
   0=>array('linktitle'=>$lang['Activeadmintittle'])
 );
  $activeid = trim($_GET['activeid']);
  if(!is_numeric($activeid)||$activeid<1){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str8']);
   exit;
  }
  if( $query = $db->query("select postuserid from {$dv}active where activeid={$activeid}")){
  $activeinfo =& $db->fetch_array($query);
   if( !empty($activeinfo) ) {
   $db->free_result($query);
   }
  }
  if($userid!=$activeinfo['postuserid']){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str10']);
   exit;
  }
  if( $_SERVER['HTTP_REFERER'] != '' ){
  $comeurl = $_SERVER['HTTP_REFERER'];
  }else{
   $comeurl = $fsetting['homepage'];
  }
  $actionz = $_POST['actionz'];
  $activeuserid = $_POST['activeuserid'];
  if(empty($activeuserid)){
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str11']);
   exit;
  }
  if ($userid==0) {
   head(0,0,0,$arrNavMenu);
   showmsg($lang['Active_Error.str12']);
   exit;
  }
switch($actionz){
 case 'is':
  foreach($activeuserid as $val){
   $db->query("update {$dv}activeuser Set isexamine=1 Where id={$val}");
  }
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str13'],1,$comeurl);
  break;
 case 'no':
  foreach($activeuserid as $val){
   $db->query("update {$dv}activeuser Set isexamine=0 Where id={$val}");
  }
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str14'],1,$comeurl);
  break;
 case 'del':
  foreach($activeuserid as $val){
   $db->query("delete from {$dv}activeuser Where id={$val}");
  }
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str15'],1,$comeurl);
  break;
 default:
  head(0,0,0,$arrNavMenu);
  showmsg($lang['Active_Error.str8']);
  break;
}
}


然后再打开templates\lang\zh-cn\topicother.lang.php文件找到以下代码:

 ,'err.str11' => '请选取投票项目。'
 , 'VoteHeaderTitle' => '参与投票'
 ,'vote.err.str1' => '当前论坛为只读'


下面一行添加:

 ,'ActiveHeaderTitle' => '参与活动'
 ,'Active_Error.str1' => '对不起!本活动报名人数已满!'
 ,'Active_Error.str2' => '请登陆后操作!'
 ,'Active_Error.str3' => '对不起活动发起者设置只有{$sex}才和可以参加本活动!'
 ,'Active_Error.str4' => '对不起您已经参与了活动!'
 ,'Active_Error.str5' => '对不起,支付金额不能为空!'
 ,'Active_Error.str6' => '对不起联系方式不能为空或小于10个字符!'
 ,'Active_Error.str7' => '对不起留言内容不能为空或小于10个字符!'
 ,'Active_Error.str8' => '参数错误!'
 ,'Active_Error.str9' => '参与成功请耐心等待审核!'
 ,'Active_Error.str10' => '您没有权限执行此操作!'
 ,'Active_Error.str11' => '对不起请选择要执行操作的用户!'
 ,'Active_Error.str12' => '请登陆后操作!'
 ,'Active_Error.str13' => '批量审核成功!'
 ,'Active_Error.str14' => '批量取消审核成功!'
 ,'Active_Error.str15' => '批量删除成功!'
 ,'Active_gril.str1' => '<b>女孩</b>'
 ,'Active_boy.str1' => '<b>男孩</b>'
 ,'Activeadmintittle' => '活动管理'
[此帖子已经被作者于2007-07-26 22:31:14编辑过]
动网论坛商业版热卖中
动网·网络社区源动力
TOP

帅哥哟,离线,有人找我吗?

  • 蓝色暴力

等级:版主

威望:1

文章:2857

积分:10387

注册:2006-04-29 19:01:00

  2007-07-26 22:11:33  

第6步打开templates\default\dispbbs.tpl.php文件找到以下代码:

<?=$lang['tpl.str26']?> <b><?=$voteinfo['uarticle']?></b> <?=$lang['tpl.str27']?> <b><?=$voteinfo['uep']?></b> <?=$lang['tpl.str28']?> <b><?=$voteinfo['ucp']?></b> <?=$lang['tpl.str29']?> <b><?=$voteinfo['uwealth']?></b> <?=$lang['tpl.str30']?> <b><?=$voteinfo['upowe']?></b>
</div>
</form>
<br />
<? } ?>


下面一行添加:

<?
//活动修改开始
if( $TopicInfo['isvote'] == -2){
if($activeinfo['sex'] == -1)
$activesex = "不限";
elseif($activeinfo['sex'] ==1)
$activesex = "男";
else
$activesex ="女";
if($activeinfo['timemode']==0)
$creation_date = gmdate('Y-m-d H:i', $activeinfo['starttime']);
else
$creation_date =gmdate('Y-m-d H:i', $activeinfo['starttime'])."-".gmdate('Y-m-d H:i', $activeinfo['endtime']);
$end_time = gmdate('Y-m-d H:i', $activeinfo['expiretime']);
?>
<form action="topicother.php?t=9&action=join&boardid=2&activeid=<?=$activeinfo['activeid']?>&id=<?=$TopicInfo['topicid']?>" method="post">
<div class="th">
<div style="height:24px;float:left;text-indent:10px;">活动名称:
<?=$activeinfo['activename']?></div>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">

<div class="votecolumn_center">活动类别:</div>
<div class="votecolumn_right">
<div style="float:left;width :100%;height:23px; padding-left:2px; padding-right:2px; padding-top:0px; padding-bottom:0px"><? print $activeinfo['activeclass']?></div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">开始时间:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"><?=$creation_date?>
</div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">活动地点:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"><?=$activeinfo['location']?></div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">每人花销:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px">每人大约 <?=$activeinfo['cost']?> 元 </div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">性别:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"> <?=$activesex?> </div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">需要人数:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"><?=$activeinfo['strength']?> 人</div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">活动已参加人数:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%px; height:23px"> 已报名人数:<?=$activenonum['nonum']?> 已审核人数:<?=$activeisnum['isnum']?> 共参与人数:<?=$activeisnum['isnum']+$activenonum['nonum']?></div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">征集截止日期:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"><?=$end_time?></div>
</div>
</span>
</div>
<?if($userid!=0){?>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">支付方式:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:23px"><INPUT class=radio type=radio CHECKED value=0
name=payment> 1、我愿意承担自己的那部分花销 <INPUT class=radio type=radio value=1
name=payment> 2、我愿意在此次活动花销中支付 <INPUT size=3 name=payvalue> 元</div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">联系方式</div>
<div class="votecolumn_right">
<div style="float:left;"><INPUT style="WIDTH: 80%" maxLength=200
name=contact></div>
</div>
</span>
</div>
<div id="votetable" style1="height: 26px !important; height: 29px; min-width :760px; width: 100%; margin : 0 auto;">
<span class="voterow">
<div class="votecolumn_center">留言:</div>
<div class="votecolumn_right">
<div style="float:left; width:100%; height:8px"><INPUT style="WIDTH: 80%" maxLength=200
name=message></div>
</div>
</span>
</div>
<div class="bar2" style="height:32px;line-height:32px;text-align: left;text-indent:24px;">
<div style="float:center;">
<p style="text-align: center">
<input type="submit" class="button" name="Submit" value="申请参加此活动"disabled_by_dv__onclick="return cclicksubmit(this.form);" style="margin : 5px;"/>
</div>
</div>
<SCRIPT language=JavaScript>
<!--
function cclicksubmit(form)
{
if(confirm('您确定参加报名本活动吗?'))
{this.document.batch.submit();
return true;
}else{
return false;
}
}
//-->
</SCRIPT>
<?}?>
</form>
<br />
<?php

?>
<table class="tableborder1" cellSpacing="1" cellPadding="3" align="center" id="table2" width="1005">
<form action="topicother.php?t=10&activeid=<?=$activeinfo['activeid']?>&id=<?=$TopicInfo['topicid']?>" method="post">
<tr>
<th align="left" colSpan="5">&nbsp; 树形列表:</th>
<th vAlign="center" align="right" width="194" height="20" colspan="2">&nbsp;<a href="dispbbs.php?boardid=2&replyid=10&id=10&skin=1#top">顶部</a>&nbsp;</th>
</tr>
<tr>
<td class="tablebody1" align="left" width="28" height="22">管理操作</td>
<td class="tablebody1" align="left" width="245" height="22">
&nbsp;联系方式</td>
<td class="tablebody1" align="left" width="219" height="22">留言</td>
<td class="tablebody1" align="middle" width="133" height="22">费用支付方式</td>
<td class="tablebody1" align="middle" width="143" height="22">
用户名</td>
<td class="tablebody1" align="middle" width="161" height="22">
参加时间</td>
<td class="tablebody1" align="middle" width="50" height="22">是否审核</td>
</tr>
<?
$ii = 0;
while($rs = $db->fetch_array($joinquery)){
$ii++;
$jointime = gmdate('Y-m-d H:i', $rs['joindate']+getUserTimeZoneOffset());
if($rs['isexamine']==0)
$isexamine = "未审核";
else
$isexamine = "已审核";
if($rs['costmode'] ==0)
$costmodej = "我愿意承担自己的那部分花销";
else
$costmodej = "我愿意在此次活动花销中支付".$rs['costnum']."元";
?>
<tr>
<td class="tablebody1" align="left" width="28" height="22">&nbsp;<input class="chkbox" type="checkbox" value="<?=$rs['id']?>" name="activeuserid[]"></td>
<td class="tablebody1" align="left" width="245" height="22">
&nbsp;<span class="redfont"><?=$rs['systemmode']?></span></td>
<td class="tablebody1" align="left" width="219" height="22"><?=$rs['message']?></td>
<td class="tablebody1" align="middle" width="133" height="22"><?=$costmodej?></td>
<td class="tablebody1" align="middle" width="143" height="22">
<a target="_blank" href="dispuser.php?id=<?=$rs['userid']?>"><?=$rs['username']?></a></td>
<td class="tablebody1" align="middle" width="161" height="22">
<?=$jointime?></td>
<td class="tablebody1" align="middle" width="50" height="22"><?=$isexamine?></td>
</tr><?
}
?>
<tr>
<td class="tablebody1" colSpan="7">
<div style="WIDTH: 100%; HEIGHT: 25px">
 <input class="chkbox"disabled_by_dv__onclick="CheckAll(this.form);" type="checkbox" value="on" name="chkall">全选/取消
<input type="radio" name="actionz" value="is" checked="" class="radio"/>批量通过
<input type="radio" name="actionz" value="no" class="radio"/>
批量取消
<input type="radio" name="actionz" value="del" class="radio"/>批量删除
<input class="button"disabled_by_dv__onclick="return clicksubmit(this.form);" type="submit" value="执行" name="Submit0">
<SCRIPT language=JavaScript>
<!--
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name == 'activeuserid[]')
e.checked = form.elements['chkall'].checked;
}
}
function clicksubmit(form)
{
if(confirm('您确定执行的操作吗?'))
{this.document.batch.submit();
return true;
}else{
return false;
}
}
//-->
</SCRIPT>
</div>
</td>
</tr>
</form>
</table>

<br />
<?}
?>


续接4楼

[此帖子已经被作者于2007-07-26 22:36:40编辑过]
动网论坛PHP官方站点
动网论坛专用虚拟主机
TOP

帅哥哟,离线,有人找我吗?

  • 蓝色暴力

等级:版主

威望:1

文章:2857

积分:10387

注册:2006-04-29 19:01:00

  2007-07-26 22:37:32  
第7步打开templates\default\index.list.tpl.php文件找到以下代码:
$topicsta = array(-1=>$lang['list.tpl.str8_1'],$lang['list.tpl.str1'],$lang['list.tpl.str2'],$lang['list.tpl.str3'],$lang['list.tpl.str4'],$lang['list.tpl.str5'],$lang['list.tpl.str6'],$lang['list.tpl.str7'],$lang['list.tpl.str8']);
$topicpic = array('ztop1','istop','ztop','isbest','lockfolder','closedb','hotfolder','folder');
$igetmoney = array('',$lang['list.tpl.str65'],$lang['list.tpl.str66'],$lang['list.tpl.str67'],'',$lang['list.tpl.str68']);


用以下代码替换:

$topicsta = array(-1=>$lang['list.tpl.str8_1'],$lang['list.tpl.str1'],$lang['list.tpl.str2'],$lang['list.tpl.str3'],$lang['list.tpl.str4'],$lang['list.tpl.str5'],$lang['list.tpl.str6'],$lang['list.tpl.str7'],"活动的主题",$lang['list.tpl.str8']);
$topicpic = array('ztop1','istop','ztop','isbest','lockfolder','closedb','hotfolder','activefolder','folder');
$igetmoney = array('',$lang['list.tpl.str65'],$lang['list.tpl.str66'],$lang['list.tpl.str67'],'',$lang['list.tpl.str68']);


然后再找到以下代码:

<td width="35%">
<a href="post.php?action=new&amp;boardid={$boardid}"><img src="{$imgurl}postnew.gif" border=0></a>&nbsp;
<a href="post.php?action=vote&amp;boardid={$boardid}"><img src="{$imgurl}votenew.gif" border=0></a>&nbsp;
<a href="post.php?action=argue_topic&amp;boardid={$boardid}"><img src="{$imgurl}argue.gif" border=0></a>
</td>


用以下代码替换:

<td width="35%">
<a href="post.php?action=new&amp;boardid={$boardid}"><img src="{$imgurl}postnew.gif" border=0></a>&nbsp;
<a href="post.php?action=vote&amp;boardid={$boardid}"><img src="{$imgurl}votenew.gif" border=0></a>&nbsp;
<a href="post.php?action=argue_topic&amp;boardid={$boardid}"><img src="{$imgurl}argue.gif" border=0></a>&nbsp;
<a href="post.php?action=active_topic&amp;boardid={$boardid}"><img src="{$imgurl}active.gif" border=0></a>
</td>


然后再找到以下代码:

<div style="width:15%;float:left;">
<img align="absmiddle" src="{$imgurl}folder.gif" alt="{$lang['list.tpl.str49']}" /> {$lang['list.tpl.str49']}
</div>
<div style="width:15%;float:left;">
<img align="absmiddle" src="{$imgurl}hotfolder.gif" alt="{$lang['list.tpl.str50']}" /> {$lang['list.tpl.str51']}
</div>
<div style="width:15%;float:left;">
<img align="absmiddle" src="{$imgurl}lockfolder.gif" alt="{$lang['list.tpl.str52']}" /> {$lang['list.tpl.str52']}
</div>
<div style="width:15%;float:left;">
<img align="absmiddle" src="{$imgurl}isbest.gif" alt="{$lang['list.tpl.str53']}" /> {$lang['list.tpl.str53']}
</div>
<div style="width:15%;float:left;">
<img align="absmiddle" src="{$imgurl}closedb.gif" alt="{$lang['list.tpl.str54']}" /> {$lang['list.tpl.str54']}
</div>
<div style="float:left;">
<img align="absmiddle" src="{$imgurl}ztop.gif" alt="{$lang['list.tpl.str55']}" />
<img align="absmiddle" src="{$imgurl}istop.gif" alt="{$lang['list.tpl.str56']}" />
<img align="absmiddle" src="{$imgurl}ztop1.gif" alt="{$lang['list.tpl.str57']}" /> {$lang['list.tpl.str58']}
</div>


用以下代码替换

<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}folder.gif" alt="{$lang['list.tpl.str49']}" /> {$lang['list.tpl.str49']}
</div>
<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}activefolder.gif" alt="活动话题" /> 活动话题
</div>
<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}hotfolder.gif" alt="{$lang['list.tpl.str50']}" /> {$lang['list.tpl.str51']}
</div>
<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}lockfolder.gif" alt="{$lang['list.tpl.str52']}" /> {$lang['list.tpl.str52']}
</div>
<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}isbest.gif" alt="{$lang['list.tpl.str53']}" /> {$lang['list.tpl.str53']}
</div>
<div style="width:13%;float:left;">
<img align="absmiddle" src="{$imgurl}closedb.gif" alt="{$lang['list.tpl.str54']}" /> {$lang['list.tpl.str54']}
</div>
<div style="float:left;">
<img align="absmiddle" src="{$imgurl}ztop.gif" alt="{$lang['list.tpl.str55']}" />
<img align="absmiddle" src="{$imgurl}istop.gif" alt="{$lang['list.tpl.str56']}" />
<img align="absmiddle" src="{$imgurl}ztop1.gif" alt="{$lang['list.tpl.str57']}" /> {$lang['list.tpl.str58']}
</div>


第8步打开templates\default\savepost.tpl.php文件找到:

case 'argue_append':
$tourl = 'dispargue.php?boardid='.$boardid.'&id='.$RootID.'&star='.$httpreq['star'].'&page='.$httpreq['page'].'#'.$RootID;
$PostRetrunName = $lang['tpl.str9'];//您补充的辩论观点!
break;


下面一行添加:

case 'active_topic':
$tourl = 'dispbbs.php?boardid='.$boardid.'&id='.$RootID.'&star='.$httpreq['star'].'&page='.$httpreq['page'];
$PostRetrunName = "您发布的活动";
break;


然后再打开templates\lang\zh-cn\savepost.lang.php文件找到以下代码:

,'ActionName_sedit' => '编辑帖子'


下面一行添加:

,'ActionName_active_topic' => '保存活动'


第9步打开templates\default\post.tpl.php文件找到以下代码:

{$lang['tpl.str28']}<input type="text" name="ucp" size="5" value="0" />&nbsp;
{$lang['tpl.str29']}<input type="text" name="upower" size="5" value="0">
</td>
</tr>
EOT;
}


下面一行添加:

if( $Action == 9 ){
$start_time = gmdate('Y-m-d H:i', time()+getUserTimeZoneOffset());
$end_time = gmdate('Y-m-d H:i', time()+(24*3600*7)+getUserTimeZoneOffset());
print <<<EOT
<tr>
<td width="20%" class="tablebody1">活动名称:</td>
<td width="80%" class="tablebody1">
<INPUT id=subject tabIndex=3 size=45 name=activesubject>
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">所在城市(选填):</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=3 maxLength=45 size=45 name=activiecity>
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">活动类别:</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=4 maxLength=45 size=45 name=activieclass>
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">开始时间:</td>
<SCRIPT LANGUAGE="JavaScript">
<!--
function get_obj(obj){
return document.getElementById(obj);
}
//-->
</SCRIPT>
<td width="80%" class="tablebody1">
<input type="radio" name="timemode" value="0" checkeddisabled_by_dv__onclick="choose_type('');">
在一个确定的时间开始:
<input type="radio" name="timemode" value="1"disabled_by_dv__onclick="choose_type('new');">
在一个时间范围内商定:
<div id="Charset_typez" style=''>
<INPUT tabIndex=4 maxLength=45 size=45 name=startall value="{$start_time}"> 样例: 2007-07-18 19:00<BR></div>
<div id="Charset_type" style='display:none;'>
<INPUT tabIndex=4 maxLength=45 size=45 name=startall value="{$start_time}"> -
<INPUT tabIndex=4 maxLength=45 size=45 name=end value="{$end_time}">样例: 2007-07-18 19:00 - 2007-07-19 19:00</div>
</td>
</tr>
<SCRIPT LANGUAGE="JavaScript">
<!--
function choose_type(type){
if(type=='new'){
get_obj('Charset_type').style.display='';
get_obj('Charset_typez').style.display='none';
}else{
get_obj('Charset_type').style.display='none';
get_obj('Charset_typez').style.display='';
}
}
//-->
</SCRIPT>
<tr>
<td width="20%" class="tablebody1">活动地点:</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=6 size=45 name=activieplace>
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">活动费用:</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=6 size=45 name=cost value=0> 元
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">性别:</td>
<td width="80%" class="tablebody1">
<INPUT class=radio type=radio CHECKED value=-1 name=gender>不限 <INPUT class=radio type=radio value=1 name=gender>男 <INPUT class=radio type=radio value=0 name=gender>女
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">需要人数(选填):</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=6 size=45 name=strength>
</td>
</tr>
<tr>
<td width="20%" class="tablebody1">征集截止日期(选填):</td>
<td width="80%" class="tablebody1">
<INPUT tabIndex=6 size=45 name=alltime value="{$end_time}">
</td>
</tr>
EOT;
}


然后下载以下文件:

然后把安装包中的templates\default\images中的文件传入论坛templates\default\images中即可.
最后运行install.php文件进行数据库安装即可完成安装!

我们强烈建议您安装插件作者已修改完成的安装包,您只需覆盖您论坛的原文件即可完成安装!避免了您手动安装中可能出现的错误。点击下载简洁安装包:

更新时间:2007-07-27

感谢使用本插件!作者:蓝色暴力QQ3674165
HTTP://P.DVBBS.NET


[此帖子已经被作者于2007-07-27 22:05:16编辑过]
动网论坛商业版热卖中
动网论坛专用虚拟主机
TOP

帅哥哟,离线,有人找我吗?

头衔:DVPHP水盟

等级:新手上路

威望:2

文章:11571

积分:21799

注册:2002-11-01 19:51:00

  2007-07-26 22:57:04  

必须帮版主定啊~为人民服务的公仆~

动网论坛商业版热卖中
动网·网络社区源动力
TOP

帅哥哟,离线,有人找我吗?

  • vilson

头衔:我們一直在努力!

等级:贵宾

文章:13417

积分:30274

注册:2006-11-17 21:37:50

  2007-07-26 22:57:20  

         嗯。

支持一下。如果有个示范就更好了!~~~!!

动网论坛商业版热卖中
动网·网络社区源动力
TOP

帅哥哟,离线,有人找我吗?

头衔:Yiu ze

等级:贵宾

威望:1

文章:4000

积分:20802

注册:2004-02-07 14:38:00

  2007-07-27 01:11:18  
以下是引用vilson在2007-07-26 22:57:20的发言:

         嗯。

支持一下。如果有个示范就更好了!~~~!!

这个以后我会努力的“拉帮结伙”的弄个专演站点

支持下楼主.好长时间没有见插件了

动网论坛PHP官方站点
动网论坛专用虚拟主机
TOP

帅哥哟,离线,有人找我吗?

头衔:DVPHP水盟

等级:新手上路

威望:2

文章:11571

积分:21799

注册:2002-11-01 19:51:00

  2007-07-27 03:07:51  
直接拿香总那个动网上海的坛子做演习就不错,什么功能都具备了,哈哈~
动网论坛商业版热卖中
动网论坛商业版热卖中
TOP

帅哥哟,离线,有人找我吗?

头衔:周总理都夸我帅

等级:贵宾

威望:3

文章:3135

积分:16628

注册:2003-01-05 14:26:00

  2007-07-27 09:33:32  
呵呵,lz把修改后的文件压缩上传,提供下载,让用户直接覆盖,更简单点。这样的修改对大部分网友没问题,但是遇到一些新手站长会很头疼。
动网论坛PHP官方站点
动网论坛商业版热卖中
TOP

帅哥哟,离线,有人找我吗?

头衔:周总理都夸我帅

等级:贵宾

威望:3

文章:3135

积分:16628

注册:2003-01-05 14:26:00

  2007-07-27 09:33:46  
不过插件做的相当不错。呵呵。。。
动网论坛商业版热卖中
动网·网络社区源动力
TOP

 
不良信息举报中心 网络110报警服务