PDA

Tüm Versiyonu Göster : [ hide ] Hack Resurrection v1.02 ..!!!!!


mR_h3LLßoY
29-06-05, 19:19
Hide 'yi bilmeyeniniz yoktur diye tahmin ediyorum. Fakat bu yeni versiyonda biraz farklılık var. Mesajı gizlediniz; üyenin o mesajı görebilmesi için sadece cevap yazması yeterli değil, belirleyeceğiniz bir sayıda, üyenin mesaj sayısına göre izin veriliyor....

Kullanılışı şu şekilde :
mesajınız


Burada 30'un anlamı şudur; üye bu konuya cevap yazsa bile, forumda en az 30 mesajı yoksa, gizli metni gene göremez.... Tabi 30 yerine istediğiniz değeri verebilirsiniz... Şimdi kuralım.....

Not : php dosyaları üzerinde değişiklik yapmadan önce, her ihtimale karşı yedeklerini alın..!!!!

includes/functions.php 'yi açın. Dosyadaki en son ?>, kodunun önüne şunları ekleyin;

$hidetag['default_posts_to_view'] = 5;

// ################################################## #######################################
// ### END CONFIGURATION
// ################################################## #######################################

// ### apply the default value. user preg-replace since it is case-insensitive ###

$text = preg_replace("/\[hide\]/siU", "[hide=".$hidetag['default_posts_to_view']."]", $text);

// ### apply the parser ###

$text = preg_replace_callback("/\[hide=([0-9]*)\](.*)\[\/hide\]/siU",
create_function(
'$matches',
'return parseHide2($matches[1],$matches[2]);'
),
$text);

// ### return parsed text to original caller variable ###

return $text;
}

function parseHide2($postsrequired,$text) {
global $bbuserinfo,$thread;

$bbuserinfo[posts] = intval($bbuserinfo[posts]);

// ################################################## #######################################
// ### CONFIGURATION ###
// ### NOTE: Specify both bbcode & html versions - they'll be required for some scripts ###
// ################################################## #######################################

// ### specifies scripts to use html version - just for compatibility's sake ###
$hidetag['htmlscripts'] = array('showthread', 'showpost');
// ### choose color to be applied to hidden text ###
$hidetag['color'] = "blue";

// ### text to be returned when user is an admin, supermoderator or moderator of a given forum ###
$hidetag['admin_view_html'] = "<font color='".$hidetag['color']."'>Hidden Content ($postsrequired posts are required, you have ".$bbuserinfo['posts']."):<br />".$text."</font>";
$hidetag['admin_view_bbcode'] = "."]Hidden Content ($postsrequired posts are required, you have ".$bbuserinfo['posts']."):\n".$text."";

// ### text to be returned when user is a regular user and has enough posts ###
$hidetag['user_view_html'] = "<font color='".$hidetag['color']."'>Hidden Content ($postsrequired posts are required, you have ".$bbuserinfo['posts']."):<br />".$text."</font>";
$hidetag['user_view_bbcode'] = "."]Hidden Content ($postsrequired posts are required, you have ".$bbuserinfo['posts']."):\n".$text."";

// ### text to be returned when user is a regular user and does NOT have enough posts ###
$hidetag['user_deny_html'] = "<font color='".$hidetag['color']."'>Hidden Content ($postsrequired posts are required, you only have ".$bbuserinfo['posts'].")</font>";
$hidetag['user_deny_bbcode'] = "."]Hidden Content ($postsrequired posts are required, you only have ".$bbuserinfo['posts'].")";

// ### text to be returned when user is a guest ###
$hidetag['guest_deny_html'] = "<font color='".$hidetag['color']."'>Hidden Content (you need to be registered ".iif($postsrequired > 0, "and have $postsrequired posts", "")." to see it)</font>";
$hidetag['guest_deny_bbcode'] = "."]Hidden Content (you need to be registered ".iif($postsrequired > 0, "and have $postsrequired posts", "")." to see it)";

// ################################################## #######################################
// ### END OF CONFIGURATION ###
// ################################################## #######################################

if ($bbuserinfo[userid] == 0) {
$text = iif(in_array(THIS_SCRIPT, $hidetag['htmlscripts']), $hidetag['guest_deny_html'], $hidetag['guest_deny_bbcode']);
} elseif (in_array($bbuserinfo[usergroupid], array(5,6)) OR (can_moderate($thread['forumid']) AND THIS_SCRIPT == 'showthread')) {
$text = iif(in_array(THIS_SCRIPT, $hidetag['htmlscripts']), $hidetag['admin_view_html'], $hidetag['admin_view_bbcode']);
} elseif ($bbuserinfo[posts] >= $postsrequired) {
$text = iif(in_array(THIS_SCRIPT, $hidetag['htmlscripts']), $hidetag['user_view_html'], $hidetag['user_view_bbcode']);
} else {
$text = iif(in_array(THIS_SCRIPT, $hidetag['htmlscripts']), $hidetag['user_deny_html'], $hidetag['user_deny_bbcode']);
}

// ### return parsed text to parseHide() ###
return $text;
}

// ###################### Start stripHide #######################
// strips hidden content from where it should not be shown
// ################################################## ############

function stripHide($text,$where='') {

// ################################################## #######################################
// ### CONFIGURATION
// ################################################## #######################################

$hidetag['editor_text'] = "You may not quote hidden text";
$hidetag['email_text'] = "(there is a hidden text in this post - please visit the thread to see it if you have \\1 posts, or if you are an admin or a moderator)";

// ################################################## #######################################
// ### END OF CONFIGURATION
// ################################################## #######################################

if ($where == 'editor') {
$replacement = $hidetag['editor_text'];
} else {
$replacement = $hidetag['email_text'];
}

$text = preg_replace("/\[hide\](.*)\[\/hide\]/siU", $replacement, $text);
$text = preg_replace("/\[hide=([0-9]*)\](.*)\[\/hide\]/siU", $replacement, $text);

return $text;
}


Dosyayı kaydedip upload edin.

archive/index.php 'yi açın. Alttaki komut satırını bulun;


$post['pagetext'] = strip_bbcode($post['pagetext']);






Üst kısmına şunu ekleyin;
$post['pagetext'] = parseHide($post['pagetext']);




Dosyayı kaydedip upload edin.

functions/functions_digest.php 'yi açın. Alttaki kod satırını bulun;
$post['pagetext'] = unhtmlspecialchars(strip_bbcode($post['pagetext']));











Üst kısmına şunu ekleyin;

$post['pagetext'] = stripHide($post['pagetext']);








Dosyayı kaydedip upload edin.

functions/functions_forumdisplay.php 'yi açın. Alttaki kısmı bulun;
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode($thread['preview'], false, true), $vboptions['threadpreview']));





Bunun üst kısmına şunu ekleyin;

$thread['preview'] = parseHide($thread['preview']);







Dosyayı keydedip upload edin.

functions/functions_newpost.php 'yi açın. Alttaki satırı bulun;
previewmessage = parse_bbcode($newpost['message'], $foruminfo['forumid'], iif($newpost['disablesmilies'], 0, 1));









Bunu şununla değiştirin;
previewmessage = parseHide($newpost['message']);
$previewmessage = parse_bbcode($previewmessage, $foruminfo['forumid'], iif($newpost['disablesmilies'], 0, 1));









Sonra şu satırı bulun;
// strip bbcode and quotes from notification text






Altına şunu ekleyin;
$pagetext = stripHide($pagetext);









Dosyayı kaydedip upload edin.

functions/functions_showthread.php 'yi açın. Alttaki kısmı bulun;
$post['message'] = parse_bbcode($post['pagetext'], 'announcement', $post['allowsmilies']);







Ve şununla değiştirin;
$post['message'] = parseHide($post['pagetext']);
$post['message'] = parse_bbcode($post['message'], 'announcement', $post['allowsmilies']);



Sonra şunu bulun;


PHP Kod:
$post['message'] = &$post['pagetext_html'];
}



Altına şunu ekleyin;


PHP Kod:
$post['message'] = parseHide($post['message']);



Sonra şunu bulun;


PHP Kod:
$post['message'] = parse_bbcode($post['pagetext'], $forum['forumid'], $post['allowsmilie']);



Altına şunu ekleyin;


PHP Kod:
$post['message'] = parseHide($post['message']);



Dosyayı kaydedip upload edin.

functions/newreply.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$newpost['message'] = "$quotemessage $newpost[message]";



Bunun üstüne şunu ekleyin;


PHP Kod:
$quotemessage = stripHide($quotemessage, 'editor');



Sonra şu kısmı bulun;


PHP Kod:
if ($_REQUEST['do'] == 'newreply')
{

// falls down from preview post and has already been sent through htmlspecialchars() in build_new_post()
$title = $newpost['title'];



Altına şunu ekleyin;


PHP Kod:
if (!isset($_POST['submit']) AND !isset($_POST['preview'])) {
$newpost['message'] = stripHide($newpost['message'], 'editor');
}



Daha sonra şu satırı bulun;


PHP Kod:
$currentpage = urlencode("newreply.php?do=newreply&p=$postinfo[postid]&noquote=" . intval($_REQUEST['noquote']));



Üstüne şunu ekleyin;


PHP Kod:
$threadreviewbits = parseHide($threadreviewbits);



Dosyayı kaydedip upload edin.

search.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$post['pagetext'] = preg_replace('#\[quote(=(&quot;|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);



Bunun üstüne şunu ekleyin;


PHP Kod:
$post['pagetext'] = parseHide($post['pagetext']);



Dosyayı kaydedip upload edin.

showthread_quickreply ve editor_toolbar_standard isimli templatelerde her ikisinde de alttaki değişikliği yapın;

Alttaki kısmı bulun;


PHP Kod:
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>



Ve altına şunu ekleyin;


PHP Kod:
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('HIDE', '')" accesskey="h"><img class="image" src="$stylevar[imgdir_editor]/hide.gif" alt="$vbphrase[underline]" width="41" height="20" border="0" /></a></div></td>



$post['message'] = parseHide($post['pagetext']);
$post['message'] = parse_bbcode($post['message'], 'announcement', $post['allowsmilies']);



Sonra şunu bulun;


PHP Kod:
$post['message'] = &$post['pagetext_html'];
}



Altına şunu ekleyin;


PHP Kod:
$post['message'] = parseHide($post['message']);



Sonra şunu bulun;


PHP Kod:
$post['message'] = parse_bbcode($post['pagetext'], $forum['forumid'], $post['allowsmilie']);



Altına şunu ekleyin;


PHP Kod:
$post['message'] = parseHide($post['message']);



Dosyayı kaydedip upload edin.

functions/newreply.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$newpost['message'] = "$quotemessage $newpost[message]";



Bunun üstüne şunu ekleyin;


PHP Kod:
$quotemessage = stripHide($quotemessage, 'editor');



Sonra şu kısmı bulun;


PHP Kod:
if ($_REQUEST['do'] == 'newreply')
{

// falls down from preview post and has already been sent through htmlspecialchars() in build_new_post()
$title = $newpost['title'];



Altına şunu ekleyin;


PHP Kod:
if (!isset($_POST['submit']) AND !isset($_POST['preview'])) {
$newpost['message'] = stripHide($newpost['message'], 'editor');
}



Daha sonra şu satırı bulun;


PHP Kod:
$currentpage = urlencode("newreply.php?do=newreply&p=$postinfo[postid]&noquote=" . intval($_REQUEST['noquote']));



Üstüne şunu ekleyin;


PHP Kod:
$threadreviewbits = parseHide($threadreviewbits);



Dosyayı kaydedip upload edin.

search.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$post['pagetext'] = preg_replace('#\[quote(=(&quot;|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);



Bunun üstüne şunu ekleyin;


PHP Kod:
$post['pagetext'] = parseHide($post['pagetext']);



Dosyayı kaydedip upload edin.

showthread_quickreply ve editor_toolbar_standard isimli templatelerde her ikisinde de alttaki değişikliği yapın;

Alttaki kısmı bulun;


PHP Kod:
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>



Ve altına şunu ekleyin;


PHP Kod:
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('HIDE', '')" accesskey="h"><img class="image" src="$stylevar[imgdir_editor]/hide.gif" alt="$vbphrase[underline]" width="41" height="20" border="0" /></a></div></td>


Sonra şunu bulun;
$post['message'] = &$post['pagetext_html'];
}



Altına şunu ekleyin;
$post['message'] = parseHide($post['message']);







Sonra şunu bulun;
$post['message'] = parse_bbcode($post['pagetext'], $forum['forumid'], $post['allowsmilie']);



Altına şunu ekleyin;


PHP Kod:
$post['message'] = parseHide($post['message']);



Dosyayı kaydedip upload edin.

functions/newreply.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$newpost['message'] = "$quotemessage $newpost[message]";



Bunun üstüne şunu ekleyin;


PHP Kod:
$quotemessage = stripHide($quotemessage, 'editor');



Sonra şu kısmı bulun;


PHP Kod:
if ($_REQUEST['do'] == 'newreply')
{

// falls down from preview post and has already been sent through htmlspecialchars() in build_new_post()
$title = $newpost['title'];



Altına şunu ekleyin;


PHP Kod:
if (!isset($_POST['submit']) AND !isset($_POST['preview'])) {
$newpost['message'] = stripHide($newpost['message'], 'editor');
}



Daha sonra şu satırı bulun;


PHP Kod:
$currentpage = urlencode("newreply.php?do=newreply&p=$postinfo[postid]&noquote=" . intval($_REQUEST['noquote']));



Üstüne şunu ekleyin;


PHP Kod:
$threadreviewbits = parseHide($threadreviewbits);



Dosyayı kaydedip upload edin.

search.php 'yi açın. Alttaki kısmı bulun;


PHP Kod:
$post['pagetext'] = preg_replace('#\[quote(=(&quot;|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);



Bunun üstüne şunu ekleyin;


PHP Kod:
$post['pagetext'] = parseHide($post['pagetext']);



Dosyayı kaydedip upload edin.

showthread_quickreply ve editor_toolbar_standard isimli templatelerde her ikisinde de alttaki değişikliği yapın;

Alttaki kısmı bulun;


PHP Kod:
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>



Ve altına şunu ekleyin;


PHP Kod:
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('HIDE', '')" accesskey="h"><img class="image" src="$stylevar[imgdir_editor]/hide.gif" alt="$vbphrase[underline]" width="41" height="20" border="0" /></a></div></td>



Altına şunu ekleyin;
$post['message'] = parseHide($post['message']);






Dosyayı kaydedip upload edin.

functions/newreply.php 'yi açın. Alttaki kısmı bulun;

$newpost['message'] = "$quotemessage $newpost[message]";




Bunun üstüne şunu ekleyin;
$quotemessage = stripHide($quotemessage, 'editor');







Sonra şu kısmı bulun;
if ($_REQUEST['do'] == 'newreply')
{

// falls down from preview post and has already been sent through htmlspecialchars() in build_new_post()
$title = $newpost['title'];





Altına şunu ekleyin;
if (!isset($_POST['submit']) AND !isset($_POST['preview'])) {
$newpost['message'] = stripHide($newpost['message'], 'editor');
}







Daha sonra şu satırı bulun;
$currentpage = urlencode("newreply.php?do=newreply&p=$postinfo[postid]&noquote=" . intval($_REQUEST['noquote']));









Üstüne şunu ekleyin;
$threadreviewbits = parseHide($threadreviewbits);








Dosyayı kaydedip upload edin.

search.php 'yi açın. Alttaki kısmı bulun;
$post['pagetext'] = preg_replace('#\[quote(=(&quot;|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);







Bunun üstüne şunu ekleyin;
$post['pagetext'] = parseHide($post['pagetext']);









Dosyayı kaydedip upload edin.

showthread_quickreply ve editor_toolbar_standard isimli templatelerde her ikisinde de alttaki değişikliği yapın;

Alttaki kısmı bulun;
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>












Ve altına şunu ekleyin;

td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('HIDE', '')" accesskey="h"><img class="image" src="$stylevar[imgdir_editor]/hide.gif" alt="$vbphrase[underline]" width="41" height="20" border="0" /></a></div></td>






Değişiklikler bukadar.. En son olarak eklentideki gif dosyasını; forum dizini/images/editor klasörüne upload edin... Bukadar....

killer
10-11-05, 20:56
meraba dostum okeyde bunu nasil sitemize cakacagiz yani nasil uyguliyacagiz desem nedersin tesekurler dostum

CoDe_PoWeR
08-04-06, 12:53
aacıklamasını gayet guzel bır sekılde anlatmıs web tasarımdan anlamıyorsan bosuna ugrasma cunku bunu bılmeyen kısı bıle yapar paylasımın ıcın saolasın kardes