Current time: 07-04-2009, 09:30 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 8 Votes - 4.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB 1.4 Hide Hack Available !
09-12-2008, 08:22 PM (This post was last modified: 09-12-2008 09:08 PM by siopk.)
Post: #31
RE: MyBB 1.4 Hide Hack Available !
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
Find all posts by this user
Quote this message in a reply
09-23-2008, 10:42 AM
Post: #32
RE: MyBB 1.4 Hide Hack Available !
This hack works great but I noticed 3 things wrong, when you use this hack (after downloading plugin all above changes have already been made,) anyway, I get an error when editing any post,

Code:
Fatal error: Class 'databaseEngine' not found in /home/blahblah/public_html/sitename/inc/functions.php on line 165

I also get an error if you press "Reply" on the actual hidden post

Code:
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1146 - Table 'blahblah_blah.mybb_mybb_posts' doesn't exist
Query:
    SELECT pid FROM mybb_mybb_posts WHERE tid = '6149' AND uid = '1'

And in search instead of displaying the hidden image it shows as

Code:
<img src="images/hide.jpg"/>

Any help is very welcome, I'm sure some other would fancy knowing how to sort this if they get this hack.
Find all posts by this user
Quote this message in a reply
09-24-2008, 11:10 PM
Post: #33
RE: MyBB 1.4 Hide Hack Available !
(09-23-2008 10:42 AM)TheG69 Wrote:  This hack works great but I noticed 3 things wrong, when you use this hack (after downloading plugin all above changes have already been made,) anyway, I get an error when editing any post,

Code:
Fatal error: Class 'databaseEngine' not found in /home/blahblah/public_html/sitename/inc/functions.php on line 165

I also get an error if you press "Reply" on the actual hidden post

Code:
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1146 - Table 'blahblah_blah.mybb_mybb_posts' doesn't exist
Query:
    SELECT pid FROM mybb_mybb_posts WHERE tid = '6149' AND uid = '1'

And in search instead of displaying the hidden image it shows as

Code:
<img src="images/hide.jpg"/>

Any help is very welcome, I'm sure some other would fancy knowing how to sort this if they get this hack.

which version of mybb are you using
Find all posts by this user
Quote this message in a reply
09-25-2008, 11:45 PM
Post: #34
RE: MyBB 1.4 Hide Hack Available !
Currently MYBB 1.4.1, needs updating to 1.4.2.
Find all posts by this user
Quote this message in a reply
09-26-2008, 11:52 AM
Post: #35
RE: MyBB 1.4 Hide Hack Available !
is there any instruction on what to do to get it working?
Find all posts by this user
Quote this message in a reply
10-03-2008, 10:46 AM
Post: #36
RE: MyBB 1.4 Hide Hack Available !
404 for the demo Confused
Find all posts by this user
Quote this message in a reply
10-13-2008, 05:08 PM (This post was last modified: 10-13-2008 05:11 PM by Dennisss.)
Post: #37
RE: MyBB 1.4 Hide Hack Available !
Any hidehack available for 1.4.2?? need him badly!
Find all posts by this user
Quote this message in a reply
10-17-2008, 10:25 PM
Post: #38
RE: MyBB 1.4 Hide Hack Available !
Still no update? Sad
Find all posts by this user
Quote this message in a reply
10-20-2008, 06:53 AM
Post: #39
RE: MyBB 1.4 Hide Hack Available !
what is a hide hack anyway :ß ?
Find all posts by this user
Quote this message in a reply
10-31-2008, 05:51 PM (This post was last modified: 10-31-2008 06:11 PM by WaheedI.)
Post: #40
RE: MyBB 1.4 Hide Hack Available !
WOW

THIS IS THE BEST !!!!!!!!!!!!!
HOW DO U USE THIS FOR 1.4.3 ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: