Name:		Forum Zusatz Funktions Mod V1.1
Datum:		16-01-2010
Author: 	Crack
Homepage:	www.kit-coding.de
Email: 		webadmin@kit-coding.de


---------------------------------------------------------------------------------------------------
INSTALL HowTo 
---------------------------------------------------------------------------------------------------
1.  Lade alle Ordner unter beibehaltung der Ordnerstruktur hoch. ( Es werden keine Dateien berschrieben!)
2.  ndere nun folgende 7 Dateien

/pkinc/public/forumscategory.php
/pkinc/publictpl/forum/showcat_thread.htm
/pkinc/publictpl/forum/showcat_info_row.htm
/pkinc/publictpl/forum/showcat_thread_row.htm
/pkinc/public/forumsthread.php
/pkinc/publictpl/forum/showthread.htm
/pkinc/publictpl/forum/showthread_row.htm



Zusatz!!!

Wer das Forum Attachement Addon von ESA-Lucky installiert hat bearbeitet noch folgendes!
/pkinc/public/forumsmodes.php

=======================================================================


/pkinc/public/forumscategory.php

Suche:

			$info_time=formattime($foruminfo['foruminfo_time']);
			$foruminfo['foruminfo_title']=pkEntities($foruminfo['foruminfo_title']);

Fge darunter ein:

			#ThreadFunction Mod ANFANG
			if(getrights('admin')){
				$ThreadDelete_Filler='<td class="forum2">&nbsp;</td>';
			}
			#ThreadFunction Mod ENDE

Suche weiter:

			$thread_time=formattime($forumthread['forumthread_lastreply_time']);
			$thread_title=pkEntities($forumthread['forumthread_title']);

Fge darunter ein:

			#ThreadFunction Mod ANFANG
			if(getrights('admin')){
				$ThreadDelete_CheckBox='<td class="forum2" style="vertical-align:middle;"><input class="checkbox" type="checkbox" name="Thread_id[]" value="'.$forumthread['forumthread_id'].'" /></td>';
			}
			#ThreadFunction Mod ENDE

Suche weiter:

			unset($newpostlink);
			}

Fge darunter ein:

			#ThreadFunction Mod ANFANG
			include(pkDIRPUBLIC.'forumsmodes'.pkEXT);
			#ThreadFunction Mod ENDE

=======================================================================

/pkinc/publictpl/forum/showcat_thread.htm

Suche:

<table border="0" cellspacing="0" cellpadding="1" width="100%">
 <tr>
  <td align="right"><font class="small">$sidelink</font></td>
 </tr>
</table>

Fge DARBER ein:

<!-- ThreadFunction Mod ANFANG -->
<script type="text/javascript">
	function checkall(status,theelement) {
		for (i=0;i<document.threaddelete.length;i++) {if(document.threaddelete.elements[i].name=="" + theelement + "[]") document.threaddelete.elements[i].checked=status;}
	}
	
	function ContAction() {	
		if(document.threaddelete.change_to.options[document.threaddelete.change_to.selectedIndex].value != -1) document.threaddelete.submit();
	}
</script>
<!-- ThreadFunction Mod ENDE -->

Suche weiter:

<table class="forumbody" cellspacing="1" cellpadding="4" width="100%">
 <tr>
  <td class="heads" colspan="2" width="5%">&nbsp;</td>

Fge DARBER ein:

<!-- ThreadFunction Mod ANFANG -->
<form name="threaddelete" method="post" action="?path=forumscategory&amp;catid=$_GET[catid]">
<!-- ThreadFunction Mod ENDE -->

Suche weiter:

<td class="heads" align="center" width="20%" nowrap="nowrap"><font class="headssmall"> Letzter Beitrag </font></td>

Fge darunter ein:

<!-- ThreadFunction Mod ANFANG -->
$ThreadDelete_Text
<!-- ThreadFunction Mod ENDE -->

=======================================================================

/pkinc/publictpl/forum/showcat_info_row.htm

Suche:

<td class="forum2" align="center" nowrap="nowrap"><font class="small">$info_time</font></td>

Fge darunter ein:

<!-- ThreadFunction Mod ANFANG -->
$ThreadDelete_Filler
<!-- ThreadFunction Mod ENDE -->

=======================================================================

/pkinc/publictpl/forum/showcat_thread_row.htm

Suche:

  <td class="forum3" align="center">
	<font class="small">$thread_time<br />$thread_last_autor</font></td>

Fge darunter ein:
  <!-- ThreadFunction Mod ANFANG -->
  $ThreadDelete_CheckBox
  <!-- ThreadFunction Mod ENDE -->
=======================================================================

/pkinc/public/forumsthread.php


Suche:

		$post_time=formattime($forumpost['forumpost_time']);
		$post_title=pkEntities($forumpost['forumpost_title']);

Fge darber ein:

		#ThreadFunction Mod ANFANG
		if(getrights('admin')){
			$ThreadDelete_CheckBox='
			<td align="right" width="1%" nowrap="nowrap">
			 <input class="checkbox" type="checkbox" name="Post_id[]" value="'.$forumpost['forumpost_id'].'" />
			</td>';
		}
		#ThreadFunction Mod ENDE


Suche weiter:

		if($FORUM->getLayout()==1) 
			break;
		}
	}

Fge darunter ein:

#ThreadFunction Mod ANFANG
include(pkDIRPUBLIC.'forumsmodes'.pkEXT);
#ThreadFunction Mod ENDE


=======================================================================

/pkinc/publictpl/forum/showthread.htm

Suche:

<table border="0" cellspacing="1" cellpadding="0" width="100%">
 <tr>
  <td class="sitebodysmall"><a class="sitebodysmall" href="include.php?path=forumsjump&amp;prev=$threadid&amp;remove_path=$removeto">vorheriges Thema</a> &nbsp; <a class="sitebodysmall" href="include.php?path=forumsjump&amp;next=$threadid&amp;remove_path=$removeto">n&auml;chstes Thema</a></td>
  <td class="sitebodysmall" align="right">&#160;</td>
 </tr>
 <tr>
  <td class="sitebodysmall">$threadinformation</td>
  <td class="sitebodysmall" align="right">$sidelink</td>
 </tr>
</table>

Fge darber ein:

<!-- ThreadFunction Mod ANFANG -->
<script type="text/javascript">
	function checkallPost(status,theelement) {
		for (i=0;i<document.postdelete.length;i++) {if(document.postdelete.elements[i].name=="" + theelement + "[]") document.postdelete.elements[i].checked=status;}
	}
	
	function ContActionPost() {	
		if(document.postdelete.change_to.options[document.postdelete.change_to.selectedIndex].value != -1) document.postdelete.submit();
	}
</script>
<form name="postdelete" method="post" action="?path=forumsthread&amp;threadid=$threadid">
<!-- ThreadFunction Mod ENDE -->

Suche weiter:

</tr>
	$showthread_row
</table>

Fge darunter ein:

<!-- ThreadFunction Mod ANFANG -->
</form>
<!-- ThreadFunction Mod ENDE -->

=======================================================================

/pkinc/publictpl/forum/showthread_row.htm

Suche:

  <td class="$row">
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
	 <tr>
		$post_icon
	  <td width="90%"><b>$post_title</b></td>
	  <td width="10%" align="right" nowrap="nowrap">$post_ipaddr $post_edit $quote_answer</td>
     </tr>
	</table>
  </td>

Ersetze es mit:

  <td class="$row">
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
	 <tr>
		$post_icon
	  <td width="89%"><b>$post_title</b></td>
	  <td width="10%" align="right" nowrap="nowrap">$post_ipaddr $post_edit $quote_answer</td>
	  <!-- ThreadFunction Mod ANFANG -->
      $ThreadDelete_CheckBox
      <!-- ThreadFunction Mod ENDE -->
     </tr>
	</table>
  </td>

=======================================================================

/pkinc/public/forumsmodes.php

Suche:

					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ANFANG!
					#$del_att=$SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_POST."` WHERE (".$sqlcommand2.") AND `forumpost_forumatt_file`!=''");
					#while($del_att_ok=$SQL->fetch_array($del_att)) {
					#	$del_go=$SQL->fetch_array($SQL->query("SELECT `forumatt_dir` FROM `".pkSQLPREFIX."_forumatt`"));
					#	@unlink("./".$del_go['forumatt_dir'].$del_att_ok['forumpost_forumatt_file']);
					#}
					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ENDE!

Ersetze es mit:

					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ANFANG!
					$del_att=$SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_POST."` WHERE (".$sqlcommand2.") AND `forumpost_forumatt_file`!=''");
					while($del_att_ok=$SQL->fetch_array($del_att)) {
						$del_go=$SQL->fetch_array($SQL->query("SELECT `forumatt_dir` FROM `".pkSQLPREFIX."_forumatt`"));
						@unlink("./".$del_go['forumatt_dir'].$del_att_ok['forumpost_forumatt_file']);
					}
					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ENDE!

Suche weiter:

					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ANFANG!
					#$del_att=$SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_POST."` WHERE (".$sqlcommand.") AND `forumpost_forumatt_file`!=''");
					#while($del_att_ok=$SQL->fetch_array($del_att)) {
					#	$del_go=$SQL->fetch_array($SQL->query("SELECT `forumatt_dir` FROM `".pkSQLPREFIX."_forumatt`"));
					#	@unlink("./".$del_go['forumatt_dir'].$del_att_ok['forumpost_forumatt_file']);
					#}
					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ENDE!

Ersetze es mit:

					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ANFANG!
					$del_att=$SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_POST."` WHERE (".$sqlcommand.") AND `forumpost_forumatt_file`!=''");
					while($del_att_ok=$SQL->fetch_array($del_att)) {
						$del_go=$SQL->fetch_array($SQL->query("SELECT `forumatt_dir` FROM `".pkSQLPREFIX."_forumatt`"));
						@unlink("./".$del_go['forumatt_dir'].$del_att_ok['forumpost_forumatt_file']);
					}
					#Forum Anhang Addon von ESA-Lucky. Nur aktivieren, wenn das Addon installiert wurde ENDE!

=======================================================================
Das war es auch schon :)

============================

Support & Fragen: 

Support gebe ich gerne unter www.kit-coding.de


