Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 11-28-2005, 01:18 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
Addon: Display latest thumbnail in external website

Following a conversation with Raminia regarding problems people were having with his own addon, i knocked up a quick replacement.

I'm not familiar with the specific problems people were having, but if you had issues - try this addon.

The basic concept is as follows:

* You have another website, or blog, which you'd like to display your newest thumbnail on.
* You don't know how to use PHP, or the website is on an external server.

This addon allows you link to pixelpost as if it were an image file. The latest thumbnail will appear like magic!

for example:

HTML Code:
<img src="http://yourwebsite/index.php?x=latestthumb" title="latest image" alt="latest image">
annoyingly i can't post an example thumbnail in the forum, vBulletin doesn't want to interpret the url as an image, despite the img tags.


Download v0.1 here

NOTES:

* I knocked this addon up really quickly, so it may be flawed.
* Raminia's addon had the facility to display images OR titles. This one doesn't do titles, it just displays the image directly.
* Unlike Raminia's addon, this one detects the file type and displays the correct header. I have no idea what filetypes Pixelpost supports, so this version only detects JPG and GIF.
* This addon forces the image to load inline, so even if you navigate to index.php?x=latestthumb the graphic will still load.


If anyone actually uses this addon let me know if you want features added to it, like loading more recent thumbnails.
__________________
touchnothing.net
Reply With Quote
  #2  
Old 11-28-2005, 02:30 PM
d72's Avatar
d72 Offline
forum loafer
 
Join Date: Nov 2005
Posts: 3
Thumbs up finally!

tnx! this worked just fine on my blog's sidebar.
this Raminia-thing did not show anything on my blog, don't know what i did wrong, I guess I'm not the onlyone..

loading more thumbs is good idea and random-feature is useful too (e.g I'd like to show 2 new and 2 random thumbs on my page's sidebar)

I start to hack from your version and try my tiny php skills on it.



d72.pri.ee
Reply With Quote
  #3  
Old 11-28-2005, 02:33 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
I was wondering if the php script can grab the image title from a <script src=somephp.php> tag and put it into the <img> coponent through a jscript code. I was just wondering.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 11-28-2005, 02:56 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
@d72:
what i will do in the next version is allow you to specify another variable in the img tag, which will select the "position" of the thumbnail you want to select.
for example, the first img tag will display the most recent thumbnail, the second img tag can display the second most recent... and so on.
in the next version i'll also implement a "random" image.

@raminia:
with that assumption you are going towards AJAX!
I am thinking about looking at some Pixelpost <--> AJAX code soon when i have run out of Addons to make
__________________
touchnothing.net
Reply With Quote
  #5  
Old 11-28-2005, 04:02 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Last thumb can be done in few ways:
1) when uploading new file we are making link (on Linux/Unix servers) or copy of the newest file.
2) grab RSS and get first appearance of image link.
3) ...
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #6  
Old 11-28-2005, 04:52 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
3) ... this addon right here?
__________________
touchnothing.net
Reply With Quote
  #7  
Old 11-28-2005, 06:21 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Yeap
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #8  
Old 11-28-2005, 08:59 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Horray!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #9  
Old 11-29-2005, 09:26 PM
wadeferd Offline
forum loafer
 
Join Date: Mar 2005
Posts: 6
What about bringing the entire row into an external page ? Any ideas there ? Ramina already pointed me towards her wordpress plugin, but i use nucleus and they're not getting along. Any ideas ?
Reply With Quote
  #10  
Old 11-29-2005, 09:53 PM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
i'll update it soon for that purpose!
__________________
touchnothing.net
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:21 PM.

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