Quelqu'un saurait il les modifications à faire ?
Merci
Modérateur: Equipe
















//words surronded by brackets []
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_type, $type . "\${1}" . $end_style . "\${2}", censor_text($row['topic_title']) );
$replace = ereg_replace("$type\[","$type ",$replace);
$replace = ereg_replace("\]$end_style"," $end_style",$replace);
}
"\${2}", censor_text($row['topic_title']) );"\${2}", $topic_title );
##############################################################
## MOD Title: Topic Title Highlighter
## MOD Author: Inconnu < N/A > N/A
##
## MOD Description: Permet de mettre des couleurs dans les titre des messages
##
## MOD Version: X.0.0
##
## Installation Level: Easy
## Installation Time: 5 minutes
##
## Files To Edit: viewforum.php
## search.php
## viewtopic.php
## posting.php
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
##
## Author Notes: Pour mettre une couleur dans vos titre, vous devez utiliser une balise composer soit de
## [votre titre], soit |votre titre|, soit #votre titre#, soit *votre titre*
##
##############################################################
##
## Informations : Ce mod a été testé et remit en page par l'equipe mod de phpBB.biz
##
## Vous en trouverez la derniere version a cette adresse :
## http://forum.phpbb.biz/viewtopic.php?t=94219
##
## Le support se trouve a cette adresse :
## http://forum.phpbb.biz/viewtopic.php?t=96390
##
## Adapté à phpBB3 par KSAR de phpBB.biz
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
// Okay, lets dump out the page ...
if (sizeof($topic_list))
{
#
#-----[ AFTER, ADD ]------------------------------------
#
//words surronded by brackets []
$type = "<span style=\"background-color:white;color:green;border:green 1px solid\">";
$search_type = "#(\[.*?\])(.*)#";
$end_style = "</span>";
//Propositions, surronded by asteriscs *
$propositions = "<span style=\"background-color:white;color:red;border:red 1px solid\">";
$search_propositions = "#(\*.*?\*)(.*)#";
//Important Announces, starting by vertical bar |
$notifications = "<span style=\"background-color:white;color:blue;border:blue 1px solid\">";
$search_notifications = "#(\|.*?\|)#";
//News, starting by sharp #
$news = "<span style=\"background-color:darkblue;color:white;border:white 1px solid\">";
$search_news = "#(\#.*?\#)(.*)#";
$end_style = "</span>";
#
#-----[ FIND ]------------------------------------------
#
$row = &$rowset[$topic_id];
#
#-----[ AFTER, ADD ]------------------------------------
#
$topic_title = censor_text($row['topic_title']);
$replace = $topic_title;
//words surronded by brackets []
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_type, $type . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$type\[","$type ",$replace);
$replace = ereg_replace("\]$end_style"," $end_style",$replace);
}
//Propositions, surronded by asteriscs *
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_propositions, $propositions . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$propositions\*","$propositions ",$replace);
$replace = ereg_replace("\*$end_style"," $end_style",$replace);
}
//Important Announces, starting by vertical bar |
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_notifications, $notifications . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$notifications\|","$notifications ",$replace);
$replace = ereg_replace("\|$end_style"," $end_style",$replace);
}
//News, starting by sharp #
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_news, $news . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$news#","$news ",$replace);
$replace = ereg_replace("#$end_style"," $end_style",$replace);
}
$topic_title = $replace;
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_TITLE' => censor_text($row['topic_title']),
#
#-----[ REPLACE BY ]------------------------------------
#
'TOPIC_TITLE' => $topic_title,
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
if ($sql_where)
{
#
#-----[ AFTER, ADD ]------------------------------------
#
//words surronded by brackets []
$type = "<span style=\"background-color:white;color:green;border:green 1px solid\">";
$search_type = "#(\[.*?\])(.*)#";
$end_style = "</span>";
//Propositions, surronded by asteriscs *
$propositions = "<span style=\"background-color:white;color:red;border:red 1px solid\">";
$search_propositions = "#(\*.*?\*)(.*)#";
//Important Announces, starting by vertical bar |
$notifications = "<span style=\"background-color:white;color:blue;border:blue 1px solid\">";
$search_notifications = "#(\|.*?\|)#";
//News, starting by sharp #
$news = "<span style=\"background-color:darkblue;color:white;border:white 1px solid\">";
$search_news = "#(\#.*?\#)(.*)#";
$end_style = "</span>";
#
#-----[ FIND ]------------------------------------------
#
$topic_title = censor_text($row['topic_title']);
#
#-----[ AFTER, ADD ]-----------------------------------
#
$replace = $topic_title;
//words surronded by brackets []
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_type, $type . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$type\[","$type ",$replace);
$replace = ereg_replace("\]$end_style"," $end_style",$replace);
}
//Propositions, surronded by asteriscs *
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_propositions, $propositions . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$propositions\*","$propositions ",$replace);
$replace = ereg_replace("\*$end_style"," $end_style",$replace);
}
//Important Announces, starting by vertical bar |
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_notifications, $notifications . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$notifications\|","$notifications ",$replace);
$replace = ereg_replace("\|$end_style"," $end_style",$replace);
}
//News, starting by sharp #
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_news, $news . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$news#","$news ",$replace);
$replace = ereg_replace("#$end_style"," $end_style",$replace);
}
$topic_title = $replace;
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$topic_data['topic_title'] = censor_text($topic_data['topic_title']);
#
#-----[ AFTER, ADD ]------------------------------------
#
$topic_title = $topic_data['topic_title'];
//words surronded by brackets []
$type = "<span style=\"background-color:white;color:green;border:green 1px solid\">";
$search_type = "#(\[.*?\])(.*)#";
$end_style = "</span>";
//Propositions, surronded by asteriscs *
$propositions = "<span style=\"background-color:white;color:red;border:red 1px solid\">";
$search_propositions = "#(\*.*?\*)(.*)#";
//Important Announces, starting by vertical bar |
$notifications = "<span style=\"background-color:white;color:blue;border:blue 1px solid\">";
$search_notifications = "#(\|.*?\|)#";
//News, starting by sharp #
$news = "<span style=\"background-color:darkblue;color:white;border:white 1px solid\">";
$search_news = "#(\#.*?\#)(.*)#";
$end_style = "</span>";
$replace = $topic_title;
//words surronded by brackets []
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_type, $type . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$type\[","$type ",$replace);
$replace = ereg_replace("\]$end_style"," $end_style",$replace);
}
//Propositions, surronded by asteriscs *
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_propositions, $propositions . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$propositions\*","$propositions ",$replace);
$replace = ereg_replace("\*$end_style"," $end_style",$replace);
}
//Important Announces, starting by vertical bar |
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_notifications, $notifications . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$notifications\|","$notifications ",$replace);
$replace = ereg_replace("\|$end_style"," $end_style",$replace);
}
//News, starting by sharp #
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_news, $news . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$news#","$news ",$replace);
$replace = ereg_replace("#$end_style"," $end_style",$replace);
}
$topic_title = $replace;
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_TITLE' => $topic_data['topic_title'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
'TOPIC_TITLE' => $topic_title,
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
add_form_key('posting');
#
#-----[ AFTER, ADD ]------------------------------------
#
$topic_title = censor_text($post_data['topic_title']);
//words surronded by brackets []
$type = "<span style=\"background-color:white;color:green;border:green 1px solid\">";
$search_type = "#(\[.*?\])(.*)#";
$end_style = "</span>";
//Propositions, surronded by asteriscs *
$propositions = "<span style=\"background-color:white;color:red;border:red 1px solid\">";
$search_propositions = "#(\*.*?\*)(.*)#";
//Important Announces, starting by vertical bar |
$notifications = "<span style=\"background-color:white;color:blue;border:blue 1px solid\">";
$search_notifications = "#(\|.*?\|)#";
//News, starting by sharp #
$news = "<span style=\"background-color:darkblue;color:white;border:white 1px solid\">";
$search_news = "#(\#.*?\#)(.*)#";
$end_style = "</span>";
$replace = $topic_title;
//words surronded by brackets []
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_type, $type . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$type\[","$type ",$replace);
$replace = ereg_replace("\]$end_style"," $end_style",$replace);
}
//Propositions, surronded by asteriscs *
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_propositions, $propositions . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$propositions\*","$propositions ",$replace);
$replace = ereg_replace("\*$end_style"," $end_style",$replace);
}
//Important Announces, starting by vertical bar |
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_notifications, $notifications . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$notifications\|","$notifications ",$replace);
$replace = ereg_replace("\|$end_style"," $end_style",$replace);
}
//News, starting by sharp #
if ( $replace == $topic_title )
{
$replace = preg_replace( $search_news, $news . "\${1}" . $end_style . "\${2}", $topic_title );
$replace = ereg_replace("$news#","$news ",$replace);
$replace = ereg_replace("#$end_style"," $end_style",$replace);
}
$topic_title = $replace;
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_TITLE' => censor_text($post_data['topic_title']),
#
#-----[ REPLACE WITH ]------------------------------------------
#
'TOPIC_TITLE' => $topic_title,
#
#-----[ OPEN ]------------------------------------------
#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Aucun support par mail, MP ou msn.
Mon blogue: Mon blogue | Mon jeu de rôles: Sénat Galactique | Mon hébergeur: Free-H


Aucun support par mail, MP ou msn.
Mon blogue: Mon blogue | Mon jeu de rôles: Sénat Galactique | Mon hébergeur: Free-H



Retourner vers Aide au développement et à l'adaptation de MODs
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités