Author Topic: [Mod] DropShadow on thumbnails  (Read 62689 times)

0 Members and 1 Guest are viewing this topic.

Offline jackie911

  • Newbie
  • *
  • Posts: 41
    • View Profile
Thanks a lot !!
« Reply #15 on: April 16, 2003, 05:47:28 PM »
Thanks a lot !!

 :lol:


Quote from: Harry
Well, that wasn't too difficultafter all, right?
You migjht want to change the color of the shadow as this color (The "color=#AF4800" part)was good for my Kilimanjaro CSS, but it does not match your site.

You can use http://www.boogiejack.com/colorpop.html to find the right code for your color, I would choose someting like #000060 or so...

good luck,
Harry

Offline theMoonPrincess

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.netbizcreate.com/megaportal
Error Message after modification
« Reply #16 on: April 18, 2003, 07:03:26 PM »
I tried modifying my functions.php to enable dropshadow but got an error message. Is this script incompatible with the pop up message alert for guests that i've earlier modified?

I would like to hear from people who have installed this script and what they did to make this work.

thanks.

theMoonPrincess
Please visit my site NetBizMegaPortal here.

Offline maile808

  • Pre-Newbie
  • Posts: 8
    • View Profile
help a php dummy
« Reply #17 on: June 08, 2003, 07:30:27 PM »
Quote from: Harry
small update:

it was changed in functions.php
Change

Code: [Select]
    $thumb = "<img


into

Code: [Select]
    $thumb = "<img class=\"pic\"


 8)


I need some help in this department.  In functions.php, how would I apply the code above?  I must be doing something wrong, because I receive errors when adding the class to:

Quote
function get_thumbnail_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 0) {
  global $site_sess, $config;

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
  }
 else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($dummy);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" /> ";    }
  }

  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}


Thanks!

Offline maile808

  • Pre-Newbie
  • Posts: 8
    • View Profile
Got it to work!
« Reply #18 on: June 08, 2003, 08:05:17 PM »
woops, thanks V@no.  I, too, thought that was it at first, but it wasn't.  I finally got it to work...My blind eyes didn't see an extra "<" when I applied the img class=\"pic\" to :

Code: [Select]

$thumb = "<img class=\"pic\" img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" /> ";
   
    }
  }

 :oops:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Got it to work!
« Reply #19 on: June 08, 2003, 08:11:38 PM »
Quote from: maile808
woops, thanks V@no.  I, too, thought that was it at first, but it wasn't.
hmmm...I thought I deleted my post before u read it...It was a mistake. :oops:

Quote from: maile808
$thumb = "<img class=\"pic\" img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" /> ";
I think it should be like this:
Quote
$thumb = "<img class=\"pic\" src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" /> ";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanncy pants

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.backshots.us
[Mod] DropShadow on thumbnails
« Reply #20 on: June 08, 2003, 08:15:35 PM »
Ooh, thanks for posting, Maile808 & V@no!  I don't need to post my question anymore.  :wink:  Thanks!

Fanncy Pants!

[/color]

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[Mod] DropShadow on thumbnails
« Reply #21 on: June 29, 2003, 11:17:43 PM »
Quote
.pic {filter: progid:DXImageTransform.Microsoft.Shadow(color=#AF4800,direction=135, strength=5)
   progid:DXImageTransform.Microsoft.Alpha(opacity=100);
   border: 0;}


In which file should i add this?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] DropShadow on thumbnails
« Reply #22 on: June 30, 2003, 08:04:59 AM »
Quote from: Lucifix1
In which file should i add this?

style.css

Offline earthlyk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #23 on: March 12, 2005, 04:07:00 PM »
This .pic just work fine in IE, but don't work in FireFox. Could someone tell me how to change the css code ?

Thanks.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #24 on: March 12, 2005, 09:54:23 PM »
The css code is an Internet Explorer ONLY trick.  There is no w3c web standard to do what that Microsoft filter does.  Therefore there is no CSS solution

Offline earthlyk

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #25 on: March 13, 2005, 05:01:54 PM »
Thanks Chris, now I see.

Offline eshpro

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • gallery.eshpro.com
Re: [Mod] DropShadow on thumbnails
« Reply #26 on: March 22, 2005, 06:30:19 AM »
Is there way i can add shodow to images instead of thumbnails?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] DropShadow on thumbnails
« Reply #27 on: March 22, 2005, 07:38:08 AM »
just use same code in templates from templates/<yourtemplate>/media/ folder
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline getcom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #28 on: March 29, 2005, 01:51:20 AM »
There is a way of adding shadows so they can be seen in firefox as well as IE using html and css. If anyone is interested let me know and I'll post it.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] DropShadow on thumbnails
« Reply #29 on: March 29, 2005, 02:04:51 AM »
There is a way of adding shadows so they can be seen in firefox as well as IE using html and css. If anyone is interested let me know and I'll post it.
why not just post it ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)