Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Forum icons (read/unread) for index.php

Aquí­ podrás dejar tus dudas sobre MODs o MODificaciones de tu phpBB2
  Reglas del Foro
Antes de participar en los foros, leer esto por favor.
Normas generales de phpBB-Es y las de Soporte
Cerrado
novatophp
Observador/a
Mensajes: 13
Registrado: 27 Feb 2005, 19:42

Forum icons (read/unread) for index.php

#1

Mensaje por novatophp »

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:

Código: Seleccionar todo

Parse error: parse error, unexpected '\"' in /home/jaqueara/domains/jaquearagon.com/public_html/phpbb/index.php on line 703
.

Pongo 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 ]------------------------------------------ 
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.
Última edición por novatophp el 12 Abr 2005, 02:16, editado 1 vez en total.

Avatar de Usuario
ThE KuKa
Administrador
Mensajes: 10432
Registrado: 04 Ene 2004, 19:27
Género:
Edad: 50

#2

Mensaje por ThE KuKa »

í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿Has revisado el codigo del MOD en el index.php?

S@lu2

📌 Raul [ThE KuKa] en phpBB 📌
✅ Jr. Extension Validator - Jr. Styles Validator - Style Customisations - Translator - International Support Team
✅

Si te gustan mis estilos, traducciones, etc. y quieres mostrar algo de aprecio, no dudes en hacer una donación Imagen
:flag_es: phpBB España - En línea desde 2003 :heart:



chenonx
Observador/a
Mensajes: 6
Registrado: 29 Jun 2005, 10:54

Re: Forum icons (read/unread) for index.php

#3

Mensaje por chenonx »

Yo tb tengo un problemilla con este mismo mod. :oops:

Ya he editado todos los archivos bien como dice en el bloc de notas,pero en el ACP no me sale nada para poner los iconos.

He estado mirando por todo el sistema de administracií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n,pero no lo veo por ninguna parte..

en teorí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­a por donde tiene que salir?

gracias

Chenon :wink:

Cerrado

Volver a “Soporte, preguntas sobre MODs de phpBB 2”