Forum icons (read/unread) for index.php
Publicado: 12 Abr 2005, 02:07
				
				Hola a todos.
He intentado instalar este MOD que lo pueden encontrar aquí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í? y he probado a instalarlo dos veces y me da el siguiente error:.
Pongo el MOD completo por si pueden ver el fallo:
Donde me da el error es en el mismo index.php  Prueben a ver si les da el mismo error que a mí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í? o les va bien.
			He intentado instalar este MOD que lo pueden encontrar aquí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í? y he probado a instalarlo dos veces y me da el siguiente error:
Código: Seleccionar todo
Parse error: parse error, unexpected '\"' in /home/jaqueara/domains/jaquearagon.com/public_html/phpbb/index.php on line 703Pongo el MOD completo por si pueden ver el fallo:
Código: Seleccionar todo
## MOD Title:		Forum icons (read/unread) for index.php
## MOD Author:		Sergeant  http://www.vladivostok.ru/forum4
##
## MOD Description:	This mod allows admin to assign two icons to each forum of the board
## One icon will show up in case of new messages, other will be shown when there are
## no new messages. These icons will be in main table (index.php).
## If no icons specified will be shown default icon.
##
## Author notes: This mod is an improved variant of 'Forum Icon with [acronym="Panel de control del Administrador"]ACP[/acronym] Control' mod (by Mac (Y.C. LIN)).
##
## Usage: After installation you'll have to put two images (for each forum you would like to modify)
## for both conditions (read/unread) to your root dir (where index.php is located).
## The last thing will be entering the names of those images in forum properties (via admin control panel).
## 
## Installation Level:	Easy 
## Installation Time:	3 Minutes 
##
## Files To Edit:	5
##	index.php
##	admin/admin_forums.php
##	language/lang_english/lang_admin.php
##	templates/subSilver/admin/forum_edit_body.tpl
##	templates/subSilver/index_body.tpl
##
## Included Files: 	n/a
##
##
# 
#-----[ SQL ]------------------------------------------ 
#
# Remember to change the table prefix used on your database
ALTER TABLE `phpbb_forums` ADD `forum_icon_new_post` VARCHAR( 255 ) default NULL;
ALTER TABLE `phpbb_forums` ADD `forum_icon_no_post` VARCHAR( 255 ) default NULL;
# 
#-----[ OPEN ]------------------------------------------ 
#  
admin/admin_forums.php
# 
#-----[ FIND ]------------------------------------------ 
# 
				$forumstatus = $row['forum_status'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//Forum icons
				$forumiconnewpost = $row['forum_icon_new_post'];
				$forumiconnopost = $row['forum_icon_no_post'];
//Forum icons
# 
#-----[ FIND ]------------------------------------------ 
# 
				$forumstatus = FORUM_UNLOCKED;
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//Forum icons
				$forumiconnewpost = '';
				$forumiconnopost = '';
//Forum icons
# 
#-----[ FIND ]------------------------------------------ 
# 
				'L_FORUM_STATUS' => $lang['Forum_status'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//Forum icons
				'L_FORUM_ICON_NEW_POST' => $lang['Forum_icon_new_post'],
				'L_FORUM_ICON_NO_POST' => $lang['Forum_icon_no_post'],
//Forum icons
# 
#-----[ FIND ]------------------------------------------ 
#
				'DESCRIPTION' => $forumdesc)
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
				'DESCRIPTION' => $forumdesc,
//Forum icons
				'ICONNEWPOST' => ( $forumiconnewpost ) ? $forumiconnewpost : '',
				'ICONNEWPOST_DISPLAY' => ( $forumiconnewpost ) ? '' : '',
				'ICONNOPOST' => ( $forumiconnopost ) ? $forumiconnopost : '',
				'ICONNOPOST_DISPLAY' => ( $forumiconnopost ) ? '' : ''
//Forum icons
				)
# 
#-----[ FIND ]------------------------------------------ 
#
			// There is no problem having duplicate forum names so we won't check for it.
			$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
forum_status
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
, forum_icon_new_post, forum_icon_no_post
# 
#-----[ FIND ]------------------------------------------ 
#
				VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
, " . intval($HTTP_POST_VARS['forumstatus']) . "
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumiconnewpost']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumiconnopost']) . "'
# 
#-----[ FIND ]------------------------------------------ 
#
			$sql = "UPDATE " . FORUMS_TABLE . "
				SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
				WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
, forum_icon_new_post = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumiconnewpost']) . "', forum_icon_no_post = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumiconnopost']) . "'
# 
#-----[ FIND ]------------------------------------------ 
# 
					'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//Forum icons
					'FORUM_ICON_NEW_POST_IMG' => ( $forum_rows[$j]['forum_icon_new_post'] ) ? '' : '',
					'FORUM_ICON_NO_POST_IMG' => ( $forum_rows[$j]['forum_icon_no_post'] ) ? '' : '',
//Forum icons
# 
#-----[ OPEN ]------------------------------------------ 
#  
index.php
# 
#-----[ FIND ]------------------------------------------ 
# 
								$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; 
								$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 
							}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
                                $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 
                                if($forum_data[$j]['forum_icon_new_post']) {
                                    $folder_image = ( $unread_topics ) ? '' : '';
                                } else{
                                    $folder_image = ( $unread_topics ) ? '' : '';
                                };
							}
#
# Remember to do this for each installed template!
#
#-----[ OPEN ]------------------------------------------ 
#  
templates/subSilver/admin/forum_edit_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# 
	 
	  {L_FORUM_NAME} 
	   
	 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	 
	  {L_FORUM_ICON_NEW_POST}
	     {ICONNEWPOST_DISPLAY}
	
	
	 
	  {L_FORUM_ICON_NO_POST}
	     {ICONNOPOST_DISPLAY}
	
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/index_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# 
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
{catrow.forumrow.FORUM_FOLDER_IMG}
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------