1
General SMF Forum / (Modify)Change message property on register links
« on: July 06, 2008, 09:04:06 am »
hi,
i download and installa on my smf 1.1.5 the mod Register links
the mod works fine, thank you very much is really useful;
The only things is that i want to change the appearance of the message,
i already translated in my language, but now i try to make more evident the register message, i would like to have red and bold even the register and login links.
I try to modify the script and even the section on the subs.php but i only generate errors because i never programm php/xml.
Any one can help me?
i think that the part to modify are this:
i download and installa on my smf 1.1.5 the mod Register links
the mod works fine, thank you very much is really useful;
The only things is that i want to change the appearance of the message,
i already translated in my language, but now i try to make more evident the register message, i would like to have red and bold even the register and login links.
I try to modify the script and even the section on the subs.php but i only generate errors because i never programm php/xml.
Any one can help me?
i think that the part to modify are this:
Code: [Select]
<add><![CDATA[array(
'tag' => 'iurl',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=join">Register</a> or <a href="' . $scripturl . '?action=login">Login</a>' : '<a href="$1">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=join">Register</a> or <a href="' . $scripturl . '?action=login">Login</a><div style="visibility:hidden">' : '<a href="$1">',
'after' => $user_info['is_guest'] ? '</div>' : '</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' => $user_info['is_guest'] ? '' : ' ($1)',
),]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" target="_blank">',
'after' => '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),]]></search>
<add><![CDATA[ array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=join">Register</a> or <a href="' . $scripturl . '?action=login">Login</a>' : '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => $user_info['is_guest'] ? $txt['no_view_links'] . "\n" . '<a href="' . $scripturl . '?action=join">Register</a> or <a href="' . $scripturl . '?action=login">Login</a><div style="visibility:hidden">' : '<a href="$1" target="_blank">',
'after' => $user_info['is_guest'] ? '</div>' : '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => $user_info['is_guest'] ? '' : ' ($1)',
),]]></add>
</operation>
thank you