BU SİTE PHP-NUKE SONLANINCA KAPANDI. İÇİNDE EMEK OLDUĞUNDAN AÇIK TUTULMAKTADIR.
GÜNCEL İÇERİK BLOG SAYFASINDADIR!
Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 2598
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 Forumda [img] Taglarina c..
(8630 okuma, 3 yanıt)
 Forumu kuramıyorum...
(6363 okuma, 1 yanıt)
 PHPBB DE forumun karşısın..
(12901 okuma, 10 yanıt)
 php nuke 7.6 forum phpBB ..
(6011 okuma, 1 yanıt)
 İlan Modülü..
(20810 okuma, 18 yanıt)
 Phbb2 forum jooma taşımak..
(4919 okuma, 0 yanıt)
 phpBB2.x Forumda mesaj gö..
(7418 okuma, 4 yanıt)
 Forumlardaki yanlış yere ..
(8093 okuma, 4 yanıt)
 Cevap yazmadan link görün..
(7490 okuma, 3 yanıt)
 Forumdan Hata Alıyorum?..
(9775 okuma, 4 yanıt)
 temalar..
(11423 okuma, 6 yanıt)
 Forum temasını değiştim f..
(13400 okuma, 10 yanıt)
 Forumda yeni mesajları gö..
(6062 okuma, 1 yanıt)
 Forumda boş mesaj ve kara..
(5858 okuma, 1 yanıt)
 Son 24 Saat İçin Online O..
(18548 okuma, 16 yanıt)
 Neden kimse yardım etmiyo..
(8000 okuma, 4 yanıt)
 Sorunu Çözdüm, teşekkürle..
(6455 okuma, 2 yanıt)
 Guestler Forumda Tam Meti..
(7292 okuma, 2 yanıt)
 Forum Başlıkta sorun..
(5280 okuma, 0 yanıt)
 2 phpbb forumunu birleşti..
(10224 okuma, 4 yanıt)
 forumlarda avatar sorunu..
(6654 okuma, 2 yanıt)
 Phpbb Yardim..
(7009 okuma, 2 yanıt)
 phpbb 2 den 3'e geçmek ..
(13856 okuma, 11 yanıt)
 Forumdan Çıkış Yapınca Çı..
(8964 okuma, 5 yanıt)
 Forumda mesaj sıralaması ..
(5379 okuma, 0 yanıt)
 html kodu div nasil eklen..
(8593 okuma, 4 yanıt)
 phpbb 2.0.17 den 2.0.23 e..
(12324 okuma, 8 yanıt)
 forumu bu şekilde nasıl y..
(16007 okuma, 13 yanıt)
 forumda Konu basligini bü..
(6810 okuma, 2 yanıt)
 Mesj İçeriginden Belirli ..
(6296 okuma, 1 yanıt)
 code içine alınmış yeri g..
(5900 okuma, 1 yanıt)
 forumlara nasıl video emb..
(28251 okuma, 4 yanıt)
 Forumda türkçe karakter s..
(13379 okuma, 11 yanıt)
 Konu ve Başlığa Göre Foru..
(6483 okuma, 1 yanıt)
 Bu yazıyı foruma nasıl ek..
(6440 okuma, 2 yanıt)
 phpBB 2.0.15 Kullanıyorum..
(5148 okuma, 0 yanıt)
 Forumu yanlışlıkla sildim..
(8433 okuma, 3 yanıt)
 forumda kayan yazı sorunu..
(8518 okuma, 5 yanıt)
 Forum Kategorileri nasıl ..
(8035 okuma, 3 yanıt)
 Tema Resimleri Çıkmıyor- ..
(12288 okuma, 7 yanıt)
 phpbb tema yazı ve tablo ..
(7552 okuma, 3 yanıt)
 profilde yüklediğim temay..
(12211 okuma, 9 yanıt)
 forum adminden eposta .....
(10748 okuma, 5 yanıt)
 Sitemde ki forum grafikle..
(18202 okuma, 17 yanıt)
 kulanıcılara toplu email ..
(5472 okuma, 0 yanıt)
 silinen mesajları geri al..
(17041 okuma, 13 yanıt)
 Toplu mesaj sorunu?..
(5181 okuma, 0 yanıt)
 Forumda Yaho videolarını ..
(49312 okuma, 21 yanıt)
 Forum Tag Sistemi..
(13441 okuma, 10 yanıt)
 Forum Dizinim Yanlış..
(9708 okuma, 6 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Mesj İçeriginden Belirli Bölgeyi Gizleyin [hide]mesaj[/hide]
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


Mesj İçeriginden Belirli Bölgeyi Gizleyin [hide]mesaj[/hide]

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> phpBB 2.x Sürümleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
fatiih_1989
Mesaj: 1+
Mesaj: 1+





Kayıt: Feb 12, 2009
Mesajlar: 19

MesajTarih: 2009-03-11, 12:04:56    Mesaj konusu: Mesj İçeriginden Belirli Bölgeyi Gizleyin [hide]mesaj[/hide] Alıntıyla Cevap Gönder

Kod:
############################################################################
## MOD HIDE | Made By / Auteur: Philiweb <http>
############################################################################
## Description : MOD "HIDE" (aka lockdown) - this mod allow users to hide
## a message via some "bbcodes", ex : [hide] message [/hide]. To see the
## hidden message, you must be a member and you must post a reply to
## the message...
############################################################################
## VERSION DE PHPBB : PHPBB 2.0 RC3 - RC4 - 2.0.x (gold) - 2.0.4 |02/2003|
############################################################################
## You can find the last versions and informations here on the official
## website (in English and French) :
## http://membres.lycos.fr/philiweb/accueil.php?num=15
## Info : There is also some pre-modified files if you have difficulties !
############################################################################
## And you can find some modifications to "hide" mod here :
## http://membres.lycos.fr/philiweb/accueil.php?num=23
## new : version 4 => administrators and moderators can see "hidden
## messages" immediatly...)
############################################################################
## Demo : http://membres.lycos.fr/philiweb/forums/viewtopic.php?t=167
############################################################################
## This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
############################################################################

There is 7 files to modify :

1 - posting.php
2 - viewtopic.php
3 - search.php
4 - topic_review.php // in the "/includes" directory
5 - bbcode.php // in the "/includes" directory
6 - bbcode.tpl // in the Templates/{Used template}/ directory
7 - posting_body.tpl // in the Templates/{Used template}/ directory

This mod is easy to install. (20 mn)

------------------
1 - In posting.php
------------------

Find 

if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )
{
        $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
}

if( $bbcode_on )
{
        $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);
}
 

Replace by 

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}

if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )
{
        $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
        $user_sig = bbencode_third_pass($user_sig, $userdata['user_sig_bbcode_uid'], $valid);
}

if( $bbcode_on )
{
        $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);
        $preview_message = bbencode_third_pass($preview_message, $bbcode_uid, $valid);
}
 

Find 

if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 )
{
        $subject = 'Re: ' . $subject;
}
 

Add Below 

if( !$userdata['session_logged_in'] ) {$message = hide_in_quote($message);}
else { $sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
if(!$db->sql_numrows($resultat)) {$message = hide_in_quote($message);}
}


--------------------
2 - In viewtopic.php
--------------------


Find 

//
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
// then get it's value, find the number of topics with dates newer than it (to properly
// handle pagination) and alter the main query
//
 

Add below 

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}
 

Find 

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
        $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
}

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
}
 

Replace by 

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
        $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
        $user_sig = bbencode_third_pass($user_sig, $user_sig_bbcode_uid, $valid);
}

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, $valid);
}
 
-----------------
3 - In search.php
-----------------

Find 

//
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if ( $return_chars != -1 )
 

And replace it by 

//
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if( $return_chars == -1 )
 

Find 

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
}
 

Replace by 

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, FALSE);
}
 
-----------------------
4 - In topic_review.php  // in the "/includes" directory
-----------------------

Find 

        //
        // Okay, let's do the loop, yeah come on baby let's do the loop
        // and it goes like this ...
        //
        if ( $row = $db->sql_fetchrow($result) )
        {
 

Add below 

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}
 

Find 

if ( $bbcode_uid != "" )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
}
 

Replace by 

if ( $bbcode_uid != "" )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, $valid);
}
 
-----------------
5 - In bbcode.php // in the "/includes" directory
-----------------

Find 

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); 

Add Below 

$bbcode_tpl['show'] = str_replace('{HTEXTE}', '\\1', $bbcode_tpl['show']);
 

*Before* this text 

/**
 * Does second-pass bbencoding. This should be used before displaying the message in
 * a thread. Assumes the message is already first-pass encoded, and we are given the
 * correct UID as used in first-pass encoding.
 */
 

Add this functions 

function hide_in_quote($text)
{
        $text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","--- phpBB : The Protected Message is not copied in this quote ---", $text);
        return $text;
}

function bbencode_third_pass($text, $uid, $deprotect)
{
        global $bbcode_tpl;

        // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
        // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
        $text = " " . $text;

        // First: If there isn't a "[" and a "]" in the message, don't bother.
        if (! (strpos($text, "[") && strpos($text, "]")) )
        {
                // Remove padding, return.
                $text = substr($text, 1);
                return $text;
        }
        // Patterns and replacements for URL and email tags..
        $patterns = array();
        $replacements = array();
 
        if ( $deprotect ) {
        $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
        $replacements[0] = $bbcode_tpl['show'];
        }
        else
        {
        $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
        $replacements[0] = $bbcode_tpl['hide'];
        }

        $text = preg_replace($patterns, $replacements, $text);
 
        // Remove our padding from the string..
        $text = substr($text, 1);

        return $text;
}
 

Find in function "bbencode_first_pass" 

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\](([a-z]+?)://([^ \"\n\r]+?))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text); 

Add Below 

//[hide]message[/hide]
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","[hide:$uid]\\1[/hide:$uid]", $text); 


-----------------
6 - In bbcode.tpl // in the Templates/{Used template}/ directory
-----------------
 
At the top, add 

<BEGIN>
</span>
<table>
<tr>
          <td><span><b>Protected Message:</b></span></td>
        </tr>
        <tr>
          <td>
                {HTEXTE}
                </td>
        </tr>
</table>
<span>
<END>

<BEGIN>
</span>
<table>
<tr>
          <td><span><b>Protected Message:</b></span></td>
        </tr>
        <tr>
          <td>
                <center>--- If you are a *registered user* : you need to post in this topic to see the message ---</center>
                </td>
        </tr>
</table>
<span>
<END>

-----------------------
7 - In posting_body.tpl // in the Templates/{Used template}/ directory
-----------------------

 This part add a button in the dialog box (newtopic,...).

In the list of "// Helpline messages", add :
 

h_help = "Hide: [hide]message[/hide] (alt+h)"; 

Find this line :
bbtags = new Array('[b]','[/b]'...

And add at the end :
'[hide]' and '[/hide]'

You will obtain something like this :
 

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[hide]','[/hide]');
 

Find 

<td><span>
<input>
</span></td>
 

Add Below : (Don't forget to adapt the "addbbcode" numbers if neccesary ! (exemple: addbbcode18 -> addbbcode20, 20 -> 22, etc) 

<td><span>
<input>
</span></td>
 

Next, you need to modify all the "addbbcodexx" in the rest of the file. (exemple : addbbcode20 -> addbbcode22)

That's all ! :-)
Philippe

IF YOU HAVE A PROBLEM ("undefined" instead of [hide]...) - Go on my website or contact me :
http://membres.lycos.fr/philiweb/download/hide/hackhide.php?ver=rc3&num=7&lang=en
Official page => http://membres.lycos.fr/philiweb/accueil.php?num=15



Denemek Istedim Fakat Kuramadım Kuran Varsa Bana da Göndersin Very Happy
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2026-04-14, 21:35:24    Mesaj konusu: Forum Arası Reklamlar

Başa dön
alipaksi
PhpBB Sorumlusu
PhpBB Sorumlusu





Kayıt: Jun 22, 2007
Mesajlar: 1028
Konum: Denizli

MesajTarih: 2009-03-11, 14:59:55    Mesaj konusu: Alıntıyla Cevap Gönder

nasıl biz kurup göndericez anlamadım şimdi nerde hata aldın hatayı söylede ona göre bakalım bizde
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> phpBB 2.x Sürümleri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok forum son 10 mesaj bloğu hakanika Php Nuke Sorunlarınız 4 2010-05-18, 11:06:52 Son Mesajı Görüntüle
Yeni mesaj yok Pm (Özel Mesaj&#41; Gelince Uyarı... DursunKaptan Php Nuke Sorunlarınız 8 2010-05-11, 17:45:59 Son Mesajı Görüntüle
Yeni mesaj yok Forumlara mesaj yazdıktan sonra çıkan... anzerhoneybee Php Nuke Sorunlarınız 3 2010-02-28, 19:45:49 Son Mesajı Görüntüle
Yeni mesaj yok phpnuke foruma güvenlik kodu ile mesa... okumas NukeBB Eklentileri 3 2010-02-14, 20:03:25 Son Mesajı Görüntüle
Yeni mesaj yok pms'de gelen mesaj kodu nedir. flk44 Php Nuke Sorunlarınız 1 2010-01-14, 21:47:22 Son Mesajı Görüntüle

Copyright © 2002-2026 Ali Osman KAHRAMAN - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
netopsiyon®, Ali Osman KAHRAMAN' a ait tescilli bir markadır. İzinsiz kullanılamaz!
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright