Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tickhi Hack Version 1.4 Questions
Author Message
LeX-
Junior Member


Posts: 5
Joined: Apr 2009
Reputation: 0
MyBux: 10
Post: #11
RE: Tickhi Hack Version 1.4 Questions
People who can access the Control Panel (Admin Panel) should be able to see the content;
But you need to change this in the hidetags() function (./inc/functions.php)
Find
PHP Code:
$mybb->usergroup['cancp'] == "yes" 

Change into
PHP Code:
$mybb->usergroup['cancp'] == 
(This post was last modified: 05-13-2009 06:04 AM by LeX-.)
05-13-2009 05:20 AM
matrixsc
Junior Member


Posts: 47
Joined: Mar 2009
Reputation: 0
MyBux: 16
Post: #12
RE: Tickhi Hack Version 1.4 Questions
Thanks Lex

Is there anyway i could add any other code to allow my staff that don't have access to the Admin panel?

Thanks.
05-13-2009 08:32 AM


dared
Member


Posts: 52
Joined: Jul 2008
Reputation: 2
MyBux: 42
Post: #13
RE: Tickhi Hack Version 1.4 Questions
to allow all of your moderators open in inc/functions.php

find
PHP Code:
return $message//yapıcak herşeyimizi yaptık artık mesaj işlensin dimi 


add above

PHP Code:
// eğer kullanıcımız moderatorse ama mesaj yazmamışsa bırakalım içerik açılsın
        
if ( ($mybb->user[uid] != "0" && $selfposted "0") || $mybb->usergroup['canmodcp'] = 
        {
            
$search="/\[hide](.*)\[\/hide\]/siU";
            
$replace="<img src=\"images/acik.gif\"><br /> \\1";
            
$message preg_replace($search$replace$message);
            
$message str_replace("\'""'"$message);
        }
        else 
        {
            
            
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            
$replacearray[]="<img src=\"images/gizli.gif\">";
            
$message preg_replace($searcharray$replacearray$message);
            
$message str_replace("\'""'"$message);
        } 
this have to work.
(This post was last modified: 05-14-2009 12:40 AM by dared.)
05-14-2009 12:38 AM
matrixsc
Junior Member


Posts: 47
Joined: Mar 2009
Reputation: 0
MyBux: 16
Post: #14
RE: Tickhi Hack Version 1.4 Questions
(05-14-2009 12:38 AM)dared Wrote:  to allow all of your moderators open in inc/functions.php

find
PHP Code:
return $message//yapıcak herşeyimizi yaptık artık mesaj işlensin dimi 


add above

PHP Code:
// eğer kullanıcımız moderatorse ama mesaj yazmamışsa bırakalım içerik açılsın
        
if ( ($mybb->user[uid] != "0" && $selfposted "0") || $mybb->usergroup['canmodcp'] = 
        {
            
$search="/\[hide](.*)\[\/hide\]/siU";
            
$replace="<img src=\"images/acik.gif\"><br /> \\1";
            
$message preg_replace($search$replace$message);
            
$message str_replace("\'""'"$message);
        }
        else 
        {
            
            
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            
$replacearray[]="<img src=\"images/gizli.gif\">";
            
$message preg_replace($searcharray$replacearray$message);
            
$message str_replace("\'""'"$message);
        } 
this have to work.

This line isn't even in my inc/functions.php ?


PHP Code:
return $message//yapıcak herşeyimizi yaptık artık mesaj işlensin dimi 
05-14-2009 06:29 AM


dared
Member


Posts: 52
Joined: Jul 2008
Reputation: 2
MyBux: 42
Post: #15
RE: Tickhi Hack Version 1.4 Questions
ofcouse it is not =) but when you make hide hack like i told u on first page it will be there. anyway here this is for fresh installations:

open showthread.php

find:

PHP Code:
        // Lets get the pids of the posts on this page. 

replace:

PHP Code:
        // Hide Hack için konuya cevap verilmiş mi diye bir bakalım
        
$result $db->query("SELECT message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='{$mybb->user['uid']}'");
        
$selfposted $db->num_rows($result);

        
// Lets get the pids of the posts on this page. 


open search.php

find:

PHP Code:
            // What we do here is parse the post using our post parser, then strip the tags from it 

replace:

PHP Code:
            // Hide Hack için arama sonuçlarında eğer cevap verilmemişse gizletelim
            
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            
$replacearray[]=" <img src=\"images/gizli.gif\"/> ";
            
$post['message'] = preg_replace($searcharray$replacearray$post['message']);
            
// What we do here is parse the post using our post parser, then strip the tags from it 


open newreply.php
find:
PHP Code:
        // Check if username exists. 

replace:

PHP Code:
        // Hide Hack için
        
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
        
$replacearray[]="";
        
$post[message] = preg_replace($searcharray$replacearray$post[message]);
        
// Check if username exists. 


open inc/class_parser.php

find:

PHP Code:
            // Fix up new lines and block level elements 

replace:

PHP Code:
            // Hide Hack için mesajın gizlenmiş oluşunu tanıtalım
            
$message hidetags($message);
            
// Fix up new lines and block level elements 


open inc/functions.php

find:

PHP Code:
?>

replace:

PHP Code:
// Hide Hack i 1.2 den 1.4.x'e uyarlamak için fonksiyonumuz
function hidetags($message)
{

    global 
$db$n$mybb$selfposted;

        
// eğer kullanıcımız misafirse ve mesaj yazma izni varsa üstüne üstlük yetkilinin biri de onun yazısının çıkmasına izin vermişse bırakalım içerik açılsın
        
if ( ($mybb->user[uid] != "0" && $selfposted "0") || $mybb->usergroup['cancp'] == 1
        {
            
$search="/\[hide](.*)\[\/hide\]/siU";
            
$replace="<img src=\"images/acik.gif\"><br /> \\1";
            
$message preg_replace($search$replace$message);
            
$message str_replace("\'""'"$message);
        }
        else 
//yok eğer öle olmama ihtimali varsa
        
{
            
// yok eğer konuda mesaj yayınlamasına izin verilmemişse o zaman bırak dağınık kalsın
            
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            
$replacearray[]="<img src=\"images/gizli.gif\">";
            
$message preg_replace($searcharray$replacearray$message);
            
$message str_replace("\'""'"$message);
        }
/* new ability starts */
// eğer kullanıcımız moderatorse ama mesaj yazmamışsa bırakalım içerik açılsın
        
if ( ($mybb->user[uid] != "0" && $selfposted "0") || $mybb->usergroup['canmodcp'] = 
        {
            
$search="/\[hide](.*)\[\/hide\]/siU";
            
$replace="<img src=\"images/acik.gif\"><br /> \\1";
            
$message preg_replace($search$replace$message);
            
$message str_replace("\'""'"$message);
        }
        else 
        {
            
            
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
            
$replacearray[]="<img src=\"images/gizli.gif\">";
            
$message preg_replace($searcharray$replacearray$message);
            
$message str_replace("\'""'"$message);
        } 
/* new ability ends */
    
return $message//yapıcak herşeyimizi yaptık artık mesaj işlensin dimi

}

?>
i didnt test it but its have to work.
05-14-2009 06:40 AM
matrixsc
Junior Member


Posts: 47
Joined: Mar 2009
Reputation: 0
MyBux: 16
Post: #16
RE: Tickhi Hack Version 1.4 Questions
By adding all that above the board won't load up it's just a balnk page soon as i remove all that it loads :(
05-14-2009 07:33 AM


 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
2 questions LadyNor 11 88 05-04-2009 03:54 AM
Last Post: LadyNor
  More questions regarding the Custom Pages Plugin.. enlightenme 7 72 02-16-2009 11:51 PM
Last Post: enlightenme



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?

  



Theme created by AK-47. Find more great themes and skins at K! Dezign R1s.net