|
#1
|
||||
|
||||
|
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">
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. |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
@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
|
|
#5
|
||||
|
||||
|
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) ... |
|
#6
|
||||
|
||||
|
3) ... this addon right here?
|
|
#8
|
||||
|
||||
|
Horray!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#9
|
|||
|
|||
|
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 ?
|
|
#10
|
||||
|
||||
|
i'll update it soon for that purpose!
|
| Post Reply |
| Thread Tools | |
|
|