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.

Bug del auto group 1.0.2Tema Solucionado

Soporte de MODs para phpBB 3.0.x
Dudas sobre AutoMOD aquí por favor.
Cerrado
Avatar de Usuario
angelismo
Administrador
Mensajes: 5707
Registrado: 20 May 2006, 02:42
Género:
Edad: 36

Bug del auto group 1.0.2

#1

Mensaje por angelismo »

Con el modo debug activado ,al editar un grupo y cambiar alguna opción ,sobre todo el rango ,el color y la posición en la layenda(tengo instalado el Group Legend Positioning ),salta este error del autogroup
[phpBB Debug] PHP Notice: in file /includes/functions_autogroup.php on line 245: Undefined index: group_auto_default

Warning: Cannot modify header information - headers already sent by (output started at /home/mundoweb/public_html/foro/includes/functions.php:3772) in /home/mundoweb/public_html/foro/adm/index.php on line 150

Warning: Cannot modify header information - headers already sent by (output started at /home/mundoweb/public_html/foro/includes/functions.php:3772) in /home/mundoweb/public_html/foro/adm/index.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/mundoweb/public_html/foro/includes/functions.php:3772) in /home/mundoweb/public_html/foro/adm/index.php on line 153

Warning: Cannot modify header information - headers already sent by (output started at /home/mundoweb/public_html/foro/includes/functions.php:3772) in /home/mundoweb/public_html/foro/adm/index.php on line 154
linea 245 de includes/functions_autogroup.php

Código: Seleccionar todo

$make_default = $group_attributes['group_auto_default']; 
linea 46 del language/es/mods/info_acp_auto_groups.php correspondiente a la variable de idioma que indica el bug

Código: Seleccionar todo

'DEFAULT_AUTO_GROUP'    => 'Hacer automaticamente por defecto', 
y añado tambien los cambios que hace el mod en includes/acp/acp_groups.php
buscar

Código: Seleccionar todo

'message_limit'        => request_var('group_message_limit', 0), 
añadir despues

Código: Seleccionar todo

                        // auto groups mod
                        'min_days'        => request_var('min_group_days', 0),
                        'max_days'        => request_var('max_group_days', 0),
                        'min_warnings'    => request_var('min_group_warnings', 0),
                        'max_warnings'    => request_var('max_group_warnings', 0),
                        'min_posts'        => request_var('min_group_posts', 0),
                        'max_posts'        => request_var('max_group_posts', 0),
                        'auto_default'    => isset($_POST['group_auto_default']),  
y añado tambien la linea correspondiente del adm/style/auto_groups.html

Código: Seleccionar todo

<dl>
		<dt><label for="group_auto_default">{L_DEFAULT_AUTO_GROUP} </label><br /><span>{L_DEFAULT_AUTO_GROUP_EXPLAIN}</span></dt>
		<dd><input type="checkbox" name="group_auto_default" {S_GROUP_AUTO_DEFAULT} /></dd>
	</dl>
y por ultimo el enlace al mod
http://www.phpbb-es.com/foro/viewtopic.php?f=75&t=24496
En el tema del mod en phpbb.com ,el bug esta reportado hace tiempo ,pero el autor del mod nunca ha dado la solución.

Antes de nada, lee las Normas de phpBB-Es y las Normas de Soporte.

Como corregir el copyright de phpbb3 - Si tu foro no tiene copyright ,lee la guia antes de pedir soporte.
No doy soporte por MP ni por MSN ,solo en los foros.


© angelismo- Webmaster de Webmastercreativo
© angelismo -Administrador de phpBB-es

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Bug del auto group 1.0.2  Tema Solucionado

#2

Mensaje por leviatan21 »

angelismo escribió: linea 245 de includes/functions_autogroup.php

Código: Seleccionar todo

$make_default = $group_attributes['group_auto_default']; 
....
En el tema del mod en phpbb.com ,el bug esta reportado hace tiempo ,pero el autor del mod nunca ha dado la solución.
Sabes que ni siquiera le encuentro sentido y/o uso a esa linea ¿ :lee ?
No se utiliza en nade de esa función, quizás habría que probar eliminándola ( o comentarla ) :nolose:
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Avatar de Usuario
angelismo
Administrador
Mensajes: 5707
Registrado: 20 May 2006, 02:42
Género:
Edad: 36

Re: Bug del auto group 1.0.2

#3

Mensaje por angelismo »

Comentando la linea ,el error ya no sale ,asi tema solcuionado ,gracias leviatan :bravo:

Antes de nada, lee las Normas de phpBB-Es y las Normas de Soporte.

Como corregir el copyright de phpbb3 - Si tu foro no tiene copyright ,lee la guia antes de pedir soporte.
No doy soporte por MP ni por MSN ,solo en los foros.


© angelismo- Webmaster de Webmastercreativo
© angelismo -Administrador de phpBB-es

Cerrado

Volver a “Soporte de MODs”