1 頁 (共 1 頁)

[外掛]強制發表報到文

發表於 : 2003-09-17 11:53
御津闇慈
其實這是個小技巧而已\r
利用類似自動轉址的功能來強迫新會員(或沒報到)的人強迫報到
打開posting.php
搜尋

代碼: 選擇全部

generate_smilies('inline', PAGE_POSTING);
下方加入\r

代碼: 選擇全部

if($userdata['user_posts']==0)
   { 
      Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
   } 
紅色的字你要指定哪個版面的ID
打開
viewtopic.php
搜尋

代碼: 選擇全部

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
	$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
底下加入\r

代碼: 選擇全部

if($userdata['user_posts']==0)
   { 
      Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
   } 
紅色的字你要指定哪個版面的ID
=========================
假如突然連進發表新主題的話\r
有時候會產生混亂
所以可以改成
posting.php
原先

代碼: 選擇全部

if($userdata['user_posts']==0)
   { 
      Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
   } 
改為\r

代碼: 選擇全部

if ( $forum_id != [color=red]1[/color] )
{
if($userdata['user_posts']==4) 
   { 
      message_die(GENERAL_MESSAGE,'請先到報到區報到<br><a href="posting.php?mode=newtopic&f=[color=red]1[/color]">填寫報到文章</a>'); 
   }
}
而viewtopic.php
原先

代碼: 選擇全部

if($userdata['user_posts']==0)
   { 
      Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
   } 
改為\r

代碼: 選擇全部

if($userdata['user_posts']==4) 
   { 
      message_die(GENERAL_MESSAGE,'請先到報到區報到<br><a href="posting.php?mode=newtopic&f=[color=red]1[/color]">填寫報到文章</a>'); 
   }