Sitemiz sadece phpBB 3.0 sürümüne destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.


#
#-----[ OPEN ]-------------------------------------------------------
#
includes/abbcode.php
#
#-----[ FIND ]-------------------------------------------------------
#
$abbcode_image = trim($row['bbcode_image']);
#
#-----[ BEFORE, ADD ]------------------------------------------------
# NOTE: Add these lines on a new blank line before the preceding line(s) to find.
#
$abbcode_name = ( $row['bbcode_helpline'] == 'ABBC3_ED2K_TIP') ? 'ABBC3_ED2K' : $abbcode_name;
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM#
#-----[ OPEN ]-------------------------------------------------------
#
includes/acp/acp_abbcodes.php
#
#-----[ FIND ]-------------------------------------------------------
#
'IMG_SRC' => ($abbcode_image) ? ($abbcode_image != $img_spacer) ? $this->dir . '/images/' . $abbcode_image : '' : $img_noimg,
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'IMG_SRC' => ($abbcode_image) ? ($abbcode_image != $img_spacer) ? $this->dir . '/images/' . $abbcode_image : '' : $this->dir . '/images/' . $img_noimg,
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM#
#-----[ OPEN ]-------------------------------------------------------
#
language/en/mods/abbcode.php
#
#-----[ FIND ]-------------------------------------------------------
#
'ABBC3_ERROR_TAG' => 'Unexpected Error using tag : ',
#
#-----[ AFTER, ADD ]-------------------------------------------------
# NOTE: Add these lines on a new blank line after the preceding line(s) to find.
#
'ABBC3_NO_EXAMPLE' => 'No data example',
#
#-----[ OPEN ]-------------------------------------------------------
#
functions_abbcode.php
#
#-----[ FIND ]-------------------------------------------------------
#
$video_options .= '<option value="' . ( ( $example ) ? $example : 'No data example' ) . '" >' . $video_name . '</option>';
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
$video_options .= '<option value="' . ( ( $example ) ? $example : @$user->lang['ABBC3_NO_EXAMPLE'] ) . '" >' . $video_name . '</option>';
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/abbcode.php
#
#-----[ FIND ]-------------------------------------------------------
#
'flash.gif' ,'example' => "" ,'found'
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'flash.gif' ,'example' => "http://www.adobe.com/support/flash/ts/documents/test_version/version.swf" ,'found'
#
#-----[ FIND ]-------------------------------------------------------
#
'flashflv.gif' ,'example' => "" ,'found'
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'flashflv.gif' ,'example' => "http://www.channel-ai.com/video/eyn/demo1.flv" ,'found'
#
#-----[ FIND ]-------------------------------------------------------
#
'video.gif' ,'example' => "" ,'found'
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'video.gif' ,'example' => "http://www.sarahsnotecards.com/catalunyalive/fishstore.wmv" ,'found'
#
#-----[ FIND ]-------------------------------------------------------
#
'quicktime.gif' ,'example' => "" ,'found'
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'quicktime.gif' ,'example' => "http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt | http://www.carnivalmidways.com/images/Music/thisisatest.mp3",'found'
#
#-----[ FIND ]-------------------------------------------------------
#
'ram.gif' ,'example' => "" ,'found'
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'ram.gif' ,'example' => "http://www.bbc.co.uk/scotland/radioscotland/media/radioscotland.ram" ,'found'
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM function click_pass( $var1, $var2 )
{
global $db, $user, $phpbb_root_path, $phpEx;
$var1 = str_replace("\r\n", "\n", str_replace('\"', '"', trim($var1)));
$var2 = str_replace("\r\n", "\n", str_replace('\"', '"', trim($var2)));
$url = ($var1) ? $var1 : $var2;
if ($var1 && !$var2)
{
$var2 = $var1;
}
if (!$url)
{
return '[click' . ( ($var1) ? '=' . $var1 : '' ) . ']' . $var2 . '[/click]';
}
$valid = false;
$url = str_replace(' ', '%20', $url);
// Checking urls
if (preg_match('#^' . get_preg_expression('url') . '$#i', $url) ||
preg_match('#^' . get_preg_expression('www_url') . '$#i', $url) ||
preg_match('#^' . preg_quote(generate_board_url(), '#') . get_preg_expression('relative_url') . '$#i', $url))
{
$valid = true;
$data = array(
'url' => str_replace( array( ':', '.' ), array( ':', '.' ), addslashes( $url ) ) ,
);
}
// Checking image urls/src
if ( preg_match("#<img((.*?))\/>#si", $url) )
{
// Fix for thumbnail
if ( !preg_match("#gb_imageset#si", $url) )
{
$valid = true;
}
$url = str_replace('%20 ', ' ', $var2);
$data = array(
'url' => preg_replace('#<img src="(.*?)"((.*?))\/>#si', '$1', $var2 ),
);
}
if ( $valid )
{
$sql = 'SELECT id, clicks FROM ' . CLICKS_TABLE . ' WHERE ' . $db->sql_build_array( 'SELECT', $data );
$result = $db->sql_query($sql);
if( $row = $db->sql_fetchrow( $result ) )
{
$clicks_id = $row['id'];
$clicks_val= $row['clicks'];
}
else
{
$sql = 'INSERT INTO ' . CLICKS_TABLE . ' ' . $db->sql_build_array( 'INSERT', $data );
$db->sql_query($sql);
$clicks_id = $db->sql_nextid();
$clicks_val= '0';
}
$user->add_lang('mods/abbcode');
// Link to ABBC3 simple redirect page
$redirect = append_sid("{$phpbb_root_path}includes/functions_abbcode.$phpEx", "mode=click&id=$clicks_id");
return '<a href="' . $redirect . '" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;" >' . ( ($var1) ? $var2 : $url ) . '</a> ' . sprintf( ( ( $clicks_val == 1 ) ? $user->lang['ABBC3_CLICK_TIME'] : $user->lang['ABBC3_CLICK_TIMES'] ), $clicks_val );
}
return '[click' . ( ($var1) ? '=' . $var1 : '' ) . ']' . $var2 . '[/click]';
}
sabri ünal yazdı:şuna temiz bir 1.0.9 fixed yayınlayın kardeşler



Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir