|
#11
|
|||
|
|||
|
Quote:
|
|
#12
|
||||
|
||||
|
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" |
|
#13
|
||||
|
||||
|
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). |
|
#14
|
||||
|
||||
|
please upload it into pixelpost.org/v1
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#15
|
||||
|
||||
|
Any idea on how something like this can be used in forum signatures? Most forums I belong to only allow a direct image link.
__________________
Paul Wood Moments in Time After & Before a thousand words — the musings of a photographer Latest images: |
|
#16
|
||||
|
||||
|
Yeah, i gave that some thought.
I'll get back to you on it
|
|
#17
|
||||
|
||||
|
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
__________________
Paul Wood Moments in Time After & Before a thousand words — the musings of a photographer Latest images: |
|
#18
|
||||
|
||||
|
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);
?>
__________________
Paul Wood Moments in Time After & Before a thousand words — the musings of a photographer Latest images: |
|
#19
|
||||
|
||||
|
I'll adjust mine to use the imagecreatefromjpeg() function after i've had my morning coffee.
|
|
#20
|
|||
|
|||
|
Quote:
|
| Post Reply |
| Thread Tools | |
|
|