Topic: Please Register to See Links in PunBB
I googled it but no results was turned.. How can I do that in punbb
Thanks
You are not logged in. Please login or register.
PunBB Forums → Feature requests → Please Register to See Links in PunBB
I googled it but no results was turned.. How can I do that in punbb
Thanks
Do you have an example of that?
Which links? Normal url's in a post?
yes.. notmal http://www links
EDIT:
http://www.punres.org/viewtopic.php?pid=11904#p11904
so maybe change parser.php
if ($forum_user['is_guest'] )
return ' <span class="members-only">[Members only link, sorry Guests]</span>';
else
return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
Adding to what KeyDog said, you will have to modify ~line 600/601 (inside the handle_url_tag function):
global $forum_user;
if ($forum_user['is_guest'] )
return ' <span class="members-only">[Register/login to see link]</span>';
elseif ($bbcode)
{
if ($full_url == $link)
return '[url]'.$link.'[/url]';
else
return '[url='.$full_url.']'.$link.'[/url]';
}
else
return '<a href="'.$full_url.'">'.$link.'</a>';
if ($forum_user['is_guest'] && !$bbcode)
You know... just in case.
PunBB Forums → Feature requests → Please Register to See Links in PunBB
Powered by PunBB, supported by Informer Technologies, Inc.