Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 11-29-2005, 10:14 PM
wadeferd Offline
forum loafer
 
Join Date: Mar 2005
Posts: 6
Quote:
Originally Posted by tinyblob
i'll update it soon for that purpose!
awsome.
Reply With Quote
  #12  
Old 11-30-2005, 08:07 AM
John's Avatar
John Offline
pp regular
 
Join Date: Nov 2005
Location: Paris
Posts: 21
that's another great idea & add-on, tinyblob.
I needed it but I used RSS + Parser to get the same result
[ and I get the title, description .. all the informations I need ]
__________________
my plog : "Un Autre Regard"
Reply With Quote
  #13  
Old 11-30-2005, 09:24 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
RSS + Parser is a far better solution, seeing as RSS exists to syndicate content
But the idea of this addon is to give the ability to people who either don't have coding skills, or are working in an environment where it's not feasible (plain HTML etc).
__________________
touchnothing.net
Reply With Quote
  #14  
Old 11-30-2005, 09:28 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
please upload it into pixelpost.org/v1
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #15  
Old 11-30-2005, 04:44 PM
Paul Wood's Avatar
Paul Wood Offline
pixelpost guru
 
Join Date: May 2005
Location: Slidell, Louisiana, USA
Posts: 154
Any idea on how something like this can be used in forum signatures? Most forums I belong to only allow a direct image link.
Reply With Quote
  #16  
Old 11-30-2005, 05:04 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
Yeah, i gave that some thought.
I'll get back to you on it
__________________
touchnothing.net
Reply With Quote
  #17  
Old 11-30-2005, 06:07 PM
Paul Wood's Avatar
Paul Wood Offline
pixelpost guru
 
Join Date: May 2005
Location: Slidell, Louisiana, USA
Posts: 154
Here's a tutorial someone might be able to adapt, if they're more adept at PHP than I am.

http://www.codedemons.net/tutorials/...Signatures?p=1
Reply With Quote
  #18  
Old 12-01-2005, 01:40 AM
Paul Wood's Avatar
Paul Wood Offline
pixelpost guru
 
Join Date: May 2005
Location: Slidell, Louisiana, USA
Posts: 154
I managed something like what we're talking about that will work for me for a while. I'd rather have the latest image -- this code picks a random image, and it doesn't care if it is a future image.

So please, someone who knows how to do this: build something like this to retrieve the latest thumbnail instead of random!

Code:
<?php
/*
Based on code by Perpetual Dreamer and Alland.
Modified by Paul Wood, who knows nothing about PHP.

Instructions:

Modify the $path variable to your thumbnails directory.

Then, just link to the script as a php file. Can be used in a site, such as <img src="filename.php">,
or a forum, using [ img ]http://yoursite.com/filename.php[ /img ]

*/

//directory here (relative to script)
$path = 'thumbnails';

$i = 0;
$imgDir = opendir ($path);
	while ( $file = readdir( $imgDir ) )
	{
		//checks that file is an image
		$file_type = strrchr( $file, "." );
		$is_image = eregi( "jpg|gif",$file_type );

		if ( $file != '.' && $file != '..' && $is_image )
		{ $images[$i++] = $file; }
	}
closedir ($imgDir);

srand( (double) microtime()*1000000 );
$image_name = $path . '/' . $images[rand( 0,sizeof( $images ) -1 )];
$imgSize = GetImageSize( $image_name );

//ends script if no images found
if ( $i == 0 )
	die();

//Display the image
	header('Content-Type: image/jpeg');
	header('Content-transfer-encoding: binary');
	$img = imagecreatefromjpeg($image_name);
	imagejpeg($img);



?>
Reply With Quote
  #19  
Old 12-01-2005, 08:25 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
I'll adjust mine to use the imagecreatefromjpeg() function after i've had my morning coffee.
__________________
touchnothing.net
Reply With Quote
  #20  
Old 12-01-2005, 12:52 PM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
Quote:
Originally Posted by Paul Wood
I managed something like what we're talking about that will work for me for a while. I'd rather have the latest image -- this code picks a random image, and it doesn't care if it is a future image.

So please, someone who knows how to do this: build something like this to retrieve the latest thumbnail instead of random!
quote! I would appreciate too!
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:38 PM.

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