lista plików w folderze hooks:
boardIndexCalendar_b700dd2dadc4a2ee76273712a2ed57d4.php
boardIndexFacebookActivity_6a7e66f54b2bed89ac24aa213f4723a1.php
boardIndexFacebookLike_6dd13b5a8a79b25f71bfd973bc8015a3.php
boardIndexMembersOnlineToday_3a8df53d7d8678557c9ba4ababea6d2f.php
boardIndexNotifications_5a89451405d5b9ddaa757cf562f88ab3.php
boardIndexRecentTopics_4f67ccb296ea09c272d26df0d444d72c.php
boardIndexShareLinks_828f39da82e2f75a39fa2d0196b5746e.php
boardIndexSideBarAdCode_a932e4d33242238b67f456bde1a49c04.php
boardIndexStatusUpdates_9e4bac9edc7a79482907a9f71bac9a34.php
boardIndexWatchedItems_0517854267a50e96e69a8245191d4e71.php
boardIndexWhosChatting_f3733790fec071649ce709e0abac047e.php
chatTabCount_d275dd16b2fad1f0b2379e5187bc03cd.php
dp3tsiSkinHook_f6d414a118644cff321c6151c4fd50de.php
Treść pliku dp3tsiSkinHook_f6d414a118644cff321c6151c4fd50de.php
<?php
//-----------------------------------------------
// (DP31) Topic Starter Info
//-----------------------------------------------
//-----------------------------------------------
// Template Hook
//-----------------------------------------------
// Author: DawPi
// Site: http://www.ipslink.pl
// Written on: 22 / 09 / 2010
//-----------------------------------------------
// Copyright (C) 2010 DawPi
// All Rights Reserved
//-----------------------------------------------
class dp3tsiSkinHook
{
/**
* CONSTRUCTOR
**/
function __construct()
{
/* Make registry objects */
$this->registry = ipsRegistry::instance();
$this->DB = $this->registry->DB();
$this->lang = $this->registry->getClass('class_localization');
}
public function getOutput()
{
# O.o
}
public function replaceOutput( $output, $key )
{
$postData = $this->registry->output->getTemplate('topic')->functionData['topicViewTemplate'][0]['post_data'];
$starterId = $this->registry->output->getTemplate('topic')->functionData['topicViewTemplate'][0]['topic']['starter_id'];
if( is_array( $postData ) AND count( $postData ) )
{
$tag = '<!--hook.' . $key . '-->';
$last = 0;
foreach( $postData as $pid => $post )
{
$pos = strpos( $output, $tag, $last );
if( $pos )
{
$string = ( ( $post['author']['member_id'] == $starterId ) && ! $post['post']['new_topic'] ) ? $this->lang->words['dp3_tsi_txt'] : '';
$output = substr_replace( $output, $string . $tag, $pos, strlen( $tag ) );
$last = $pos + strlen( $tag . $string );
$string = "";
}
}
}
return $output;
}
} // End of class
P.S. Dzięki :-))))