View Single Post
  #1  
Old 08-21-2006, 04:16 AM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Post Beta Addon: Post Slug

What does this addon do? It's Simple.

Instead of referencing photos using an ID number like this:
Code:
index.php?showimage=24
You can reference images using a "post slug":
Code:
index.php?photoslug=post-slug-title
You can either let the script automatically generate a post slug based off your image title. Or you enter your own post slug.

I attempted to make the install as easy as possible, so as long as you have PHP 5+ and are running Pixelpost 1.5+ you should have no issues whatsoever.

Here are some screen shots displaying how it looks in the admin interface:


As this only a beta, I haven't uploaded it to the actual pixelpost addons site yet. You can download it however from one of my servers, http://members.atlantic.net/~john195...lug_1_beta.zip

This is my first ever publicly released addon, so any input would be greatly appreciated. And with a little mod_rewrite, you can do even more with this addon. Hum maybe something like "/photo/photo-slug" maybe? ;-)

Oh and if you didn't notice above, this is a beta, and it does modify your database, so as always, proceed with caution if you have a database full of photos.

UPDATE:
If you want to use PostSlug with mod_rewrite, you can now download a special mod_rewire version that is ready to go right out of the box.

PostSlug_1.0.1_beta_modrewrite.zip

NOTE: Currently, this addon/hack only works with Pixelpost v1.5
I will however port it to v1.6 in the near future.
__________________
Jay Williams | A Different View

Last edited by jaywilliams; 06-12-2007 at 07:31 PM.
Reply With Quote