Página 1 de 1

Duda Con Modificaciones Del Mod Autolinks

Publicado: 23 Mar 2007, 00:43
por Darakris
URL: www.animew.net/pruevaforo
Plantilla(s) usuada(s): la que viene como predeterminada cuando recien lo instalas x_x
MODs instalados: ninguno
Version de phpBB : (2.0.22)
Parches Instalados: ninguno
Servidor: de pago

Hola, soy nuevo como podran ver por lo que voy a preguntar. e andado haciendo pruevas con distintos foros, pero no les entiendo, los hecho a perder y termino borrandolos x_x.
El foro lo instale con el cpanel que me dieron en mi host con una herramienta de scrips preinstalados llamado fantastico.
Quiero tratar de meter algunos mods (en especifico el de autolinks v2.1.4 que haye en descarga en este mismo foro, péro me tope con lo siguiente:

Código: Seleccionar todo

#-----[ OPEN ]---------------------------------------------------
#
privmsg.php

#
#-----[ FIND ]---------------------------------------------------
#
# NOTE: There is only one of these that has 1 tab space in front!!!
#
	$orig_word = array();

#
#-----[ BEFORE, ADD ]--------------------------------------------
#
	// Start Autolinks For phpBB2 MOD
	$orig_autolink = array();
	$replacement_autolink = array();
	obtain_autolink_list($orig_autolink, $replacement_autolink, $forum_id = 'pm');
	if( count($orig_autolink) )
	{
		$private_message = autolink_transform($private_message, $orig_autolink, $replacement_autolink);
	}
	else
	{
		$private_message = autolink_return_empty($private_message);
	}
	// End Autolinks For phpBB2 MOD

#
Mi duda es alrespecto de la nota "NOTE: There is only one of these that has 1 tab space in front!!!"
segun mi ingles dice: "solamente uno de estos tiene un espacio al frente"..
pero ps yo no hayo nada de diferente, los 4 tienen los mismos espacios enfrente x_x miren:

Código: Seleccionar todo

$orig_word = array();
	$replacement_word = array();
	obtain_word_list($orig_word, $replacement_word);

Código: Seleccionar todo

$orig_word = array();
		$replacement_word = array();
		obtain_word_list($orig_word, $replacement_word);

Código: Seleccionar todo

$orig_word = array();
	$replacement_word = array();
	obtain_word_list($orig_word, $replacement_word);

Código: Seleccionar todo

$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
Y ps no entiendo nada x_x.

La otra duda es en la misma instalacion del mod.

Código: Seleccionar todo

#-----[ SQL ]----------------------------------------------------
#
# NOTE: Change the 'phpbb_' prefix if yours is different.
#
CREATE TABLE `phpbb_autolinks` (
  `link_id` smallint(4) unsigned NOT NULL auto_increment,
  `link_order` smallint(4) NOT NULL default '0',
  `link_keyword` varchar(50) NOT NULL default '',
  `link_text` varchar(50) NOT NULL default '',
  `link_url` varchar(200) NOT NULL default '',
  `link_comment` varchar(200) default NULL,
  `link_style` varchar(200) default NULL,
  `link_forum` varchar(255) NOT NULL default '',
  `link_pm` tinyint(1) NOT NULL default '0',
  `link_int` tinyint(1) NOT NULL default '0',
  `link_viewing` tinyint(1) NOT NULL default '0',
  `link_counter` mediumint(6) NOT NULL default '0',
  KEY `link_id` (`link_id`)
) TYPE=MyISAM;

INSERT INTO phpbb_config (config_name, config_value) VALUES ('autolink_first', '0');

#
pero no se que significa esto ultimo:

Código: Seleccionar todo

) TYPE=MyISAM;

INSERT INTO phpbb_config (config_name, config_value) VALUES ('autolink_first', '0');
En cuanto a lo de "insert into phpbb_config (config_name, config_value) VALUES ('autolink_first', '0');"

Voy a phpmyadmin y busco donde me indican ahi pero no se como poner lo de " VALUES ('autolink_first', '0');" ni donde ponerlo x_x

thx, espero esta ves me puedan contestar pls x_x

Re: Duda Con Modificaciones Del Mod Autolinks

Publicado: 23 Mar 2007, 16:11
por HuanManwe

Código: Seleccionar todo

#-----[ SQL ]----------------------------------------------------
#
# NOTE: Change the 'phpbb_' prefix if yours is different.
#
CREATE TABLE `phpbb_autolinks` (
  `link_id` smallint(4) unsigned NOT NULL auto_increment,
  `link_order` smallint(4) NOT NULL default '0',
  `link_keyword` varchar(50) NOT NULL default '',
  `link_text` varchar(50) NOT NULL default '',
  `link_url` varchar(200) NOT NULL default '',
  `link_comment` varchar(200) default NULL,
  `link_style` varchar(200) default NULL,
  `link_forum` varchar(255) NOT NULL default '',
  `link_pm` tinyint(1) NOT NULL default '0',
  `link_int` tinyint(1) NOT NULL default '0',
  `link_viewing` tinyint(1) NOT NULL default '0',
  `link_counter` mediumint(6) NOT NULL default '0',
  KEY `link_id` (`link_id`)
) TYPE=MyISAM;

INSERT INTO phpbb_config (config_name, config_value) VALUES ('autolink_first', '0');

#
pero no se que significa... Todo eso es una sentencia SQL que simplemente debes copiar y pegar en tu base de datos, a través de phpMyAdmin, en la pestaña SQL.

Sobre el primer problema no sé qué puede ser, porque parece decir que edites sólo la sentencia que está separada del inicio de la línea con una tabulación, pero en tu caso parece que son 4 veces iguales. Quizá debes aplicar el mismo código 4 veces..