News:

Wondering if this will always be free?  See why free is better.

Main Menu

question about reglink MOD

Started by playdiune, December 28, 2009, 07:32:38 PM

Previous topic - Next topic

playdiune

Hello,

in the file subs.php the MOD looks for this code;

<search position="replace"><![CDATA[array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (substr($data, 0, 1) == \'#\')
$data = \'#post_\' . substr($data, 1);'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),]]></search>


I am using version 1.1.11 and have this code, instead;

array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => '<a href="$1">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (substr($data, 0, 1) == \'#\')
$data = \'#post_\' . substr($data, 1);
elseif (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),


Is this because onother MOD installed, or is a an incompatible version ?

thanks
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

Arantor

No, it's because the mod doesn't appear to have been updated for 1.1.11 yet.
Holder of controversial views, all of which my own.


playdiune

The MOD just modify two lines. i think i can do it manualy;

dont i ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

Arantor

You probably can just modify those two lines however they are different, and it might be best waiting for the mod author to update it.
Holder of controversial views, all of which my own.


playdiune

it replaces

'content' => '<a href="$1">$1</a>',


for this

'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=register">' . $txt['txt_reg_links_register'] . '</a>&nbsp;' . $txt['txt_reg_links_or'] . '&nbsp;<a href="' . $scripturl . '?action=login">' . $txt['txt_reg_links_login'] . '</a>' : '<a href="$1">$1</a>',


My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

playdiune

well,

i did it manualy and it works like a charm ;)

thanks
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

Advertisement: