+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 8 of 8

Thread: Thumbnail Zoom MOD

  1. #1
    aaronrrc
    Guest

    Default Thumbnail Zoom MOD

    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:

    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;
    }
    
    ?>
    Someone can help me please??

  2. #2
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    Nice. I have no idea how you got that mod to work, I tried on my site and all I got want a blank box. Could you share your modified file with me? Thanks.


    Glad you liked the pack
    SocialEngine 2.81 Nulled

  3. #3
    aaronrrc
    Guest

    Default Hi CodyT

    Thanx a lot for sharing your pack, That I mean with modified file is the file that is in the ThumbZomm MOD, is not modified by me

    Hope someone can help us!

  4. #4
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    No, I mean you had to add the mod into some files right? I tried doing that with mine, and all that came up was a blank gray box with a red x icon
    SocialEngine 2.81 Nulled

  5. #5
    aaronrrc
    Guest

    Default

    With my site thumbs dont appear!

  6. #6
    Kleetus
    Guest

    Default

    What i first noticed when i looked at the code are the following (new) changes in 5.6.0004 versions:

    From
    Quote Originally Posted by aaronrrc View Post
    Code:
    	global $site;
    	global $dir;
    	global $thumb_width;
    	global $thumb_height;

    To
    PHP Code:
    global $oTemplConfig;
        global 
    $max_thumb_width;
        global 
    $max_thumb_height

  7. #7
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    I just looked at your site, aaronrrc. And your thumbanail mod workes fine. So I dont see what isnt working
    SocialEngine 2.81 Nulled

  8. #8
    aaronrrc
    Guest

    Default

    Now I dont know if the inc/design.inc.php is the bad file. The other file you have to replace is inc/js/functions.js, when I upload this file users cant upload photos, when they clic on the add photo link nothing happens and appear a javascript error on the status bar of the browser.

    This functions.js file is very different than the original one, if someone can take a look and help us here is the MOD. thanx!

    PD: I attached the Thumbnail MOD and the functions.js original file.
    Attached Files

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Video Thumbnail
    By itshaunted in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 12-30-2009, 09:57 AM
  2. video thumbnail
    By steve smith in forum Dolphin General Discussion v6.00 and above
    Replies: 0
    Last Post: 03-21-2009, 03:48 PM
  3. Thumbnail Zoom
    By CodyT in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 05-26-2007, 02:45 AM
  4. Thumbnail fix for Ray?
    By afrogeek in forum Chat / ShoutBox / Instant Messenger (non-Ray)
    Replies: 0
    Last Post: 07-16-2006, 02:24 PM
  5. Thumbnail Problem....
    By blaze2u in forum FAQ & HOWTO
    Replies: 2
    Last Post: 05-04-2006, 03:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts