Página 1 de 1

Dicemod no muestra los dados

Publicado: 20 Dic 2010, 12:47
por callosino
URL: http://codicerol.zobyhost.com
Versión phpBB: phpBB3 (3.0.8)
MODs Instalados: dicemod_0.7.2
Plantilla(s) usada(s): prosilver y subsilver2
Servidor: Gratuito
Actualización desde otra versión:
Conversión desde otro sistema de foros:

Acabo de crear el foro que arriba os indico y necesito un mod de dados y el unico que he visto ha sido el dicemod. Lo he instalado como me dice el install.xml y todo como lo dice y a la hora de poner el BBCODE [dice]1d6[/dice] me marca eso escrito y no lo interpreta y no me hace lo del mod. ¿Que puede ser?

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 14:52
por Alorse
Parece que te hace falta algún paso de instalación del MOD, por ejemplo crear el BBcode (podria ser)
De donde descargaste dicho MOD?

Dicemod no muestra los dados

Publicado: 20 Dic 2010, 15:56
por callosino
Sobre la instalación que yo sepa no he saltado nada he ido poco a poco, me he tirado una hora para hacerlo xD. Y donde me lo descargue, desde phpbb la pagina oficial.

¿Desde el automod se podría instalar o algo? :S :S

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 16:48
por Alorse
No se, si sera compatible con AutoMOD, si me muestras exactamente de donde para yo descargarlo y no irme a equivocar te puedo decir que mas hacer.

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 17:32
por callosino
Aquí tienes la ruta del enlace http://www.phpbb.com/community/viewtopi ... &t=1816135

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 18:02
por Alorse
callosino, seguiste estos pasos correctamente?
Ejecutaste el archivo updateDatabase.php y creaste los BBcodes [dice] y [dice=] ?

Código: Seleccionar todo

AFTER Uploading the new and updated files, there are 6 tasks that you need to perform manually:

ONE: Apply changes to the styles you want to use.
(1)	If you only want to use the prosilver style, follow the instructions in styles/install_style_prosilver.xml
(2)	Otherwise change the same template file mentioned in install_style_prosilver.xml in the styles you want to use in a manner similar to the instructions provided for the prosilver style.

TWO: Updating the database
(1)	Open up an internet browser
(2)	Navigate to the updateDatabase.php file in your base phpbb directory
(3)	Let that file install the needed database updates
(4)	Delete updateDatabase.php after it has finished

THREE: ACP BBCode addition for [dice]
(1)	Go to Administration Control Panel
(2)	Navigate to Posting -> BBCodes -> Add a new BBcode
(3)	Under "BBCode usage", enter: [dice]{TEXT}[/dice]
(4)	Under "HTML replacement", leaves it empty
(5)	Under "Help line", enter: CUSTOM_BBCODE_DICE_HELP
(6)	Under "Display on posting page", select the box to display the button for [dice]
(7)	Click Submit to save your new BBcode
(8)	Get your BBcode ID by: 
	(8.1)	Click on the "Edit (green image)" button
	(8.2)	Remember the ID on the URL (i.e. &mode=bbcodes&action=edit&bbcode=XX, XX is the number)
(9)	Find define('DICE_BBCODE_ID', 1000); in includes/constants.php
(10) Change 1000 to the bbcode ID XX from (8), e.g. define('DICE_BBCODE_ID', 18);

FOUR: ACP BBCode addition for [dice=]
(1)	Go to Administration Control Panel
(2)	Navigate to Posting -> BBCodes -> Add a new BBcode
(3)	Under "BBCode usage", enter: [dice={TEXT1}]{TEXT2}[/dice]
(4)	Under "HTML replacement", leaves it empty
(5)	Under "Help line", leave it empty
(6)	Under "Display on posting page", do not select the box to display the button for [dice=]
(7)	Click Submit to save your new BBcode
(8)	Get your BBcode ID by: 
	(8.1)	Click on the "Edit (green image)" button
	(8.2)	Remember the ID on the URL (i.e. &mode=bbcodes&action=edit&bbcode=XX, XX is the number)
(9)	Find define('DICE_ACTION_BBCODE_ID', 2000); in includes/constants.php
(10) Change 2000 to the bbcode ID XX from (8), e.g. define('DICE_ACTION_BBCODE_ID', 18)

FIVE: ACP Module setup
(1)	Go to Administration Control Panel
(2)	Navigate to System -> Module Management/Administration Control Panel
(3)	Enable and enter ".MODS"
(4)	Create a new Category named "Dicemod" and enable it
(5)	Enter "Dicemod"
(6)	Create a new Module named "DICEMOD_GENERAL", enable it, display it and choose Dicemod[acp_dicemod] from the module list. Leave the module mode as it is.
(7)	Go to the ACP's General Tab and clear the cache.

SIX: Enable rolling dice
(1)	Edit the fora you wish to enable rolling dice in via acp
(2)	Toggle the permission level of your choice and submit
(3)	Go to the permissions tab and enable the users/groups of your choice to roll dice in the selected fora - this is only needed for fora which are set to the "Depend on user" level
(4) Go roll some dice =)

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 19:55
por callosino
Sí, ademas este paso:

Código: Seleccionar todo

Create a new Module named "DICEMOD_GENERAL", enable it, display it and choose Dicemod[acp_dicemod] from the module list. Leave the module mode as it is.
Me lié mucho y al final lo puse bien.

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:00
por jakk
yo creo que te falta el paso 8, 9 y 10 del apartado 3 y 4 ...que es obtener la ID de los bbcodes creados en el ACP y reemplazarlo en el archivo includes/constants.php
estás seguro de haber hecho eso?

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:02
por callosino
Sí, es el 13 y el 14 xD

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:03
por Alorse
Bueno la verdad no se que decirte, si pudieras dejar un usuario de prueba con acceso al ACP seria excelente porque parece como si el MOD no existiera.

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:16
por callosino
Ya te lo he pasado por mensaje privado.

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:28
por Alorse
ya también editaste el archivo includes/constants.php?
Que en tu caso seria hacer la siguiente edición:
Buscar:

Código: Seleccionar todo

define('DICE_BBCODE_ID', 1000);
define('DICE_ACTION_BBCODE_ID', 2000); 
cambiar por:

Código: Seleccionar todo

define('DICE_BBCODE_ID', 13);
define('DICE_ACTION_BBCODE_ID', 14); 
Fíjate que no tengas "18" como dice en el ejemplo.

PD: ahí modifique unas opciones desde el ACP para los BBcodes que estaban erroneas.

Re: Dicemod no muestra los dados

Publicado: 20 Dic 2010, 20:50
por callosino
Si lo tengo, aquí lo tienes lo que yo tengo:

Código: Seleccionar todo

/*
BEGIN DICEMOD
*/
define('DICE_BBCODE_ID', 13);
define('DICE_ACTION_BBCODE_ID', 14);
/*
END DICEMOD
*/