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

0 Members and 1 Guest are viewing this topic.

Offline getcom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #30 on: April 09, 2005, 04:48:10 PM »
Dropdown shaddows for IE and Firefox.

Add this to the end of your style.css file

Quote
.ds_right   { background: url(images/ds_right.jpg) no-repeat }
.ds_corner  { background: url(images/ds_corner.jpg) no-repeat center }
.ds_bottom   { background: url(images/ds_bottom.jpg) no-repeat left  }



The code for your content in your template files is:

Quote
<table border="0" cellspacing="0" cellpadding="0"><tr><td>

{thumbnail} NOTE THIS CAN BE ANY CONTENT NOT JUST {thumbnail}. TRY IT WITH {image} OR ANYTHING

</td><td valign="top" width="7" class="ds_right" ></td></tr><tr height="7"><td align="left" height="7" class="ds_bottom" ></td><td width="7" height="7" class="ds_corner"></td></tr></table>


Download the images. You can change these to something else if you wish

d_shaddow_images.zip

Unzip them to your template/image folder.


Now all you have to do is add the above table to your template files anywhere you want a dropshaddow.

Hope this helps
« Last Edit: April 09, 2005, 07:45:13 PM by V@no »

Offline police22

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • The Dartez Page
Re: [Mod] DropShadow on thumbnails
« Reply #31 on: April 28, 2005, 06:12:46 AM »
Just installed this little mod on my site.. works pretty good..
Thanks Harry  :D

Offline toroslar

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #32 on: June 03, 2005, 04:34:10 PM »
I am sorry ... I did not understand this subject. I did them but not see. who can tell me all thing to do by order, plesase ...I am happy İf you send instructions to my e-mail adress ...thanks..
my e-mail adres : info@toroslar.org

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] DropShadow on thumbnails
« Reply #33 on: July 30, 2005, 05:45:31 AM »
Is the original Mod not located in this thread? This thread just isn't making sense to me...there doesn't really seem to be an actual full mod listed here. Can someone post the mod entirely please? Thank you! :)

Tina
Namaste,
Tina

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 #34 on: July 30, 2005, 06:54:23 AM »
I dont know how could u miss the very first message of this topic...
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 IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] DropShadow on thumbnails
« Reply #35 on: July 30, 2005, 08:10:20 PM »
I dont know how could u miss the very first message of this topic...

No, I did see the first message and did try it just as it was stated and nothing worked. I do have IE6. I tried for 30 mins.+ to get it to work last night.
Namaste,
Tina

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 #36 on: July 30, 2005, 09:14:10 PM »
on the first page it also says what to change in functions.php
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] DropShadow on thumbnails
« Reply #37 on: October 22, 2005, 12:53:09 AM »
small update:

it was changed in functions.php
Change

Code: [Select]
    $thumb = "<img


into

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

 8)

When i do this, i become a blank page....can anyone help me??
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [Mod] DropShadow on thumbnails
« Reply #38 on: November 25, 2005, 09:56:05 PM »
Salut,

perhaps i am too stupid. I have read this whole MOD thread for three times. But i don't know what i am doing wrong.
I added the pics code to the style.css like explanation of the first posting.
Also i added the following code to my functions.php in one line.
Code: [Select]
$thumb = "<img src=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert('".$lang['members_only']."'); \"")."border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
But i cannot see any dropshadow on my thumbnails.
What i am doing wrong or did i forget something to add?
 :roll:

Offline Anderson

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • Album digital :: Anderson Cardoso Silva
Re: [Mod] DropShadow on thumbnails
« Reply #39 on: July 23, 2007, 06:07:17 AM »
I inserted the 1st. code inside style.css and I changed functions.php but it didn't work out...
Did I miss anything?

Offline getcom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #40 on: November 11, 2007, 09:29:40 PM »
Hi Anderson

I think Harry's mod only works with IE. Mine (top of page 3) works for all browsers and you can also have a dropdown shadow on anything you like, not just the images.

Getcom


jojomart

  • Guest
Re: [Mod] DropShadow on thumbnails
« Reply #41 on: December 13, 2007, 06:46:44 AM »
Hey guys, I found a javascript that will make your images have a drop shadow in both IE and FireFox - all you have to do is put it in the header.html file before the closing </head> code:

Code: [Select]
<script type="text/javascript">

var gradientshadow={}
gradientshadow.depth=6 //Depth of shadow in pixels
gradientshadow.containers=[]

gradientshadow.create=function(){
var a = document.all ? document.all : document.getElementsByTagName('*')
for (var i = 0;i < a.length;i++) {
if (a[i].className == "shadow") {
for (var x=0; x<gradientshadow.depth; x++){
var newSd = document.createElement("DIV")
newSd.className = "shadow_inner"
newSd.id="shadow"+gradientshadow.containers.length+"_"+x //Each shadow DIV has an id of "shadowL_X" (L=index of target element, X=index of shadow (depth)
if (a[i].getAttribute("rel"))
newSd.style.background = a[i].getAttribute("rel")
else
newSd.style.background = "black" //default shadow color if none specified
document.body.appendChild(newSd)
}
gradientshadow.containers[gradientshadow.containers.length]=a[i]
}
}
gradientshadow.position()
window.onresize=function(){
gradientshadow.position()
}
}

gradientshadow.position=function(){
if (gradientshadow.containers.length>0){
for (var i=0; i<gradientshadow.containers.length; i++){
for (var x=0; x<gradientshadow.depth; x++){
  var shadowdiv=document.getElementById("shadow"+i+"_"+x)
shadowdiv.style.width = gradientshadow.containers[i].offsetWidth + "px"
shadowdiv.style.height = gradientshadow.containers[i].offsetHeight + "px"
shadowdiv.style.left = gradientshadow.containers[i].offsetLeft + x + "px"
shadowdiv.style.top = gradientshadow.containers[i].offsetTop + x + "px"
}
}
}
}

if (window.addEventListener)
window.addEventListener("load", gradientshadow.create, false)
else if (window.attachEvent)
window.attachEvent("onload", gradientshadow.create)
else if (document.getElementById)
window.onload=gradientshadow.create

</script>

You can see it in action at my site http://www.wallpaper-downloads.info

Joanne

Offline Boatswain

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Antique photo album
Re: [Mod] DropShadow on thumbnails
« Reply #42 on: September 17, 2008, 12:06:36 PM »
just use same code in templates from templates/<yourtemplate>/media/ folder

Hello,

Dropshadow on thumbs is working fine but I can't get it to work for the picture.
What and where exactly do I have to add to the templates?

Quote:    edit /templates/<yourtemplate>/media/jpg.html
              add this class:
              class="pic"

Template jpg.html:

<!-- Template file for JPG Files -->
<img src="{media_src}" border="0" alt="{image_name}"{width_height} /><br />

What do I have to add/change in this template ?

thanks


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] DropShadow on thumbnails
« Reply #43 on: September 17, 2008, 02:25:29 PM »
... this should work ...
Code: [Select]
<span class="pic"><img src="{media_src}" border="0" alt="{image_name}"{width_height} /></span>
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Boatswain

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Antique photo album
Re: [Mod] DropShadow on thumbnails
« Reply #44 on: September 17, 2008, 04:03:44 PM »
... this should work ...
Code: [Select]
<span class="pic"><img src="{media_src}" border="0" alt="{image_name}"{width_height} /></span>

No, still no drop shadow   :(