Hi, I downloaded the CodyT MODS pack at:
http://www.pirateshare.net/?id=2240865
Im trying to install the Thumbnail Zoom MOD in my site, in this page you can see the MOD working: http://www.pathos.gr
I followed all steps in the readme file for this MOD, but when I upload the inc/design.inc.php modified, thumbnails on my site are not showing, so I think the problem is in this file, here you can see the code modified in this file:
Someone can help me please??Code:function get_member_thumbnail( $ID, $float ) { global $site; global $dir; global $thumb_width; global $thumb_height; $memberID = (int)$_COOKIE['memberID']; $ID = (int)$ID; if( $ID ) { $cacheFile = $dir['cache'] . 'user' . $ID . '.php'; if( file_exists( $cacheFile ) ) { require_once( $cacheFile ); global $aUser; if( isset($aUser[$ID]) && $aUser[$ID]['datafile'] ) { $thumbnail_arr = $aUser[$ID]; } else { $thumbnail_query = "SELECT `NickName`, `Pic_0_addon`, `Sex`, `Sex2`, `ProfileType` FROM `Profiles` WHERE `ID` = '$ID'"; $thumbnail_arr = db_assoc_arr($thumbnail_query); } } else { $thumbnail_query = "SELECT `ID`, `NickName`, `RealName`, `Pic_0_addon`, `Pic_1_addon`, `Sex`, `Sex2`, `ProfileType`, `Country`, `City`, `DescriptionMe` FROM `Profiles` WHERE `ID` = '$ID'"; $thumbnail_arr = db_arr("$thumbnail_query"); } $sBigPic = $dir['profileImage'] . $thumbnail_arr['ID'] . '_1_' . $thumbnail_arr['Pic_1_addon'] . '.jpg'; $sDetailBox = '<img src=' . $sBigPic . ' >'; $src_dir = $dir['profileImage'] . $ID . '_0_' . $thumbnail_arr['Pic_0_addon'] . '.jpg'; $src_dir1 = $dir['profileImage'] . $ID . '_1_' . $thumbnail_arr['Pic_1_addon'] . '.jpg'; $im_dir1 ='<img src='. $site['profileImage'] . $ID . '_1_' . $thumbnail_arr['Pic_1_addon'] . '.jpg >'; $im_dir ='<img src='. $site['profileImage'] . $ID . '_0_' . $thumbnail_arr['Pic_0_addon'] . '.jpg >'; if ( file_exists( $src_dir ) ) { $src = $site['profileImage'] . $ID . '_0_' . $thumbnail_arr['Pic_0_addon'] . '.jpg'; } else { if( 'couple' == $thumbnail_arr['ProfileType'] ) { $src = $site['profileImage'] . 'couple.gif'; } else { $src_sex = ( 'male' == $thumbnail_arr['Sex'] ) ? 'man.jpg' : 'woman.jpg'; $src = $site['profileImage'] . $src_sex; } } if( $ID != $memberID || !$memberID ) { $link = 'profile.php?ID=' . $ID; } else { $link = 'member.php'; } $ret .= '<div class="thumbnail_block" style="float:' . $float . '; width:' . $thumb_width . 'px; height:' . $thumb_height . 'px; background-image:url(' . $src . ');">'; $ret .= '<a href="' . $site['url'] . $link . '">'; if ( file_exists( $src_dir1 ) ) { //$ret .= '<img src="' . $site['images'] . 'spacer.gif" style="width:' . $thumb_width . 'px; height:' . $thumb_height . 'px;" onmousemove="showUserDetails(event, \'user_details_tool_tip\', \'<img src= http://dolphin/d55/media/images/profile/2_1_44617.jpg >\')" onmouseover="showUserDetails(event, \'user_details_tool_tip\', \'alexxx1111111\')" onmouseout="hideUserDetails(\'user_details_tool_tip\')" />'; $ret .= '<img src="' . $site['images'] . 'spacer.gif" style="width:' . $thumb_width . 'px; height:' . $thumb_height . 'px;" onmousemove="showUserDetails(event, \'user_details_tool_tip\', \''.$im_dir1.'\')" onmouseover="showUserDetails(event, \'user_details_tool_tip\', \''.$im_dir.'\')" onmouseout="hideUserDetails(\'user_details_tool_tip\')" />'; /*$ret .= "<img src='$site['images']spacer.gif' style='width:$thumb_width px; height:$thumb_height px;' onmousemove='showUserDetails(event, 'user_details_tool_tip', 'alexxxxx')' onmouseover='showUserDetails(event, 'user_details_tool_tip', 'alexxx1111111')' onmouseout='hideUserDetails('user_details_tool_tip')' /> "; */ } else { $ret .= '<img src="' . $site['images'] . 'spacer.gif" style="width:' . $thumb_width . 'px; height:' . $thumb_height . 'px;" onmousemove="showUserDetails(event, \'user_details_tool_tip\', \''.$im_dir.'\')" onmouseover="showUserDetails(event, \'user_details_tool_tip\', \''.$im_dir.'\')" onmouseout="hideUserDetails(\'user_details_tool_tip\')" />'; //$ret .= '<img src="' . $site['images'] . 'spacer.gif" style="width:' . $thumb_width . 'px; height:' . $thumb_height . 'px;" />'; } $ret .= '</a>'; $ret .= '</div>'; } else { $ret .= '<div class="thumbnail_block" style="float:' . $float . '; width:' . $thumb_width . 'px; height:' . $thumb_height . 'px; line-height:' . $thumb_height . 'px; vertical-align: middle;">'; $ret .= '<b>'. _t("_Visitor") .'</b>'; $ret .= '</div>'; } return $ret; } ?>![]()


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks