the "Last 5 Attachments in Forum " in threads is part of First Topic IMG MOD?
no, it is a seperate mod and will came out @ "Last X Attachments in Forum",
so the X will autodetect by size-of-thumb and screen-resolution ;)
in other words: it's in dev
the "Last 5 Attachments in Forum " in threads is part of First Topic IMG MOD?
dkdkdkdk wrote: I will try your mod + HSplugin on clear forum and then add the other mods. Maybe they are colliding somehow.
if (!file_exists($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic)){
if (!empty($remote_clr_pic) && @getimagesize($remote_raw_pic)){
$convert_only_size = getimagesize($remote_raw_pic);
//---------SETTINGS---------
// make the setting, if you desired width or height here
$width_or_height = 'width';
// i find width more attractiv ;)
//----------------------------------
// if u enter height, than the pic should be centered ? (yes or no)
// $center_or_what = 'yes';
// for future releases / don't ask
//----------------------------------
// make the setting of max px here (counts for width or height)
$convert_max_size = 80;
// don't make it to big
//---------SETTINGS---------
if ($width_or_height == 'width'){
$convert_only_sizing = $convert_only_size[0];}
else {
$convert_only_sizing = $convert_only_size[1];}
if ($convert_only_sizing > $convert_max_size){
if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}
$image = new simpleresize();
$image->load($remote_raw_pic);
if ($width_or_height == 'width'){
$image->resizeToWidth($convert_max_size);}
else{
$image->resizeToHeight($convert_max_size);}
$image->save($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);}}}}}
else{
$remote_clr_pic = '';
$remote_raw_pic = '';
$rowz['post_id'] = '';}
// 4seven / First Topic [img] on Forum Index / 2009
if (!file_exists($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic)){
if (!empty($remote_clr_pic) && @getimagesize($remote_raw_pic)){
copy($remote_raw_pic, $phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);
$convert_only_size = getimagesize($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);
//---------SETTINGS---------
// make the setting, if you desired width or height here
$width_or_height = 'width';
// i find width more attractiv ;)
//----------------------------------
// if u enter height, than the pic should be centered ? (yes or no)
// $center_or_what = 'yes';
// for future releases / don't ask
//----------------------------------
// make the setting of max px here (counts for width or height)
$convert_max_size = 80;
// don't make it to big
//---------SETTINGS---------
if ($width_or_height == 'width'){
$convert_only_sizing = $convert_only_size[0];}
else {
$convert_only_sizing = $convert_only_size[1];}
if ($convert_only_sizing > $convert_max_size){
if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}
$image = new simpleresize();
$image->load($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);
if ($width_or_height == 'width'){
$image->resizeToWidth($convert_max_size);}
else{
$image->resizeToHeight($convert_max_size);}
$image->save($phpbb_root_path . 'images/viewforum_thumbs/' . '_' . $remote_clr_pic);}}}}}
else{
$remote_clr_pic = '';
$remote_raw_pic = '';
$rowz['post_id'] = '';}
// 4seven / First Topic [img] on Forum Index / 2009
Fatal error: Cannot redeclare class simpleresize in D:\ComplexWebServer\http_docs\thumb_resize.php on line 10
if (!function_exists('simpleresize')) {
include($phpbb_root_path . 'thumb_resize.' . $phpEx);}
include_once($phpbb_root_path . 'thumb_resize.' . $phpEx);
Users browsing this forum: No registered users and 10 guests