Image for each forum on index

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Image for each forum on index

PostAuthor: GoatBoy » Wed Mar 26, 2008 8:25 am

[flash=,:1afc9rv1]http://70.170.53.70:1520/index.jpg[/flash:1afc9rv1]

the image on index shows in forum heading when you go to forum
this is the code for phpbb2 2.0.22. i think its a nice little "visual" touch and was wondering if someone could rewrite it for im141.
MOD Title: Unique Image for Each forum on Index, Viewforum & Viewtopic Pages + New post highlight GIF

thanks

Code: Select all
##-----[ OPEN ]---------------------------------#templates/subSilver/index_body.tpl  ##-----[ FIND ]---------------------------------#     <BEGIN>   <tr>     <td><img></td>     <td><span> <a>{catrow.forumrow.FORUM_NAME}</a><br>       </span> <span>{catrow.forumrow.FORUM_DESC}<br>       </span><span>{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>  ##-----[ REPLACE WITH ]------------------------------------------#     <BEGIN>   <tr>     <td><img></td>     <td>         <TABLE>         <TR>             <td><span>             <a>{catrow.forumrow.FORUM_NAME}</a>                 <img><br></span>             <span>{catrow.forumrow.FORUM_DESC}<br></span>             <span>{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>             <td><A>             <img></A></TD>         </TR>         </TABLE>     </td>  ##-----[ OPEN ]---------------------------------#templates/subSilver/subSilver.cfg    ##-----[ FIND ]---------------------------------#  $images['forum'] = "$current_template_images/folder_big.gif";$images['forum_new'] = "$current_template_images/folder_new_big.gif";$images['forum_locked'] = "$current_template_images/folder_locked_big.gif";  ##-----[ AFTER, ADD ]------------------------------------------#  $images['forum_new_img'] = "$current_template_images/img_new.gif";$images['forum_no_new'] = "$current_template_images/img_nonew.gif";  ##-----[ OPEN ]---------------------------------#  index.php  ##-----[ FIND ]---------------------------------#                                 }                                 $folder_image = ( $unread_topics ) ? $images['forum_new'] ];                                 $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];##-----[ AFTER, ADD ]------------------------------------------#                                 $folder_new_image = ( $unread_topics ) ? $images['forum_new_img'] : $images['forum_no_new'];                                 $folder_unique_image = 'templates/subSilver/images/img_' . $forum_id . '.gif';  ##-----[ FIND ]---------------------------------#                             $template->assign_block_vars('catrow.forumrow',  array(                                 'ROW_COLOR' => '#' . $row_color,                                 'ROW_CLASS' => $row_class,                                 'FORUM_FOLDER_IMG' => $folder_image,  ##-----[ AFTER, ADD ]------------------------------------------#                                 'FOLDER_NEW_IMAGE' => $folder_new_image,                                   'FORUM_FOLDER_UNQIMG' => $folder_unique_image,    # #-----[ 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 ]------------------------------------------ #         'FORUM_IMAGE' => 'templates/subSilver/images/img_' . $forum_id . '.gif',    # #-----[ OPEN ]------------------------------------------ #templates/subSilver/viewforum_body.tpl  # #-----[ FIND ]------------------------------------------ #       <td><a>{FORUM_NAME}</a><br><span><b>{L_MODERATOR}: {MODERATORS}<br><br>{LOGGED_IN_USER_LIST}</b></span></td>       <td><span><b>{PAGINATION}</b></span></td>     </tr>##-----[ REPLACE WITH ]------------------------------------------ #       <td><a>{FORUM_NAME}</a><br><span><b>{L_MODERATOR}: {MODERATORS}<br><br>{LOGGED_IN_USER_LIST}</b></span></td>       <td><span><A><img></A></span></td>       <td><span><b>{PAGINATION}</b></span></td>     </tr>   </table>   <table>  # #-----[ OPEN ]------------------------------------------ #viewtopic.php  # #-----[ FIND ]------------------------------------------ #$template->assign_vars(array(     'FORUM_ID' => $forum_id,         # #-----[ AFTER, ADD ]------------------------------------------ #         'FORUM_IMAGE' => 'templates/subSilver/images/img_' . $forum_id . '.gif',    # #-----[ OPEN ]------------------------------------------ #templates/subSilver/viewtopic_body.tpl  # #-----[ FIND ]------------------------------------------ #   <tr>     <td><a>{TOPIC_TITLE}</a><br>       <span><b>{PAGINATION}</b><br>         </span></td>  ##-----[ AFTER, ADD ]------------------------------------------ #     <td><span><A><img></A>    </span></td>    ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM
Last edited by GoatBoy on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Boomer Sooner
User avatar
GoatBoy
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 16, 2008 5:46 pm
Cash on hand: 0.00

Return to Mods/Hacks

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot], Vendethiel