Welcome, Guest. Please Login or Register.
April 26, 2025, 10:57:50 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Code] Drop Shadow for Attachments « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Code] Drop Shadow for Attachments  (Read 4559 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

[Code] Drop Shadow for Attachments
« on: March 18, 2002, 05:38:15 AM »
Reply with quote

Here's a mod to add a drop shadow to your attachments when shown in posts.  It's a Microsoft filter so I think it only works on IE 4.0 and above.

Check it out on my test board: http://www.nextcelica.net/yabbse

<open file>
Display.php
</open file>


<search for>
               $attachImage = "<hr color=gray size=1>
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\" width=\"$width\" height=\"$height\">";
            }else{
               $attachImage = "<hr color=gray size=1>
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\">";
</search for>


<replace>
               $attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\" width=\"$width\" height=\"$height\"></div>";
            }else{
               $attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\"></div>";
</replace>
« Last Edit: March 20, 2002, 05:32:31 PM by Godai » Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Drop Shadow for Attachments
« Reply #1 on: March 18, 2002, 05:55:26 AM »
Reply with quote

Nice Shaun! Looks great. I am stoping any other mods I am working on till 1.3.0 is out, I notice some of the stuff I was working on is already in 1.3.0 on your site. Lucky bastage, maybe I can hint Jeff in sending me a beta copy so I can start working on mods again.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Drop Shadow for Attachments
« Reply #2 on: March 18, 2002, 06:00:01 AM »
Reply with quote

Thanks...What were/are you working on?  I made a bunch of changes to that test board as far as the mods I posted in here and changed the Display.php quite a bit to suite my taste.

 
Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Drop Shadow for Attachments
« Reply #3 on: March 18, 2002, 06:06:56 AM »
Reply with quote

Well I noticed your board has all the profile icons underneath the post, I was working on hack to put it underneath or above the post depending on users taste. Also was working on a hack that put the online feature of there profile with the icon in there info center next to each post. All the other mods was just going clean up the post threads abit. I just noticed that mods I was working on is already done on yoru board.  ;D
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Drop Shadow for Attachments
« Reply #4 on: March 18, 2002, 06:13:49 AM »
Reply with quote

I changed the whole look of Display.php and put together the new buttons except the User Online feature which is in 1.3.0
Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Drop Shadow for Attachments
« Reply #5 on: March 18, 2002, 06:16:39 AM »
Reply with quote

I like the info center below the post, since you already done it, I just let you release the mod. =)
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Drop Shadow for Attachments
« Reply #6 on: March 18, 2002, 06:24:34 AM »
Reply with quote

I just made a poll in the Graphics & Templates Board asking if I should make a mod for changing the Display.php.
Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Drop Shadow for Attachments
« Reply #7 on: March 18, 2002, 06:41:10 AM »
Reply with quote

I posted my reply.  ;D
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:Drop Shadow for Attachments
« Reply #8 on: March 19, 2002, 03:54:02 AM »
Reply with quote

cool shaun, its a nice one.

if you search for another new mod.... guess you will be able to make it.... kinda hide ip hack .... many guys will appreciate .... :)
Logged
The Engineer
Sr. Member
****
Posts: 313


I'm the Dude, man!

ICQ - 156273462 WWW
Re:Drop Shadow for Attachments
« Reply #9 on: March 21, 2002, 04:58:58 PM »
Reply with quote

Quote from: tazthedev on March 19, 2002, 03:54:02 AMcool shaun, its a nice one.

if you search for another new mod.... guess you will be able to make it.... kinda hide ip hack .... many guys will appreciate .... :)

I will post the code for hiding IP in another thread
Logged

Who is the more foolish.. The fool or the fool who follows it...
Help cure Cancer, Join the YaBB SE UD Team !
SmokinL
Noobie
*
Posts: 8


A whole new generation of backyard BBQ pitmasters!

Re:[Code] Drop Shadow for Attachments
« Reply #10 on: March 26, 2002, 04:53:07 AM »
Reply with quote

Hey Shaun,

Went to check what everyone was raving about, but it looks like you are modifying.  Your index.php screen was reporting errors and wouldn't display.  Looking forward to seeing the results!  I'll check back tomorrow.

Have a great night!

Smokin'L
Logged

The Arizona Barbeque Association -- Can You Handle The Heat?
Nuttin' Betta Than A Perfectly Cooked Piece Of Meat!
Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[Code] Drop Shadow for Attachments
« Reply #11 on: March 26, 2002, 06:39:22 AM »
Reply with quote

Quote from: Shaun on March 18, 2002, 05:38:15 AMHere's a mod to add a drop shadow to your attachments when shown in posts.  It's a Microsoft filter so I think it only works on IE 4.0 and above.
]

Prutty good looking mod Shaun!!

question.. does the attachment still show if its not IE ?
Logged

Dic
Noobie
*
Posts: 44


Re:[Code] Drop Shadow for Attachments
« Reply #12 on: March 29, 2002, 04:08:55 AM »
Reply with quote

well every one was so impressed with your display mod that they never even tried this one

its a nice mod but only for 1.3 i assume

<open file>
Display.php
</open file>


<search for>
               $attachImage = "<hr color=gray size=1>
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\" width=\"$width\" height=\"$height\">";
            }else{
               $attachImage = "<hr color=gray size=1>
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\">";
</search for>


<replace>
               $attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\" width=\"$width\" height=\"$height\"></div>";
            }else{
               $attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\"></div>";
</replace>

nice to see that 1.3 will add height and width options to attatchments
 :D

but the code for 1.1 should be like this

<open file>
Display.php
</open file>


<search for>
                  $attachImage = "<hr color=gray size=1>
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\">";
</search for>


<replace>
            $attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\"></div>";
</replace>

it would be nice to do it the other way but hey that time will come for the rest of us yet
 
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Code] Drop Shadow for Attachments
« Reply #13 on: March 29, 2002, 05:42:49 AM »
Reply with quote

it wud b great if you could do something like
[img shadow=]src[/img]
so what it does is adds a shadow to ANY image
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Drop Shadow for Attachments
« Reply #14 on: April 02, 2002, 07:38:07 PM »
Reply with quote

Quote from: Shaun on March 18, 2002, 06:13:49 AMI changed the whole look of Display.php and put together the new buttons except the User Online feature which is in 1.3.0

Wow !!

That looks great !

When will you release this mod, because I like to have the buttons underneath the posts too !!

 :D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] Drop Shadow for Attachments « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.017 seconds with 18 queries.