LastUpdatePNG

What Does It Do?

This plugin will take an image background on your site, and add to it the date and/or time of your last new Nucleus post. The new image is then saved to a new file on your site. This image can then be placed in forum signatures, profiles, whatever.

Where Do I Get It?

How Do I Install It?

Just like any other Nucleus plugin. Unzip the file, or create from the code. Upload to your Nucleus plugin directory, login, and install.

What Does It Require?

  • Nucleus - Duh. I am running Nucleus 3.21. I just haven't gotten around to upgrading to 3.22 yet.
  • A background image. Mine includes the background color, and text that isn't the date and time.
  • A TrueType font. I just grabbed Arial from my Windows directory and uploaded it. I'm not sure if some will cause problems or not as I haven't tried any others.

How Do I Configure It?

You must edit your NP_LastUpdatePNG.php file directly. Configuration starts at around line 37 (look for the comments). There should be enough comments there to help you out.

How Do I Fix It?

Your best bet is to post on the forum topic. I don't know very much about Nucleus plugins, so my help may be limited. I developed this for myself and thought I'd share it. If you (or someone else) finds a fix to your problem, let the forum know so I can make changes if neccessary.

Anything Else I Should Know?

  • I don't know how the plugin will react to multiple blogs, as I only have one. I would assume the plugin will run for all blogs right now. Perhaps options could be added to turn it off for some blogs. I didn't dive that far into the API.
  • You WILL have to play around with the x,y positions of the date and time. You only need to worry about the y position if you've chosen to center x.
  • You can set your text to an angle. I tried it once during testing, but I'm not sure how that affects centering, etc.
  • I don't have any provisions coded in (yet) for not needing a background image if you just want a solid color or a transparent background. Perhaps that could be added eventually.
  • I never had to create my new dynamic PNG. PHP did this for me. I also never had any issues with the overwrite.
lastupdatepng.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki