Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   PHAlbum thumbnail question (https://novahq.net/forum/showthread.php?t=40491)

jonbolden 01-31-2008 10:45 PM

PHAlbum thumbnail question
 
I love this so far!

I am using it for side by side comparison on small files. is there a way to just disable thumbnails altogether and show the full file size without having to click on it?

I can't seem to figure out how to get the thumb size to be 100% of the actual width / height

Scott 01-31-2008 11:31 PM

Disable auto_thumb by settings it's value to 0 in the script.

Then find this bit of code in your script (starts line 596):
PHP Code:

                    If($drop_shadow) {
                        
//Cool drop shadow effect.
                        
$images .= "<td width=\"".$cell_width."\" align=\"center\"><div style=\"width:".($thumb_width+20)."px;height:".($thumb_height+20)."px;filter:shadow(color:grey,strength:15, direction:135);\"><a href=\"".$files_path.$album.$file."\" target=\"_blank\"><img src=\"".$files_path.$album.$file_name.$thumb."\" style=\"border:0px;\" width=\"".$thumb_width."\" height=\"".$thumb_height."\" alt=\"".ucwords($display_name)."\" /></a></div>".ucwords($display_name)."<br />".$remove."</td>\n";

                    } Else {
                        
//Image border
                        
$images .= "<td width=\"".$cell_width."\" align=\"center\"><a href=\"".$files_path.$album.$file."\" target=\"_blank\"><img src=\"".$files_path.$album.$file_name.$thumb."\" style=\"border:0px;\" width=\"".$thumb_width."\" height=\"".$thumb_height."\" class=\"image\" alt=\"".ucwords($display_name)."\" /></a><br />".ucwords($display_name)."<br />".$remove."</td>\n";
                        
                    } 

Replace it with this:
PHP Code:

                    If($drop_shadow) {
                        
//Cool drop shadow effect.
                        
$images .= "<td width=\"".$cell_width."\" align=\"center\"><a href=\"".$files_path.$album.$file."\" target=\"_blank\"><img src=\"".$files_path.$album.$file_name.$thumb."\" style=\"border:0px;\" alt=\"".ucwords($display_name)."\" /></a>".ucwords($display_name)."<br />".$remove."</td>\n";

                    } Else {
                        
//Image border
                        
$images .= "<td width=\"".$cell_width."\" align=\"center\"><a href=\"".$files_path.$album.$file."\" target=\"_blank\"><img src=\"".$files_path.$album.$file_name.$thumb."\" style=\"border:0px;\" class=\"image\" alt=\"".ucwords($display_name)."\" /></a><br />".ucwords($display_name)."<br />".$remove."</td>\n";
                        
                    } 


jonbolden 02-01-2008 07:33 AM

awesome! this is a great program and obviously you know what you are doing. thanks so much


All times are GMT -5. The time now is 04:34 PM.

Powered by vBulletin®