Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 05-25-2006, 04:48 PM
fuxx0r Offline
forum loafer
 
Join Date: May 2006
Posts: 2
Unhappy written an addon - doesn't work

hi there,
I just tried to develop my own little addon but I can't get it working.
Here is my code:

PHP Code:

if(!isset($_GET['x']) /*$_GET['x'] == ""*/) {

$row sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."')");
}

$image_title        pullout($row['headline']);
$image_datetime     $row['datetime'];

$previous_row sql_array("SELECT id,headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime < '$image_datetime')  ORDER BY datetime desc limit 0,1");

$image_previous_title pullout($previous_row['headline']);

$next_row sql_array("SELECT id,headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime > '$image_datetime') ORDER BY datetime asc limit 0,1");

$image_next_title pullout($next_row['headline']);

$modrewrite_title ereg_replace(" ","-",$image_title);
$modrewrite_previous_title ereg_replace(" ","-",$image_previous_title);
$modrewrite_next_title ereg_replace(" ","-",$image_next_title);

$tpl str_replace("<MODREWRITE_TITLE>",$modrewrite_title,$tpl);
$tpl str_replace("<MODREWRITE_PREVIOUS_TITLE>",$modrewrite_previous_title,$tpl);
$tpl str_replace("<MODREWRITE_NEXT_TITLE>",$modrewrite_next_title,$tpl); 
Reply With Quote
  #2  
Old 05-25-2006, 05:04 PM
fuxx0r Offline
forum loafer
 
Join Date: May 2006
Posts: 2
it's working now.

just mixed up the templates
Reply With Quote
  #3  
Old 05-25-2006, 06:18 PM
Connie
Guest
 
Posts: n/a
Hi,

if you could describe what your Addon does, it could be interesting for other users as well...

tell us about it!
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:35 AM.

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