Thanks Crash_Sys, great mod.
I have made some small alterations of my own, like remove the need to hardcode your domain name, reduced the list to the links i require and also fixed all the links. (my first attempt at this by the way, didnt even know what the code looked like 2 days ago)
Still working on the copy buttons tho.
I hope this will be useful, just copy and paste, no changes needed.
Again, thanks for the mod Crash_Sys
Find lines
// Create the absolute URL for display in info
$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
// with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] no trailing slash in the configure
Add following lines below
// *** Begin of USER/Public Mode BB-Code and HTML ***
// Create the BB-Code with Link to Thumbnail for USERS/PUBLIC MODE
$bbcodethumb_url = get_pic_url($CURRENT_PIC_DATA, 'thumb');
$info['<b>Copy Info</b>']='<font color="#FF0000">Press Ctrl+A to Select All.</font> <font color="#008000">Then Press Ctrl+C to Copy Selected </font>';
$info['Forum Code<br>Thumbnail<br>With URL']='<textarea type=text name=text rows=2 cols=46>[url='.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').basename($_SERVER['PHP_SELF'])."?pos=-$CURRENT_PIC_DATA[pid]".'][img]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').$bbcodethumb_url.'[/img][/url]</textarea> <button class=button onClick="javascript:bbcodepublic();">Copy</button>';
// Image Link with URL for HTML
//$info['HTML Code<br>Thumbnail'] = '<textarea type=text name=text1 rows=2 cols=46><a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" ><img src="'. $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . get_pic_url($CURRENT_PIC_DATA,'thumb') . '" height="' . $CONFIG['thumb_width'] . '" alt="' . $CURRENT_PIC_DATA['title'] . '" align="left" border="0" /></a></textarea> <button class=button onClick="javascript:htmlcode();">Copy</button>';
// *** END of USER/Public Mode BB-Code and HTML ***
// *** Begin Admin Mode BB-Code List ***
if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
//Show BBcode for
if ($CONFIG['make_intermediate'] && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']) {
$bbcodepicture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
} else {
$bbcodepicture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
}
// Create Intermediate Image for Display
//$info['Intermediate']='<textarea type=text name=text3 rows=2 cols=46>' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . (str_replace($CURRENT_PIC_DATA['filename'] , "normal_".$CURRENT_PIC_DATA['filename'] , $path_to_pic)).'</textarea> <button class=button onClick="javascript:inter();">Copy</button>';
// Create the BB-Code with link to resized image
$info['Forum Code<br>Intermediate']='<textarea type=text name=text5 rows=2 cols=46>[img]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').(str_replace($CURRENT_PIC_DATA['filename'] , "normal_".$CURRENT_PIC_DATA['filename'] , $path_to_pic)).'[/img]</textarea> <button class=button onClick="javascript:bbinter();">Copy</button>';
$info['Forum Code<br>Intermediate<br>With URL']='<textarea type=text name=text6 rows=2 cols=46>[url='.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').basename($_SERVER['PHP_SELF'])."?pos=-$CURRENT_PIC_DATA[pid]".'][img]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').(str_replace($CURRENT_PIC_DATA['filename'] , "normal_".$CURRENT_PIC_DATA['filename'] , $path_to_pic)).'[/img][/url]</textarea> <button class=button onClick="javascript:bbinterurl();">Copy</button>';
// Create Image Link for Display
//$info['Full'] = "<textarea type=text name=text2 rows=2 cols=46>".$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $path_to_pic ."</textarea> <button class=button onClick=javascript:link();>Copy</button>";
// Show BB-Code for Full Image
$info['Forum Code<br>Full']='<textarea type=text name=text4 rows=2 cols=46>[img]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $path_to_pic.'[/img]</textarea> <button class=button onClick="javascript:bbcode();">Copy</button>';
// Create the Image Link with URL for BBS
//$info['Forum Code<br>Full<br>With URL']='<textarea type=text name=text4 rows=2 cols=46>[url='.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]".'][img]'.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $path_to_pic.'[/img][/url]</textarea> <button class=button onClick="javascript:bbcode();">Copy</button>';
}
// *** End of Admin Mode BB-Code List ***