- Kod: Tümünü seç
##############################################################
## MOD Title: Highlight fix
## MOD Author: Yakusha < yakusha@tnn.net > (sabri ünal) http://www.canver.net
## MOD Description: Arama sayfasında arama renklendirme özelliğinin linklerde fazladan gösterilmesini kapatır.
## MOD Version: 1.0.1
##
## Installation Level: easy
## Installation Time: 1 Minutes
## Files To Edit: (1) search.php
## Included Files: n/a
############################################################
#
## Güvenliğiniz için mod güncellemelerini http://canver.net sitesi üzerinden takip ediniz.
#
############################################################
## MOD History:
##
## 2006-05-10 - Version 1.0.1
## - renklendirilecek kelime için trim() fonksiyonu uygulanması eklendi
##
## 2006-05-03 - Version 1.0.0
## - Initial Release
##
#############################################################
#
## Mod yüklemeden önce dosyalarınızın yedeğini almayı ihmal etmeyiniz.
#
#############################################################
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
for($i = 0; $i < count($searchset); $i++)
{
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']);
$topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active");
$post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active") . '#' . $searchset[$i]['post_id'];
#
#-----[ REPLACE ]-----------------------------------
#
if ( $highlight_active != '')
{
$colorize = '';
$colorize = "&highlight=". trim($highlight_active);
}
for($i = 0; $i < count($searchset); $i++)
{
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']);
$topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . $colorize);
$post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . $colorize) . '#' . $searchset[$i]['post_id'];
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
mod güncellenmiştir ve trim özelliği eklenmiştir.