1 (edited by j.gopi4 2018-09-16 14:15)

Topic: if posted user is not admin or not moderator then return not url

hi i want to change like if only admin or moderator post the url then display the url or return text.

How to achieve it. please help thanks

i have tried this below code

if ($username != 'admin'){
            return '<a href="'.$full_url.'" rel="nofollow">'.$link.'</a>';
            }
        else    
            //return '[url]'.$full_url.'[/url]';
            return '[url='.$full_url.']'.$link.'[/url]';

Re: if posted user is not admin or not moderator then return not url

if ($forum_user['g_id'] != FORUM_ADMIN){
            return '<a href="'.$full_url.'" rel="nofollow">'.$link.'</a>';
            }
        else    
            //return '[url]'.$full_url.'[/url]';
            return '[url='.$full_url.']'.$link.'[/url]';

Re: if posted user is not admin or not moderator then return not url

Thanks, I will give try