#################################################################
## Mod Title: a picture to illustrate each one of your forum
## Mod Version: 1.0.0
## Author: Alain Brégeon <[email protected]> - [url]www.bregeon.org[/url]
##
## Description: This MOD adds a picture on each of your forums.
##
##
## Installation Level: (easy)
## Installation Time: 5 Minutes
## Files To Edit: viewforum.php, viewforum_body.tpl
## Included Files: no
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbbhacks.com for the
## latest version of this MOD.
##
#################################################################
##
## Author Note: english version
## you must know the identifier of each one of your forums!
##
## here how I proceeded
##
## approach the mouse of the link of your forum and you must see in bottom something which ## resembles that:
##
## http://www.yoururl/yourforum/viewforum.php?f=x
##
## where x is a number. Please note this number.
##
## the name of the picture of this fourm will be called imx.gif, where X is the number of the ## ## forum which you noted.
## ie im1.gif for the forum number 1
## im22.gif for the forum number 22
##
## version française
##
## Pour que ça fonctionne vous devez connaître l'identifiant de votre forum (id)!
##
## voici comment j'ai procédé
##
## vous approchez la souris du lien du forum concerné et en bas dans la barre d'état vous lisez quelque chose qui
## ressemble à ça:
##
## http://www.votre_url/votre_forum/viewforum.php?f=x
##
## ou x est un nombre. Notez ce nombre.
##
## Le nom de l'image qui se trouvera sur la page de ce forum se nommera imx.gif, où X est le numéro du
## forum noté tout à l'heure
##
## par exemple im1.gif pour le forum numéro 1
## im22.gif pour le forum numéro 22
##
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_row['forum_name'],
'MODERATORS' => $forum_moderators,
'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'mon_image' => 'http://yoururl/yourpath/im'.$forum_id.'.gif',
#
#-----[ OPEN ]------------------------------------------
#
templates/your_theme/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
<span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br />
<br />
{LOGGED_IN_USER_LIST}</b></span></td>
<td align="right" valign="bottom" nowrap width="191">
#
#-----[ AFTER, ADD ]------------------------------------------
#
<p><span class="gensmall"><img src="{mon_image}"></span></p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
# Be Happy