Forum Moderators: coopster

Message Too Old, No Replies

copy/paste image url not showing properly

         

BertieAnn

7:52 pm on Nov 1, 2008 (gmt 0)

10+ Year Member



I'm wondering if someone can look at this piece of code for me and tell me what is missed up. The url should be showing within the IMG tag, but it isn't.

A link to see the problem I am having is: <snip>

Here is the associated code that I am using:

$img_url = '[url='.$CONFIG['ecards_more_pic_target'].$fullsize_url.'] '.$CONFIG['ecards_more_pic_target'].$thumb_url.' [/url]';
$name_url = '[url='.$CONFIG['ecards_more_pic_target'].$fullsize_url.']'.$name.'[/url]';
$img_dir_url = $CONFIG['ecards_more_pic_target'].$fullsize_url;
$img_dir_url_forum = ' '.$CONFIG['ecards_more_pic_target'].$fullsize_url.' ';

//this just brings everything in form... we create a table etc.

$bbcode_data = '<table align="center" width="'.$CONFIG['picture_width'].'">'.$script_data.'<tr>';
$bbcode_data .= '<td>Thumbnail Size</td>';
$bbcode_data .= '<td><textarea name="bbcode" rows="1" cols="40" style="overflow:off;">'.$img_url.'</textarea><input type="button" value="Copy" onclick=\'copy_clip("'.$img_url.'")\'></td>';

$bbcode_data .= '</tr><tr>';

$bbcode_data .= '<td>Full Size</td>';
$bbcode_data .= '<td><textarea name="bbcode" rows="1" cols="40">'.$img_dir_url_forum.'</textarea><input type="button" value="Copy" onclick=\'copy_clip("'.$img_dir_url_forum.'")\'></td>';

$bbcode_data .= '</tr><tr>';

$bbcode_data .= '<td>Direct Link</td>';
$bbcode_data .= '<td><textarea name="bbcode" rows="1" cols="40">'.$img_dir_url.'</textarea><input type="button" value="Copy" onclick=\'copy_clip("'.$img_dir_url.'")\'></td>';

$bbcode_data .= '</tr></table>';

[edited by: eelixduppy at 9:10 pm (utc) on Nov. 1, 2008]
[edit reason] removed URL [/edit]

jatar_k

12:41 pm on Nov 2, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld BertieAnn,

have you looked at the page source to see what is actually created? Most often that will give you your answer.

is this the line we are talking about?

$img_url = '[url=' . $CONFIG['ecards_more_pic_target'] . $fullsize_url . '][IMG]' . $CONFIG['ecards_more_pic_target'] . $thumb_url . '[/IMG]';

and which variable is getting messed up?

BertieAnn

2:09 pm on Nov 2, 2008 (gmt 0)

10+ Year Member



I think I have it fixed now, but thanks for looking