Current time: 05-23-2012, 03:28 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 9 Votes - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB 1.4 Hide Hack Available !
10-31-2008, 11:25 PM
Post: #41
RE: MyBB 1.4 Hide Hack Available !
please fallow these directions to install it on any newer version of mybb it should work
http://community.mybboard.net/thread-336...#pid251317
you will have to manually edit files

Visit Free Templates, Themes Blog | Cricket Forum
Find all posts by this user
Quote this message in a reply
12-18-2008, 01:19 PM
Post: #42
RE: MyBB 1.4 Hide Hack Available !
i need this hack to fix the quote problem (shows the download link when a user quotes), and I need it to show all links to mods and admins.

Please help!
Find all posts by this user
Quote this message in a reply
12-25-2008, 02:54 AM
Post: #43
RE: MyBB 1.4 Hide Hack Available !
(12-18-2008 01:19 PM)kevint Wrote:  i need this hack to fix the quote problem (shows the download link when a user quotes), and I need it to show all links to mods and admins.

Please help!

Same here. I noticed the same problem less than 10 minutes after installing it.
Find all posts by this user
Quote this message in a reply
04-11-2009, 03:47 PM
Post: #44
RE: MyBB 1.4 Hide Hack Available !
I've installed this but is there anyway this can been changed to allow Mods and admin to see the content without a reply?


Thanks.
Find all posts by this user
Quote this message in a reply
04-22-2009, 04:40 PM
Post: #45
RE: MyBB 1.4 Hide Hack Available !
(09-12-2008 08:22 PM)siopk Wrote:  where exactly can i get it plzz link to it
here is the modified version
total credit goes to original maker
here is the code that will work with 1.4.1
it is same code but some files updated for 1.4.1 that why to make this plugin work you will have to modify code

Open /newreply.php
Find
Code:
        $username = htmlspecialchars_uni($mybb->input['username']);

Add Underneath
Code:
// Hide Hack v1.2.12 by Tickhi
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$post[message] = preg_replace($searcharray, $replacearray, $post[message]);
// Hide Hack End

Open /showthread.php
Find
Code:
            eval("\$threadpages = \"".$templates->get("showthread_multipage")."\";");
        }

Add Underneath
Code:
// Hide Hack v1.4 by Tickhi
$result = $db->query("SELECT message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='{$mybb->user['uid']}'");
$selfposted = $db->num_rows($result);
// Hide Hack End

Open /search.php
Code:
Find
Code:
                $post['subject'] = htmlspecialchars_uni($post['subject']);
            }

Add Underneath
Code:
// Hide Hack v1.4 by Tickhi
            $searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            $replacearray[]=" <img src=\"images/gizli1.gif\"/> ";
            $post['message'] = preg_replace($searcharray, $replacearray, $post['message']);
// Hide Hack End

Open /inc/functions.php
Find At the end of file
Code:
?>

Add this code Before ?>
Code:
function hidetags($message)
{

global $db, $n, $mybb, $selfposted;

// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybb->user[uid] != "0" && $selfposted > "0") || $mybb->usergroup['cancp'] == "yes") {
    $search="/\[hide](.*)\[\/hide\]/siU";
    $replace="<img src=\"images/gizli1.gif\"><br /> \\1";
    $message = preg_replace($search, $replace, $message);
    $message = str_replace("\'", "'", $message);
} else {
    // sonst nix anzeigen
    $searcharray[]="/\[hide](.*)\[\/hide\]/siU";
    $replacearray[]="<img src=\"images/gizli.gif\">";
    $message = preg_replace($searcharray, $replacearray, $message);
    $message = str_replace("\'", "'", $message);
}

return $message;

}

Open /inc/class_parser.php
find
Code:
            $message = nl2br($message);
Add this after
Code:
// Hide Hack v1.4 by Tickhi
$message = hidetags($message);
// Hide Hack End

You need to have images of your choice
/images/gizly.gif for hiden stuff
/images/gizly1.gif for unhidden

have fun modifying or if need help i will attach modified files.
enjoy total creadit goes to orignal maker

I had a question do i need to upload the files in the MOD directory or do I just need to edit these source files?
thanks for the help youre the only once who seems to be keeping this mod alive.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication