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

Re: protected links

is it possible ?

Re: protected links

it is possible as a mod, but it won't be added as a feature to punbb

Re: protected links

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

Looking for a certain modification for your forum? Please take a look here before posting.

Re: protected links

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

Re: protected links

pogenwurst wrote:

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.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: protected links

Fakhruddin2005 wrote:

is it possible ?

Absolutely, and in fact, very simple smile 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.

Re: protected links

no i mean is when we put a link in code and only people replying to the topic can see the link

9

Re: protected links

don know

I start thinking from where you stop thinking!!!