Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 06-10-2008, 06:40 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
Lightbulb New Addon:Pixelpost Signature

This addon will output your latest or random images as a single image that you can use as a signature in a forum or elsewhere. You can see a demo in my signature below.

Installation:
  1. Add signature.php to your addons directory
  2. Put the signature directory in your pixelpost directory

Use:


Default:
<img src="http://YOUR-URL-HERE/index.php?output=signature" />

Customize:
<img src="http://YOUR-URL-HERE/index.php?output=signature&show=8&height=50&order= random" />

Use your own values for show(any number), height(any number), or order (random or leave off for latest).

For a link to your site, the HTML would look like this:
<a href="http://blog.kevincrafts.com"><img src="http://YOUR-URL-HERE/index.php?output=signature" border="0" alt="Light and Dark Photoblog" /></a>
Demo:


Pixelpost Forums

The signature directory contains a .htacess file that will rewrite the url for sites not allowing dynamic images for signatures. Instead of the url above, use http://YOUR-URL-HERE/signature/sig.jpg - you can edit the .htaccess file to output the kind of image you want using the parameters listed above.

Download
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #2  
Old 06-10-2008, 07:18 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

Yaa-hah! Cool. I was hoping my "need" in your Promote add-on my inspire this idea. Thanks!

Sadly, for me, the forum I wanted to use with this with doesn't like the format of the img tag... saying:

"You are not allowed to use that image extension on this board. A valid format is: http://www.domain.com/picture.gif, an invalid format is: http://www.domain.com/picture.one.gif"

Darn. But your add-on works great.


-Witty
__________________

Last edited by witty; 06-10-2008 at 07:27 PM. Reason: additonal information
Reply With Quote
  #3  
Old 06-10-2008, 07:43 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

Another forum doesn't like it either:

"Sorry, dynamic pages in the [IMG] tags are not allowed"


-Witty
__________________
Reply With Quote
  #4  
Old 06-10-2008, 07:53 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
UPDATE:

I got it working on forum #1 and forum #2. I misread the directions the first time. NOW to fix it on THIS forum. This is cool!


-Witty
__________________

Last edited by witty; 06-10-2008 at 08:10 PM. Reason: further update
Reply With Quote
  #5  
Old 06-12-2008, 06:20 AM
BertJan Offline
forum loafer
 
Join Date: Sep 2007
Posts: 19
It does'nt work for me...
I don't know what I've doing wrong.
Can someone help me?

When I try my link to the picture, nothing happens...
http://www.mysteries.sohosted.nl/pho...nature/sig.jpg
Reply With Quote
  #6  
Old 06-12-2008, 07:01 AM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
Well, it's outputting an empty image, but it is not naming the file correctly, so perhaps there could be something with your server? Has anyone else experienced similar issues? I'm at a loss of what exactly is happening without access to your server to do any sort of debugging.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #7  
Old 06-12-2008, 08:11 AM
BertJan Offline
forum loafer
 
Join Date: Sep 2007
Posts: 19
I think there is something with the .htaccess file. ?
But how can I change my files so that he use the rewrite function?
Reply With Quote
  #8  
Old 06-12-2008, 02:40 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
It's not just the .htaccess file because I get no image with this url: http://www.mysteries.sohosted.nl/pho...tput=signature
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #9  
Old 06-12-2008, 04:58 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Does this cache the image or create it dynamically every time it's called? If it's not caching it could put some serious strain on your photoblog if you add it as your signature on a heavily trafficked web site.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #10  
Old 06-12-2008, 06:39 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
It does it dynamically each time - I don't know how to cache it, but if anyone wants to offer any assistance with that I would welcome it.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:42 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs