View Full Version : Images Today Addon
adriandaine
09-17-2005, 03:16 PM
I've downloaded and installed the addon which allows you to post more than one image in your pblog, but I don't know which tag should I use for it to work. Could anybody help me, please?
Thanks in advance.
Look in to its code and try to find <...> tags. One of them should be that what you are looking for :)
raminia
09-17-2005, 05:14 PM
new tags:
<TODAY_IMAGE_THUMBNAILS>
<TODAY_IMAGES>
I edited the description @ http://www.pixelpost.org/v1/index.php?x=downloads&details=85
theloraine
10-08-2005, 07:34 PM
Hi there,
Great addon. What I've had trouble with was that when I, for example, post two images on the front page I then have to click the "previous" button twice to go to the previous day's images. Any assistance would be much appreciated. Also, has anyone implemented this on their photoblog so I could see it in action? Thanks so much
theloraine
10-14-2005, 02:39 AM
anyone? :(
blinking8s
10-14-2005, 07:43 AM
i dont see "previous" anywhere on your homepage...
raminia
10-14-2005, 01:37 PM
this addon should have it's own previous and next TAGS. you can make it yourself too. look at inside index.php where previous and next tags are created. Do similar stuff inside this addon with considering the previous post is a post with date atleast one day before the date of the current photo.
raminia
10-14-2005, 01:59 PM
try this one with these new tags
<PREVIOUS_DAY_LINK>
<NEXT_DAY_LINK>
<?php
/*
Requires Pixelpost version 1.3
Today Images version 0.1
Written by: Ramin Mehran
Contact: raminia@yahoo.com
Pixelpost www: http://www.pixelpunk.se/software/
License: http://www.gnu.org/copyleft/gpl.html
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//----------------------------------------
/**------------- Info: ----------------**/
/*
Adds two new tags to show the thumbnails and images of the same day in the main page.
This way you can show fullscreen multiple images in Pixelpost photoblog on the main page.
You can use it in your template instead of image tag.
new tags:
<TODAY_IMAGE_THUMBNAILS>
<TODAY_IMAGES>
*/
$addon_name = "Today Images";
$addon_description = "Images of today in the main page (multiple images of the same day).";
$addon_version = "0.1";
if($_GET['showimage'] == "") {
//$tz = $cfgrow['timezone'];
//$cdate = gmdate("Y-m-d H:i:s",time()+(3600 * $tz)); // current date+time
$query = mysql_query("select id from ".$pixelpost_db_prefix."pixelpost where datetime<='" .$cdate ."' order by datetime DESC limit 0,1");
$row= mysql_fetch_array($query);
$currect_image_id = $row['id'];
$query = mysql_query("select datetime from ".$pixelpost_db_prefix."pixelpost where id='" .$currect_image_id ."'");
$row= mysql_fetch_array($query);
$currect_image_date = strtotime($row['datetime']);
$currect_image_date = strtotime($row['datetime']);
$currect_image_date = date("y-m-d",$currect_image_date);
makethumb($currect_image_date);
}
else
{
$query = mysql_query("select datetime from ".$pixelpost_db_prefix."pixelpost where id='" .$_GET['showimage'] ."'");
$row= mysql_fetch_array($query);
$currect_image_date = strtotime($row['datetime']);
$currect_image_date = date("y-m-d",$currect_image_date);
maketags($currect_image_date);
}
//// functions
function maketags($the_date)
{
global $tpl,$pixelpost_db_prefix;
$query = mysql_query("select id,headline,image from ".$pixelpost_db_prefix."pixelpost where datetime like '%$the_date%' order by datetime DESC");
$today_image_thumbnails = "";
$today_images = "";
while(list($image_id,$image_title,$image_name) = mysql_fetch_row($query)) {
$today_image_thumbnails .= "<a href='$PHP_SELF?showimage=$image_id'><img src='thumbnails/thumb_$image_name' alt='$image_title' title='$image_title' /></a>";
$today_images .= "<a href='$PHP_SELF?showimage=$image_id'><img src='images/$image_name' alt='$image_title' title='$image_title' /></a>";
}
$tpl = ereg_replace("<TODAY_IMAGE_THUMBNAILS>",$today_image_thumbnails,$tpl);
$tpl = ereg_replace("<TODAY_IMAGES>",$today_images,$tpl);
$query = mysql_query("select id,headline,image from ".$pixelpost_db_prefix."pixelpost where datetime <'$the_date' order by datetime DESC LIMIT 0,1");
while(list($image_id,$image_title,$image_name) = mysql_fetch_row($query)) {
$previous_day_tag .= "<a href='$PHP_SELF?showimage=$image_id' title='$image_title'>Previous</a>";
}
$query = mysql_query("select id,headline,image from ".$pixelpost_db_prefix."pixelpost where datetime >'$the_date' order by datetime DESC LIMIT 0,1");
while(list($image_id,$image_title,$image_name) = mysql_fetch_row($query)) {
$next_day_tag .= "<a href='$PHP_SELF?showimage=$image_id' title='$image_title'>Next</a>";
}
$tpl = ereg_replace("<NEXT_DAY_LINK>",$next_day_tag,$tpl);
$tpl = ereg_replace("<PREVIOUS_DAY_LINK>",$previous_day_tag,$tpl);
}
?>
theloraine
10-14-2005, 11:40 PM
thanks very much for the response.:)
for some strange reason, when i upload the updated addon (with the <NEXT_DAY_LINK> tags etc) my index.php, browse.php or about.php pages dont show up. Just a blank white screen. Though if I circumvent the index page, archived pages still load (ie: http://theloraine.net/index.php?showimage=80) Any idea why this might be happening? Thanks!
Connie
10-15-2005, 08:57 AM
did you upload it in ASCII mode?
did you check whether there are some unnecessary characters before <?php ?
this can always be the reason for phenomenons like that!
raminia
10-15-2005, 10:36 AM
Use this one :)
attachment!
theloraine
10-15-2005, 05:49 PM
thanks for the quick reply. Still having the same problem though. I checked to make sure there were no unnecessary characters before <?php ? And uploaded the new addon...:(
raminia
10-15-2005, 08:23 PM
did you edit index.php?
theloraine
10-16-2005, 12:46 AM
no I did not, should I?
raminia
10-16-2005, 06:01 PM
nope you shouldn't
japanwindow
10-31-2005, 04:00 AM
Will Today's Image work with version 1.4?
Will it work with 1.5? (Better yet, will 1.5 INCORPORATE the option for multiple images, or no images at all......?)
I know you don't want to give out details about 1.5, but I don't want to keep making adjustments to 1.4 if 1.5 will have them included in a better fashion from the start.
I hope you've had luck finding alpha testers (or beta now?). I'm looking forward to seeing what's new.
Joe[y]
10-31-2005, 10:31 AM
addons should remain compatible over every future version - although i can't quarantee this but any changes should be small. unfortunately, right now 1.5 does not include multiple image upload as this is not a classic photoblogging tool - perhaps if demand grew.
japanwindow
10-31-2005, 11:28 AM
Do they already have "classic photoblogging" -- wow, when WAS the first photo blog, a couple of years ago (doubtless using MT...)? IMHO, photo blogging is not even defined yet. If you look at Photobloggers.org you'll find a plethora of different kinds of photo blogs. If by classic, you mean cookie cutter boring photo blogs with a photo in the middle, a trail of thumbnails underneath, and a navigation system that only one out of ten visitors can figure out, then Pixelpost definately does that straight out of the box.
What I like about Pixelpost, though, is that people can do so much more with it -- and it's so simple to use. I REALLY like Pixelpost! But I'd still like a little more flexibility (without this becoming Wordpress, oh no!).
Anyway, I'm glad addons are available. My real concern is that the current addon seems to have trouble based on the one person (see this thread) who has written about it ... I did give it try myself (the addon), but it didn't work right away (after following the single "instruction" to insert a tag, which I did, but maybe not in the right place...), so I quit while I was ahead.
blinking8s
10-31-2005, 11:51 AM
To answer you're question, the first recorded photoblog was founded in Dec 1995, by Emily Valentine, called Snap City (http://www.snapcity.com/).
there was an article about it in the first issue of JPG Magazine (http://jpgmag.com/)
by classic, Joey meant the ethics of photoblogging, which arnt exactly a set of rules listed on paper, but something we at Pixelpost have put A LOT more time and thought into that most in order to find a general direction for us to work towards.
And the addon doesnt work in 1.5 because it's not something we beleive in, we just don't think it is a MAJOR priority right now, as the addon isnt being nice at all with 1.5 and our hands our compelely tied with the rest of the project.
I believe that you are also the only known issue to date of that sort with the addon, at least with extended troubles that could not be solved
japanwindow
10-31-2005, 12:09 PM
That's fair enough, but you must have meant aesthetics not ethics.
Practically speaking, I wonder what people do when they have a series of photos that are best viewed together...? I'm sure you've seen many such examples of photos that are meant to be viewed next to each other or at the same time. I suppose people could post them as successive entries, but that's really not the same effect at all, because you can only see one at a time.
I hope that in your discussions of photoblogging you have some obstinate, disagreeable people in the room; otherwise you'll never get out of the box. And frankly, I stand by my point that photoblogging is just in it's infancy still. Look at Flikr. It's ugly. I hate it. Is it a photo blog? No, it's many photo blogs; and it's tied to photo blogs. It's organic, really. And it's going to help define the future of photo blogging. Pixelpost may also help define the future of photo blogging. I hope so!
blinking8s
10-31-2005, 12:23 PM
I believe joey went slightly off topic, as he stated that the copy folder (multi upload) addon is not working with the future version of 1.5, which is where the conversation switched directions a little.
and ethics, as in a set of principles or moral rules of conduct.
The box is indeed very open, as research involves everything from design and blog forums, discussion between top industry developers and designers, direct contact with top photoblog users and everyday IM chit chat and blog postings, as well as studying stats and logs.
Keep in mind pixelposts direction is to keep in the bare minimum of requirements. Becoming a complex application of the trends is not our goal.
reflejandome
11-01-2005, 10:03 PM
i try it and it doesnt work :(
raminia
11-01-2005, 10:07 PM
i try it and it doesnt work :(
it doesn't work or it didn't work?:rolleyes:
btw, it works. try again.
reflejandome
11-02-2005, 08:20 PM
i put it in addons foldes and when i go to my site no image was showed,and i see an error in admin / addons
raminia
11-02-2005, 08:22 PM
an error in admin / addons?
what was that?
reflejandome
11-02-2005, 09:45 PM
Fatal error: Call to undefined function: makethumb() in /home/jreflect/public_html/photoblog/addons/photos_today.php on line 59
Outdoor Words
01-17-2006, 10:52 PM
Excuse the question but I'd like to get two images on home page so i use <TODAY_IMAGES> tag in template ... Brain is going round in circles but which Tag do I replace it with?
And a second question but one which will become clear I'm sure once I have it working but when looking back at previous images do they also appeared paired too.
Thanks
Pete
jeffburg
01-26-2006, 11:55 PM
you put the <TODAY_IMAGES> tag wherever you want
its not designed to replace any tags
it just puts a row of images down for you
you can look at my site if you wish
i modified the addon_today to open its links in a new popup window
http://www.jeffburg.com
but i had a bug to report and i couldn't figure it out
the previous day button works great, it goes to the previous day and does not appear when your on the oldest day
however the next day button always goes to the newest post... and it never disappears when your at the newest post
could someone fix that for me?
also, is there any way I can make the browse function only show the newest image from each day?
jeffburg
02-03-2006, 06:34 PM
no one can help me on this?
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.