Topic: protected links
can we hav a feature so that we can hav protected links
how it works
if some1 replies to the topic then only he can see the link
You are not logged in. Please login or register.
PunBB Forums → Feature requests → protected links
can we hav a feature so that we can hav protected links
how it works
if some1 replies to the topic then only he can see the link
is it possible ?
it is possible as a mod, but it won't be added as a feature to punbb
This is not exactly what you were asking for, but it is similar:
http://punbb.org/forums/viewtopic.php?id=8059
Only members can see anything between the [hide] tags. Just put the links inside the [hide] tags I guess
actually i think he wants something like a link is hidden in a particular topic to the member until he/she replies to that topic
This is not exactly what you were asking for, but it is similar
I know it's not what he was asking for, but thought that he might be able to draw some inspiration from that or decide that it was a suitable replacement for what he wants.
is it possible ?
Absolutely, and in fact, very simple I didn't see this topic until just recently, so you may already have figured out how to make it work, but in any case, here's how to do it:
Open ./include/parser.php
Find, line 265:
global $pun_user;
Replace with:
global $pun_user, $cur_post;
Find, line 278:
return '<a href="'.$full_url.'">'.$link.'</a>';
Replace with:
if ($pun_user['id'] != $cur_post['poster_id'] && $pun_user['g_id'] > PUN_MOD )
return '<span class="warntext">[private link]</span>';
else
return '<a href="'.$full_url.'">'.$link.'</a>';
Save & Upload
This will hide posted links for everyone but the original poster, or admins/mods.
no i mean is when we put a link in code and only people replying to the topic can see the link
PunBB Forums → Feature requests → protected links
Powered by PunBB, supported by Informer Technologies, Inc.