Uyarı [Warning] Sistemi Kurulumu

ProwL

Gitarist
Kullanıcıyı puan üzerinden banlamak içindir. Örneğin kullanıcının küfürlü bir mesajını gördüğünüzde profilinden 5 puan verirsiniz, bu puan 10 'a tamamlandığında kullanıcı otomatik olarak banlanacaktır..

Plugin Ayarları;

Eklentiden çıkan "product-aws.xml" dosyasının plugin yöneticisinden import ediyoruz.

Template Ayarları;

postbit template ini açıp aşağıdaki kodları bulun;

Kod:
   <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a>  </if>
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <!-- checks for warning system -->
   <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
	<if condition="$showwarnlink==1">
	<if condition="$vboptions['warn_allownotes']==1">
   <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a> </if>
		<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> 
	</if>
	<if condition="$showviewwarnlink==1">
		<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> 
	</if>
	<if condition="$showviewyourslink==1">
		<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>  
	</if>
   </if>
   <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
	<if condition="$showwarnlink==1">
	<if condition="$vboptions['warn_allownotes']==1">
	<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a>  
	</if>
		<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a>  
	</if>
	<if condition="$showviewwarnlink==1">
		<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a> 
	</if>
	<if condition="$showviewyourslink==1">
		<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a> 
	</if>
   </if>
   <!-- end of warning system -->
postbit_legacy template inde aşağıdaki kodları bulun;

Kod:
   <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <!-- checks for warning system -->
   <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
	<if condition="$showwarnlink==1">
	<if condition="$vboptions['warn_allownotes']==1">
   <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a> </if>
		<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> 
	</if>
	<if condition="$showviewwarnlink==1">
		<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> 
	</if>
	<if condition="$showviewyourslink==1">
		<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>  
	</if>
   </if>
   <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
	<if condition="$showwarnlink==1">
	<if condition="$vboptions['warn_allownotes']==1">
	<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a>  
	</if>
		<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a>  
	</if>
	<if condition="$showviewwarnlink==1">
		<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a> 
	</if>
	<if condition="$showviewyourslink==1">
		<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a> 
	</if>
   </if>
   <!-- end of warning system -->
postbit template ini açın ve aşağıdaki kodları bulun;

Kod:
   <td valign="top" nowrap="nowrap">
				
				<div class="smallfont">
					<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <!-- Show warned sign -->
   <if condition="THIS_SCRIPT=='showthread'"> 

   <if condition="$showwarnsignmgm==1">
      <!-- Mgm can click on the stop sign to see the warnings -->
      <td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
   </if>

   <if condition="$showwarnsign==1">
      <!-- Simple Users can only see the warn sign but not the warnings -->
      <td><img src="images/misc/warn.gif" border=0></td>
   </if>
   </if>

   <!-- End of show warned sign -->
yine postbit template inde aşağıdaki kodları bulun;

Kod:
   <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
altına aşağıdaki kodları yapıştırın;

Kod:
   <!-- Show warning points -->
   <if condition="$showpoints==1">
   <if condition="$post[alerts]>0">
   <font color="#ff0000">
   <BR>Alerts: $post[alerts]
   <font color="#000000">
   </if>
   <if condition="$post[warnings]>0">
   <font color="#ff0000">
   <BR>Warnings: $post[warnings]
   <font color="#000000">
   </if>
   <if condition="$post[warning_level]>0">
   <font color="#ff0000">
   <BR>Warnings Level: $post[warning_level]
   <font color="#000000">
   </if>
   <if condition="$post[warning_bans]>0">
   <font color="#ff0000">
   <BR>Number of bans: $post[warning_bans]
   <font color="#000000">
   </if>
   </if>
   <!-- End of show warning points -->
yine postbit template inde aşağıdaki kodları bulun;

Kod:
   <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
				</div>
				
			</td>
		</tr>
altına aşağıdaki kodları yapıştırın;

Kod:
	<if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
	<tr>
	<td colspan="5">
	<table border="1" width="100%" align="center">
	<tr>
	<td align="center" class="thead" colspan="4">
	<div class="smallfont">The following notes have been entered for this user</div>
	</td>
	</tr>
	<tr>
	<td align="center" class="smallfont" width="10%"> 
	Moderator
	</td>
	<td align="center" class="smallfont" width="15%"> 
	Time
	</td>
	<td align="center" class="smallfont">
	Moderator Note
	</td>
	<td width="5%" class='smallfont' align='center'>
	Remove
	</td>
	</tr>
	$pnotes
	</table>
	</td>
	</tr>
	</if>
aşağıdaki kodları bulun;

Kod:
   <if condition="$show['avatar']">
aşağıdaki kodlarla değitiştirin;

Kod:
   <if condition="$show['avatar']  AND (($avatarthress>0 AND $post[warning_level]<=$avatarthress) OR $avatarthress==0)">
aşağıdaki kodları bulun;

Kod:
   <if condition="$post['signature']">
aşağıdaki kodlarlar değiştirin;

Kod:
   <if condition="$post['signature'] AND (($sigthress>0 AND $post[warning_level]<=$sigthress) OR $sigthress==0)">
postbit_legacy template ine geçip aşağıdaki kodları bulun;

Kod:
   <if condition="$show['moderated']">
   <td class="alt2" id="td_post_$post[postid]">
   <else />
   <td class="alt1" id="td_post_$post[postid]">
   </if>
	
		<if condition="$show['messageicon'] OR $post['title']">
			<!-- icon and title -->
			<div class="smallfont">
				<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
				<if condition="$post['title']"><strong>$post[title]</strong></if>
			</div>
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
			<!-- / icon and title -->
		</if>
Aşağıdaki kodlarla değiştirin;

Kod:
   <if condition="$show['moderated']">
   <td class="alt2" id="td_post_$post[postid]">
   <else />
   <td class="alt1" id="td_post_$post[postid]">
   </if>
	<if condition="$show['messageicon'] OR $post['title'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
		<TABLE width=100%><TR>
			<TD width=90%>
			<!-- icon and title -->
			<div class="smallfont">
				<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
				<if condition="$post['title']"><strong>$post[title]</strong></if>
			</div>
			<!-- / icon and title -->
			</td>
			<TD width=10% align="$stylevar[right]">
			<!-- Show warned sign -->
			<if condition="THIS_SCRIPT=='showthread'"> 
				<if condition="$showwarnsignmgm==1">
				      <!-- Mgm can click on the stop sign to see the warnings -->
				      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
				</if>
				
				<if condition="$showwarnsign==1">
				      <!-- Simple Users can only see the warn sign but not the warnings -->
				      <img src="images/misc/warn.gif" border=0>
				</if>
			</if>
			<!-- End of show warned sign -->
			</td>
		</tr></table>
		<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
	</if>
aşağıdaki kodları bulun;

Kod:
   <div id="post_message_$post[postid]">$post[message]</div>
   <!-- / message -->
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
   <table border="1" width="100%" align="center" class="alt2">
   <tr>
   <td align="center" class="thead" colspan="4">
   <div class="smallfont">The following notes have been entered for this user</div>
   </td>
   </tr>
   <tr>
   <td align="center" class="smallfont" width="10%"> 
   Moderator
   </td>
   <td align="center" class="smallfont" width="15%"> 
   Time
   </td>
   <td align="center" class="smallfont">
   Moderator Note
   </td>
   <td width="5%" class='smallfont' align='center'>
   Remove
   </td>
   </tr>
   $pnotes
   </table>
   <br>
   </if>
MEMBERINFO template ini açıp aşağıdaki kodları bulun;

Kod:
   <tr>
	<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
   </tr>
Aşağıdaki kodlarla değiştirin;

Kod:
   <tr>
	<td class="tcat">
   <!-- checks for warning system -->
   <span class="smallfont" style="float:$stylevar[right]">
   <if condition="THIS_SCRIPT=='member' AND $vboptions[warn_allowoffpost]==1 AND $buttons=='Text'">
   <if condition="$showwarnlink==1">
   <if condition="$vboptions['warn_allownotes']==1">
   <a href='Warn.php?do=NoteUser&id=$post[userid]&post=0'>Add Note for $post[username]</a> </if> 
	<a href='Warn.php?do=WarnUserNoPost&id=$userinfo[userid]'>Warn $userinfo[username] (non-post related)</a> <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
   </if>
   <if condition="$showviewyourslink==1">
         <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> 
   </if>
   </if>

   <if condition="THIS_SCRIPT=='member' AND $vboptions[warn_allowoffpost]==1 AND $buttons=='Buttons'">
   <if condition="$showwarnlink==1">
   <if condition="$vboptions['warn_allownotes']==1">
   <a href='Warn.php?do=NoteUser&id=$post[userid]&post=0'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=0'"></a>  
   </if>
	<a href='Warn.php?do=WarnUserNoPost&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="Warn $post[username] (non-post related)" accesskey="w" onClick="window.location='Warn.php?do=WarnUserNoPost&id=$userinfo[userid]'"></a> <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$userinfo[userid]'"></a>
   </if>
   <if condition="$showviewyourslink==1">
			<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a> 
   </if>
   </if>
   </span>
   <!-- end of warning system -->
   $vbphrase[view_profile]<span class="normal">: $userinfo[username]</span>
   </td>
   </tr>
Aşağıdaki kodları bulun;

Kod:
   <if condition="$show['profilepic']">
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]" nowrap="nowrap">
   <div class="smallfont">
   <b>User ID :</b> $userinfo[userid]<br />

   <if condition="$showpoints==1">
   <if condition="$userinfo[alerts]>0">
   <font color="#ff0000">
   Alerts: $userinfo[alerts]<BR>
   <font color="#000000">
   </if>
   <if condition="$userinfo[warnings]>0">
   <font color="#ff0000">
   Warnings: $userinfo[warnings]<BR>
   <font color="#000000">
   </if>
   <if condition="$userinfo[warning_level]>0">
   <font color="#ff0000">
   Warnings Level: $userinfo[warning_level]<BR>
   <font color="#000000">
   </if>
   <if condition="$userinfo[warning_bans]>0">
   <font color="#ff0000">
   Number of bans: $userinfo[warning_bans]<BR>
   <font color="#000000">
   </if>
   </if>
   </td>
Aşağıdaki kodları bulun;

Kod:
   <if condition="$show['signature']">
   <!-- signature row -->
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">

   <table border="1" width="100%" align="center" class="alt2">
   <tr>
   <td align="center" class="thead" colspan="5">
   <div class="smallfont">The following notes have been entered for this user</div>
   </td>
   </tr>
   <tr>
   <td align="center" class="smallfont" width="10%"> 
   Moderator
   </td>
   <td align="center" class="smallfont" width="15%"> 
   Time
   </td>
   <td align="center" class="smallfont">
   Moderator Note
   </td>
   <td align="center" class="smallfont" width="5%">
   Post
   </td>
   <td width="5%" class='smallfont' align='center'>
   Remove
   </td>
   </tr>
   $pnotes
   </table>
   <br>
   </if>
navbar template ini açın ve aşağıdaki tagı bulun;

Kod:
   <tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
üstüne aşağıdaki tagı yapıştırın;

Kod:
   <tr><td class="thead">Warnings</td></tr>
   <tr><td class="vbmenu_option"><a href="Warn.php?$session[sessionurl]do=ViewMyWarnings">Aldığınız Uyarılar</a></td></tr>
pm_newpm template ini açın ve aşağıdaki kodları bulun;

Kod:
		<fieldset class="fieldset">
			<legend>$vbphrase[recipients]</legend>
			<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
üstüne aşağıdaki kodları yapıştırın;

Kod:
   <if condition="$dualid==1">
     <fieldset>
     <legend>Sender ID</legend>
     <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
	<tr>
	<td>
	<div class="smallfont">You appear to be the Collector of this site. Under which ID you want this message to be send?</div>
	<select name="sender" class="smallfont">$dual_option</select>
	</td>
	</tr>
     </table>
     </fieldset>
   </if>
Template değişiklikleri bitti,

Warning System Download

rar pass; hackhell.com


Written By ProwL

 
Üst