Page 2 of 7

Re: [BETA] External Links - URL Manager

Posted: Thu Nov 13, 2014 6:42 pm
by Anv@r.all
button class does not need to use, it was a temporary solution, better postlink.

Other wishes to extent of free time will be made.


Holger, Thank you! :D

Re: [BETA] External Links - URL Manager

Posted: Thu Nov 13, 2014 9:00 pm
by Raul [ThE KuKa]
Spanish translation ready ;)

Code: Select all

<?php
/**
*
* External Links [Spanish]
*
* @package info_acp_exlinks.php
* @copyright (c) 2014 Anvar http://bb3.mobi
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(
	'ACP_MODED_LINKS_TITLE'			=> 'Enlaces Externos',

	'ACP_MODED_LINKS'				=> 'Gestionar enlaces',
	'ACP_MODED_LINKS_EXPLAIN'		=> 'Anvar (c) <a href="http://bb3.mobi">BB3.Mobi</a>',
	'ACP_MODED_LINKS_DESCRIPTION'	=> 'Aquí puede personalizar la visualización de todos los enlaces externos publicados en el foro.',

	'ACP_MODED_LINKS_SETTINGS'		=> 'Ajustes básicos de enlaces',
	'ACP_TARGET_ATTRIBUTE'			=> '¿Usar el atributo «target»?',
	'ACP_TARGET_ATTRIBUTE_EXPLAIN'	=> 'Si está desactivada, se utilizará OnClick JavaScript.',
	'ACP_HIDE_LINKS_GUESTS'			=> '¿Ocultar enlaces externos a invitados?',
	'ACP_HIDE_LINKS_GUESTS_EXPLAIN'	=> 'Introduzca el texto, y nombres de los enlaces que desea reemplazados.',
	'ACP_EXTERNAL_LINK_PREFIX'		=> 'Prefijo antes del enlace',

	'ACP_INTERNAL_LINK_DOMAINS'		=> 'Lista de los dominios que no están cubiertos por el mantenimiento anteriormente, utilizando ";" (punto y coma para separar)',
	'ACP_FORBIDDEN_DOMAINS'			=> 'Lista de los dominios que no se muestran enlaces, utilizando ";" (punto y coma para separar)',
	'ACP_FORBIDDEN_DOMAINS_TEXT'	=> 'Texto en lugar de URL bloqueada',
	'ACP_FORBIDDEN_NEW_URL'			=> 'URL en lugar de los enlaces remotos',

	'ACP_MODED_LINKS_ATTRIBUTES'	=> 'Atributos de enlaces',
	'ACP_INTERNAL_LINK_REL'			=> 'El atributo rel de enlaces internos',
	'ACP_EXTERNAL_LINK_REL'			=> 'El atributo rel de enlaces externos',
	'ACP_INTERNAL_LINK_TARGET'		=> 'Tipo de target para enlaces internos',
	'ACP_EXTERNAL_LINK_TARGET'		=> 'Tipo de target para enlaces externos',
	'ACP_INTERNAL_LINK_CLASS'		=> 'Clase de los enlaces internos',
	'ACP_EXTERNAL_LINK_CLASS'		=> 'Clase de los enlaces externos',
	'ACP_EXTERNAL_LINK_NOINDEX'		=> '¿Cerrar noindex en enlaces externos?',

	'MESSAGE_TEXT'	=> '<strong>Usted va a un enlace externo: <span class="error">%s</span></strong><p>Asegúrese de que el enlace es de plena confianza y protegido de influencias nocivas.<br />Si el enlace muestra algo sospechoso, informe respetuosamente a la Administración.</p>',
	'URL_LINK'		=> '%sIr al enlace%s',
));

Re: [BETA] External Links - URL Manager

Posted: Thu Nov 13, 2014 10:22 pm
by Volksdevil
Any thoughts on the fact that signatures seem to have both classes added to them after the first post?

Re: [BETA] External Links - URL Manager

Posted: Fri Nov 14, 2014 6:35 pm
by Anv@r.all
Volksdevil, Updated archive.
Separate signature will not work. Use common function, other possibilities yet. No events. Sorry..

Raul [ThE KuKa], Thank you!

Re: [BETA] External Links - URL Manager

Posted: Fri Nov 14, 2014 7:05 pm
by ..777..
Hi there, I am trying to understand this extension. Will it give the ability to alter the link's url?

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 4:59 am
by Anv@r.all
..777... There are opportunities.

Need a correct translation of the values and description.

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 9:20 am
by thoomas
tnx for the mod. But is it possible to disable "Showing page with a warning before proceeding"?

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 9:50 am
by janus_zonstraal
thoomas wrote:tnx for the mod. But is it possible to disable "Showing page with a warning before proceeding"?
Yes you can.
Leaf "Prefix before the link:" blank

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 10:08 am
by thoomas
janus_zonstraal wrote:
thoomas wrote:tnx for the mod. But is it possible to disable "Showing page with a warning before proceeding"?
Yes you can.
Leaf "Prefix before the link:" blank
thanks!

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 2:15 pm
by Volksdevil
Anv@r.all wrote:Volksdevil, Updated archive.
Separate signature will not work.
Thanks. Do you mean that signatures are no longer affected?

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 6:24 pm
by Anv@r.all
Will not change the operation of expansion, separately for signature.

No events in phpBB3.1.

Signatures of messages are handled as a common feature. ;)

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 7:32 pm
by Volksdevil
OK. I'm not sure I fully understand (Language barrier) but I've noticed that signatures after the first post still have BOTH classes (Internal and External) applied to them.

I still had to edit the exact link to show properly too, it was only showing last part of links, instead of the full url/exact link.

Can I suggest a change to the 'EN' language variable for:
'MESSAGE_TEXT'?

It reads better for English like:
'MESSAGE_TEXT' => '<strong>You have chosen to visit an external link at: <span class="error">%s</span></strong><p>Are you sure you wish to proceed?<br />If the link is suspicious, please let the Admin or Moderator team know.</p>',

Also, it would be nice to have an option for no redirect at all.

Otherwise, great work 8-)

Re: [BETA] External Links - URL Manager

Posted: Sat Nov 15, 2014 8:51 pm
by Anv@r.all
thanks! Update. Redirect max 50

Re: [BETA] External Links - URL Manager

Posted: Sun Nov 16, 2014 1:05 am
by Volksdevil
Another small change I made...

Because we have already opened a new window/tab, we don't need 'Return to index' button.

So in: language/en/info_acp_exlinks.php at the bottom I added:
'CLOSE_PAGE' => '%sClose this page%s',

Then in: controller/url.php I changed this:
$message .= sprintf($this->user->lang['RETURN_INDEX'], '&nbsp;<a href="' . generate_board_url() . '" class="button">', '</a>&nbsp;');

To this:
// return to index button $message .= sprintf($this->user->lang['RETURN_INDEX'], '&nbsp;<a href="' . generate_board_url() . '" class="button">', '</a>&nbsp;');

// close window button
$message .= sprintf($this->user->lang['CLOSE_PAGE'], '&nbsp;<a class="button" onclick="self.close()">', '</a>&nbsp;');


It now looks like this with a 'Close this page' button instead. :)
Image

I hope you like the changes/request. :)

Re: [BETA] External Links - URL Manager

Posted: Sun Nov 16, 2014 2:36 am
by aurquiel
Its possible not time for redirection, i want the user ciclk to go out