Hide Links ?
Hide Links ?
How can hide links in the code for unregistred users ?
Re: Hide Links ?
You can try this courtesy of This Author.
Open viewtopic.php
Find:
Before add:
In ACP / Posting / BBcodes add the new bbcode
BBCode Usage:
HTML:
Helpline:
You could then add the code tags in the middle of member tags and add the coded url in the middle.
Open viewtopic.php
Find:
Code: Select all
$rowset[$row['post_id']] = array(
Code: Select all
// Mod for members bbcode
if ($user->data['user_id'] == ANONYMOUS)
{
$offset = 0;
$newstring = $row['post_text'];
$strpos = strpos($newstring ,'[members:', $offset);
$strcnt = substr_count($newstring ,'[members:');
while ($strcnt <> false):
$endpos = strpos($newstring, '[/members', $offset);
$strpos = $strpos + 18;
$strlen = $endpos - $strpos;
$newstring = substr_replace($newstring, 'You must be a Registered Member to view this content', $strpos, $strlen);
$offset = $strpos + 53;
if ($offset < strlen($newstring))
{
$strrem = substr($newstring, $offset);
$strcnt = substr_count($strrem ,'[members:');
$strpos = strpos($newstring, '[members:', $offset);
}
else
{
$strcnt = false;
}
endwhile;
$row['post_text'] = $newstring;
}
// End Mod for members bbcode
BBCode Usage:
Code: Select all
[members]{TEXT}[/members]
Code: Select all
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Registered Members Only:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
Code: Select all
Hide :[members]your content[/member]
Re: Hide Links ?
Or you could try this one though a little different to what you want.
Re: Hide Links ?
Can I use this tags for my forum?I have forum on forumotion servis and its created in phpbb 3code.If i can,where to put it?
Re: Hide Links ?
this is an old topic, what are you trying to hide? the code tag to guests or links to guests!?