fazaljatoi wrote: DEMO?
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$quote_pic_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote_pic'] . '" alt="' . $lang['Reply_with_quote_including_images'] . '" title="' . $lang['Reply_with_quote_including_images'] . '" border="0" /></a>';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Image Replaced With URL For Quote
user wrote: Click for image
Code: Select all
$message = ( !empty($message) ) ? preg_replace('(img\])', 'url]', $message) : '';
The mod isn't work properly but this string really fixed the problem. Thanks craigpierce!craigpierce wrote:Ok, I fixed that 'img' problem by replacing the two regular expressions with this one:
Code: Select all
$message = ( !empty($message) ) ? preg_replace('(img\])', 'url]', $message) : '';