MyBB Community Forums

Full Version: [For 1.4 & 1.6] SCD Hide From Groups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Yeah, no problem having your own system if it works Toungue
Does the current version will work with mybb 1.6.5?
Thx!
Hrm, I seem to have forgotten to upload any new versions of these. I wont be home till Sunday (Its the Thanksgiving Holiday in the US and I'm not at home right now), so I'll upload any revisions to these then. Smile
Thanks Dylan! Smile
Has there been any new developments for this plugin?
I've been searching the forums and came across this PHP
for blocking Links and Pictures from multiple user classes:
<?php
if(!defined("IN_MYBB"))
    die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");

$plugins->add_hook("parse_message", "onlyreglinks");

function onlyreglinks_info() {
   return array(
   "name" => "Registered Members Links",
   "description" => "Links for only registered members",
   "author" => "your name",
   "version" => "1.0.0",
   "compatibility" => "16*"
   );
}

function onlyreglinks_active() {
}

function onlyreglinks_deactive() {
}

function onlyreglinks($content) {

   global $mybb;  
  
   if (in_array($mybb->user['usergroup'], array(1,5)))   {
        $content = preg_replace("/<img src=\"(.*?)\" border=\"(.*?)\" alt=\"(.*?)\" \/>/is","<a href=\"".$mybb->settings['bburl']."/member.php?action=register\">Please Register to see Image</a>",$content); 
        $content = preg_replace("/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\/a>/is","<a href=\"".$mybb->settings['bburl']."/member.php?action=register\">Please Register to see links</a>",$content);        
    }
    return $content;
}

?>

The above code doesn't seem to work though, not sure what's wrong with it. Basically the most important question I have is does your plugin block links and posted pictures from multiple user groups? Thanks
It has a setting in the ACP to choose which groups.
Hi, this plugin works on the portal?
i think hide url and img is bad for seo
Nice plugin
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15