Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[release] Filburt's Fun Shadow System Details »
[release] Filburt's Fun Shadow System
Mod Version: 1.00, by filburt1 (Member) filburt1 is offline
Developer Last Online: May 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 1
Released: 14 Nov 2002 Last Update: Never Downloads:
Not Supported  

Author: filburt1
Description: Given a plethora of parameters, generates a PNG image with shadowed text in it.
Demo: http://www.turtletips.com/testing/cr...e&skipshadow=0 (I told you, plethora of parameters )
Screenshot: http://www.vbulletintemplates.com/mo...=&postid=15585 . This image was generated by the demo URL above.

You need PHP with the GD library for this to work. I think this is standard for Unix and OS X, but it isn't for Windows.

If you look at my forums (see sig) there's a universal virtual light coming from 90 (i.e., exact center-top of the screen). Therefore all text and images have shadows accordingly for consistancy.

You can make shadowed text via CSS/HTML, but it will look horrible. The first method, just making two layers, produces just too plain a look. The second, a Microsoft DirectX filter, only works in IE5.5+ and looks absolutely horrible in Windows XP with ClearType.

So, the attached script generates PNG images with shadowed, antialiased text. It's reasonably well commented too if you want to modify it.

Look at the sample URL for how to state parameters. The available parameters are:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

English:
bgfile: a .png (must be .png, no .gif, .jpg, etc!) image to use as the background
color: a hex code for the font color without a leading # (000000 is black, FF0000 is red, FFFFFF is white, etc.)
shadowcolor: same as color but used for the shadow color instead
fontname: the filename of a .ttf (true type font) file to use. Your fonts are in C:\Windows\Fonts, just upload the one you want
fontsize: the size of the font to use (not sure if PHP's GD library uses points or pixels for this)
s: the text to actually write
skipshadow: skips rendering the shadow and just draws only the text
There are no template modifications with this release; rather it is a starting point for making all sorts of crazy modifications. Whenever you want to generate an image and display it in a template, just do:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just remember that like any URL you have to escape strings; i.e., "Some Category" would have to be "Some%20Category" because spaces aren't allowed in URLs.

And finally, this is clearly not a release for the weak. Questions will be answered but I have to assume that you have at least some knowledge of what the hell I'm rambling about.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[release] Filburt's Announcement Bit filburt1 vBulletin 2.x Template Modifications 3 14 Dec 2002 00:18

Comments
  #2  
Old 14 Nov 2002, 01:15
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Forgot the four (!) most important ones:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

English:
textoffsetpxx: the number of pixels from the left edge horizontally of the image to draw the text
textoffsetpxy: Same as textoffsetpxx, but pixels from the top edge vertically
shadowoffsetpxx: The number of pixels relative to textoffsetpxx horizontally to shift the shadow. For example, -3 would be three pixels to the left. 8 would be 8 to the right. 0 would be no shift.
shadowoffsetpxy: Same as shadowoffsetpxx but a vertical shift. Negative is up, positive is down.
Screenshot:
Attached Images
File Type: png createshadowedtext.png (7.7 KB, 828 views)
Reply With Quote
  #3  
Old 14 Nov 2002, 01:19
TDS
Guest
 
cool
when I breath life back into my fourms I'll probaly use this
Reply With Quote
  #4  
Old 14 Nov 2002, 02:11
Bungie's Avatar
Bungie Bungie is offline
 
Join Date: Jun 2002
Neat, I will find this again when it's not so late....
Reply With Quote
  #5  
Old 14 Nov 2002, 02:47
Cypher720's Avatar
Cypher720 Cypher720 is offline
 
Join Date: Aug 2002
weird...im not gonna use it - but it is crazy!
Reply With Quote
  #6  
Old 14 Nov 2002, 04:28
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Some nice work there filburt.
Reply With Quote
  #7  
Old 14 Nov 2002, 18:50
LiL pImPsTeR LiL pImPsTeR is offline
 
Join Date: Oct 2001
looks kinda complicated, i might try it out one of these days, good work man.
Reply With Quote
  #8  
Old 20 Nov 2002, 17:11
imported_Mathiau imported_Mathiau is offline
 
Join Date: Oct 2002
definetly looks sweet! gonna haev to try this one out!
Reply With Quote
  #9  
Old 22 Nov 2002, 12:57
imported_N!ck imported_N!ck is offline
 
Join Date: Nov 2002
if i don't have GD, it will just come up blank, right?

i've been told i have GD, but that's what happens.
Reply With Quote
  #10  
Old 22 Nov 2002, 13:02
filburt1 filburt1 is offline
 
Join Date: Feb 2002
If you don't have GD then you'll get PHP errors; if you do and it comes up blank then you screwed up in the arguments or the .png you gave it.
Reply With Quote
  #11  
Old 23 Nov 2002, 00:04
imported_N!ck imported_N!ck is offline
 
Join Date: Nov 2002
i uploaded createshadowedtext.php along with your png (catprebg.png) and a ttf and changed your link to my URL, and still nothing.
Reply With Quote
  #12  
Old 23 Nov 2002, 00:17
filburt1 filburt1 is offline
 
Join Date: Feb 2002
What's the link?
Reply With Quote
  #13  
Old 23 Nov 2002, 01:48
imported_N!ck imported_N!ck is offline
 
Join Date: Nov 2002
http://www.chevystreettrucks.com/cre...e&skipshadow=0
Reply With Quote
  #14  
Old 23 Nov 2002, 02:00
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Something's wrong with your PHP configuration: http://www.chevystreettrucks.com/cre...e&skipshadow=0

That should generate an error, most likely "imagecreatefrompng failed." It's been a few weeks since I wrote the script but I remember putting in a crapload of error traps.
Reply With Quote
  #15  
Old 14 Jan 2003, 05:18
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Looks great but I'm stuck on what to do.

Can you please give us a sample link? parameters doesn't show how it's meant to be layed out [for me anyway]

Thanks in advance.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:21.

Layout Options | Width: Wide Color: