My question was:primehalo wrote:2) Hide urls from guest and display message with other urlsCode: Select all
define('HIDE_LINKS_FROM_GUESTS', 'Link Hidden'); // Hide external links from guests? If this is a string, then the text of the link will be replaced with this string.
Code: Select all
$new_link = '<span class="link_removed">' . $new_text . '</span>';
Code: Select all
$new_link = '<span class="link_removed">' . $new_text . '</span><span style="color: #D31141; text-decoration: underline;"> - Please <a href="http://www.example.com/forum/ucp.php?mode=register">register</a> or <a href="http://www.example.com/forum/ucp.php?mode=login">login</a> to download file</span>';
Hello,primehalo wrote:Links are processed after the post is retrieved from the database and before the post is written out to the page, therefor it should work with all posts.
Code: Select all
$external_rel = !EXTERNAL_LINK_REL ? '' : ' rel="' . EXTERNAL_LINK_REL . '"';
Code: Select all
$external_prefix = !EXTERNAL_LINK_PREFIX ? '' : '' . EXTERNAL_LINK_PREFIX . '';
Code: Select all
'EXTERNAL_LINK_ATTRIBUTES' => $external_target . $external_rel,
Code: Select all
'EXTERNAL_LINK_PREFIX' => $external_prefix,
Code: Select all
$external_target = '';
$external_rel = '';
Code: Select all
$external_prefix = '';
Code: Select all
'EXTERNAL_LINK_ATTRIBUTES' => $external_target . $external_rel,
Code: Select all
'EXTERNAL_LINK_PREFIX' => $external_prefix,
Code: Select all
{EXTERNAL_LINK_PREFIX}
Code: Select all
{EXTERNAL_LINK_ATTRIBUTES}
Code: Select all
href="{memberrow.U_WWW}"
Code: Select all
href="{U_WWW}"
Code: Select all
{EXTERNAL_LINK_PREFIX}
Code: Select all
{memberrow.U_WWW}"
Code: Select all
{U_WWW}"