hide modu düzgün calismiyor

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kilitli
lion
Kayıtlı Kullanıcı
Mesajlar: 147
Kayıt: 22.08.2006, 05:59
İletişim:

hide modu düzgün calismiyor

Mesaj gönderen lion »

selam arkadaslar hide modunu aynen bu selikde posting_body.tpl in icine ekledim ama mesaj panelinde hide resmine tiklayinca url adresi istiyor
yani enter the url diyor ve hide gif mesajlari saklamiyor web adrsi soruyor

acaba burda ney karisti biriyle ve kirmizi ve mavi yazili ayni Satir icinde

<img border="0" src="bbcode_box/images/hide.gif" width="24" height="20" name="hide" type="image" onClick="BBCurl()" onMouseOver="helpline('hide')" style="border-style: outset; border-width: 1" alt="Hide">
<img border="0" src="bbcode_box/images/url.gif" width="24" height="20" name="url" type="image" onClick="BBCurl()" onMouseOver="helpline('url')" style="border-style: outset; border-width: 1" alt="URL"><img border="0" src="bbcode_box/images/email.gif" width="24" height="20" name="email" type="image" onClick="BBCmail()" onMouseOver="helpline('mail')" style="border-style: outset; border-width: 1" alt="Email">&nbsp;&nbsp;
---------------------------------

#
#-----[ AÇ ]------------------------------
#

templates/kullanýlan tema/posting_body.tpl

#
#-----[ ARA ]-----------------------------------
#

<img border="0" src="bbcode_box/images/url.gif" width="24" height="20" name="url" type="image" onClick="BBCurl()" onMouseOver="helpline('url')" style="border-style: outset; border-width: 1" alt="URL">

#
#-----[ ÖNCESÝNE EKLE ]-------------------------------------------
#

<img border="0" src="bbcode_box/images/hide.gif" width="24" height="20" name="hide" type="image" onClick="BBCurl()" onMouseOver="helpline('hide')" style="border-style: outset; border-width: 1" alt="Hide">


#-----[ TÜM DOSYALARI KAYDET/KAPAT ]-----
lion
Kayıtlı Kullanıcı
Mesajlar: 147
Kayıt: 22.08.2006, 05:59
İletişim:

Mesaj gönderen lion »

arkadaslar bi bilgisi olan yokmu burda

ne den mesaj panelinde hide button nuna tiklayinca
enter the url diyor yani internet adressi istiyor,

yoksa bu kod mu yanlis acaba

<img border="0" src="bbcode_box/images/hide.gif" width="24" height="20" name="hide" type="image" onClick="BBCurl()" onMouseOver="helpline('hide')" style="border-style: outset; border-width: 1" alt="Hide">
Kullanıcı avatarı
RAUVAS
Uzaklaştırıldı
Mesajlar: 505
Kayıt: 16.09.2006, 00:41
Konum: Paris
İletişim:

Mesaj gönderen RAUVAS »

Gelişmiş Biçim kodu modunu da kullanıyormusun?
[ resmi görüntülemek için tıklayın ]
AŞKA DAİR
MEKANS

Arkadaşlık sctripleri(yonja,club81)oyun sctripleri (flash,mynet) kurulur
lion
Kayıtlı Kullanıcı
Mesajlar: 147
Kayıt: 22.08.2006, 05:59
İletişim:

Mesaj gönderen lion »

arkadasim nasil yani tam anliyamadim

kulklandigim mod bu

ve php version phpbb2 plus 153

Kod: Tümünü seç


############################################################## 
## MOD Adý: Hide Mod (phpBB 2 Plus 1.52
## MOD Yazarý: Philiweb < http://www.philiweb.com/ >
## Mod Uyumlandýrýcý: Plus 1.52 sürümü ile uyumlandýrma (Mustafa) < http://www.trpano.com/ >
## MOD Açýklamasý: [hide]-[/hide] taglarý arasýna ekleyeceðiniz mesajlarý gizlemenizi saðlar.
## MOD Versiyonu: 01/2006 
## 
## Kurulum Derecesi: Orta 
## Kurulum Süresi: 20 dakika 
## Düzenlenecek Dosyalar: 9
##			  posting.php
##			  viewtopic.php
##			  search.php
##			  includes/topic_review.php
##			  includes/bbcode.php
##			  templates/kullanýlan tema/bbcode.tpl
##			  templates/kullanýlan tema/bbcode.js
##			  templates/kullanýlan tema/posting_body.tpl
##			  language/lang_turkish/lang_main.php
## Ýçerdiði Dosyalar: 2
##			  templates/kullanýlan tema/images/hide.gif
##			  templates/kullanýlan tema/images/unhide.gif
## Lisans: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
############################################################## 
## Güvenliðiniz sebebiyle, Mod'larýn yeni sürümlerini kontrol etmek için lütfen 
## http://www.phpbb.com/mods/ adresini ziyaret ediniz. MOD'lar MOD-Veritabaný 
## tarafýndan onaylanmadan önce kontrol edilmesine karþýn bir güvenlik açýðý 
## oluþturmayacaðý garantisi verilemez. Baþka sitelerden indirdiðiniz
## modlar sebebiyle phpBB forumunuza kötü niyetli kodlar eklenebilir. phpBB baþka 
## sitelerden indirdiðiniz dosyalar için destek vermez, phpBB MOD-Veritabaný için, 
## http://www.phpbb.com/mods/ adresini ziyaret ediniz.
############################################################## 
## MOD'u forumunuza eklemeden önce MOD'da deðiþiklik yapýlacak tüm dosyalarýn yedeðini alýnýz. 
############################################################## 

# 
#-----[ AÇ ]------------------------------ 
# 
posting.php
# 
#-----[ ARA ]----------------------------------- 
# 

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);
} 

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
#

$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);
}

# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
# 

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);}
}

# 
#-----[ ARA ]----------------------------------- 
#
 
 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

# 
#-----[ Sonrasýna Ekle ]------------------------------------------- 
#

 'L_BBCODE_HD_HELP' => $lang['bbcode_hd_help'],

# 
#-----[ ARA ]----------------------------------- 
#
 
 //NOTE: the first element of each array must be ''   Add new elements AFTER the ''
$EMBB_keys = array('','g', 'd', 'e', 'h', 'j', 'j', 'j', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', 'th') ;
$EMBB_widths = array('','57' ,'57','57','57','57','57','57','57','57','57','57','57','57','57','57','57','57','57') ;
$EMBB_values = array('','Glow' ,'Shadow','Align','Fade','ScrollLeft','Scrollright','ScrollUp','Scrolldown','Highlight','Flash','FlipV','FlipH','Stream','Left','Right',$lang['PHPCode'],'Google','Through') ;
/* ///// removed for BBCode Buttons Mod /////

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
#

 //NOTE: the first element of each array must be ''   Add new elements AFTER the ''
$EMBB_keys = array('','g', 'd', 'e', 'h', 'j', 'j', 'j', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', 'th', 'hd') ;
$EMBB_widths = array('','57' ,'57','57','57','57','57','57','57','57','57','57','57','57','57','57','57','57','57','57') ;
$EMBB_values = array('','Glow' ,'Shadow','Align','Fade','ScrollLeft','Scrollright','ScrollUp','Scrolldown','Highlight','Flash','FlipV','FlipH','Stream','Left','Right',$lang['PHPCode'],'Google','Through','Hide') ;
/* ///// removed for BBCode Buttons Mod /////
 

# 
#-----[ AÇ ]------------------------------ 
# 
viewtopic.php
# 
#-----[ ARA ]----------------------------------- 
# 

//
// 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
// 

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

$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;}

# 
#-----[ ARA ]----------------------------------- 
# 

if ($user_sig != '' && $user_sig_bbcode_uid != '')
{
        $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
}

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

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
# 

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
        $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/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("/\:$bbcode_uid/si", '', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, $valid);
}

# 
#-----[ AÇ ]------------------------------ 
# 
search.php
# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
#

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

# 
# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
# 

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); 
}

# 
#-----[ AÇ ]------------------------------ 
# 
includes/topic_review.php
# 
#-----[ ARA ]----------------------------------- 
# 

        //
        // 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) )
        {

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

$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;}

# 
# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ BUNUNLA DEÐÝÞTÝR ]------------------------------------------- 
# 

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);
}

# 
#-----[ AÇ ]------------------------------ 
# 
includes/bbcode.php
# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

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

# 
# 
#-----[ ARA ]----------------------------------- 
# 

/**
 * 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.
 */ 

# 
#-----[ ÖNCESÝNE EKLE ]------------------------------------------- 
# 

function hide_in_quote($text)
{
        $text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","Bu uygulama üyelerin foruma katýlýmýný saðlamak içindir...", $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;
}

# 
#-----[ ARA ]----------------------------------- 
# 

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

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

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

# 
#-----[ AÇ ]------------------------------ 
#

language/lang_turkish/lang_main.php

# 
#-----[ ARA ]----------------------------------- 
# 

 $lang['bbcode_f_help'] = '<b>Font boyutu:</b> [size=x-small]küçük font[/size]';

# 
#-----[ Sonrasýna Ekle ]------------------------------------------- 
#

 $lang['bbcode_hd_help'] =  '<b>Hide:</b> [hide]mesaj[/hide] (alt+h)';

# 
#-----[ AÇ ]------------------------------ 
# 
templates/kullanýlan tema/bbcode.tpl
# 
#-----[ ARA ]----------------------------------- 
# 

<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

# 
#-----[ ÖNCESÝNE EKLE ]------------------------------------------- 
#

<!-- BEGIN show --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><p align="center"><img border="0" src="templates/subSilver/images/unhide.gif" width="190" height="70"></p></span></td>
        </tr>
        <tr>
	<td class="quote"> 
                {HTEXTE}
          </td>
        </tr>
</table>
<span class="postbody">
<!-- END show --> 

<!-- BEGIN hide --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><p align="center"><img border="0" src="templates/subSilver/images/hide.gif" width="190" height="70"></p></span></td>
        </tr>
        <tr>
	 <td class="quote"> 
       <center><b>Bu uygulama üyelerin foruma katýlýmýný saðlamak içindir...</b></center>
          </td>
        </tr>
</table>
<span class="postbody">
<!-- END hide -->

# 
#-----[ AÇ ]------------------------------ 
#
 
templates/kullanýlan tema/bbcode.js

# 
#-----[ ARA ]----------------------------------- 
# 

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

#
#-----[ BUNUNLA DEÐÝÞTÝR ]-------------------------------------------
#

bbtags = new Array('','','','','','','[quote]','[/quote]','','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]');

#
#-----[ AÇ ]------------------------------
#

templates/kullanýlan tema/posting_body.tpl

#
#-----[ ARA ]-----------------------------------
#

<img border="0" src="bbcode_box/images/url.gif" width="24" height="20" name="url" type="image" onClick="BBCurl()" onMouseOver="helpline('url')" style="border-style: outset; border-width: 1" alt="URL">

#
#-----[ ÖNCESÝNE EKLE ]-------------------------------------------
#

<img border="0" src="bbcode_box/images/hide.gif" width="24" height="20" name="hide" type="image" onClick="BBCurl()" onMouseOver="helpline('hide')" style="border-style: outset; border-width: 1" alt="Hide">


#-----[ TÜM DOSYALARI KAYDET/KAPAT ]------------------------------------------
#
#
#
#
#


[/code]
lion
Kayıtlı Kullanıcı
Mesajlar: 147
Kayıt: 22.08.2006, 05:59
İletişim:

Mesaj gönderen lion »

arkadaslar yokmu bu konuda bilgisi olan
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir