Tam oalrak sorunu bulamadım bu sorun neden kaynaklanır?
Mod bu;
Kod: Tümünü seç
#
#-----[ 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]','
- ','
- ','
#
#-----[ BUNUNLA DEĞİŞTİR ]-------------------------------------------
#
bbtags = new Array('','','','','','','[quote]','[/quote]','
Kod: Tümünü seç
','
- ','
- ','
#
#-----[ 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]