利用類似自動轉址的功能來強迫新會員(或沒報到)的人強迫報到
打開posting.php
搜尋
代碼: 選擇全部
generate_smilies('inline', PAGE_POSTING);
代碼: 選擇全部
if($userdata['user_posts']==0)
{
Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
}
打開
viewtopic.php
搜尋
代碼: 選擇全部
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
代碼: 選擇全部
if($userdata['user_posts']==0)
{
Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
}
=========================
假如突然連進發表新主題的話\r
有時候會產生混亂
所以可以改成
posting.php
原先
代碼: 選擇全部
if($userdata['user_posts']==0)
{
Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\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>');
}
}
原先
代碼: 選擇全部
if($userdata['user_posts']==0)
{
Header ("Location:posting.php?mode=newtopic&f=[color=red]22[/color]");//強制報到區報到\r
}
代碼: 選擇全部
if($userdata['user_posts']==4)
{
message_die(GENERAL_MESSAGE,'請先到報到區報到<br><a href="posting.php?mode=newtopic&f=[color=red]1[/color]">填寫報到文章</a>');
}