Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 02-10-2005, 09:57 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
Addon: Latest thumbnail in other pages(version1.1 wp-plugin)

I made and addon for displaying the thumbnail of the latest photo posted on the PixelPost on the other pages of the website. It's a PHP script.
Now you can display your latest post of your photoblog in your weblog or every other pages. I've done the same for my weblog which is powered by WordPress.

Link to the addon
http://www.pixelpost.org/index.php?x...amp;details=38

Cheers,
Ramin

UPDATE: 2005-03-02
The instruction is updated for wordpress 1.5 users. see page 3 of this thread for new instructions or download the addon zip file a new readme file is included for wordpress 1.5.


UPDATE: 2005-03-05
In the instruction for the wordpress 1.5 had a mistyped section. It's now corrected now and it's in the addon section.
The line reads
require('$full_address_of_latest_pblog_php');
should be
require($full_address_of_latest_pblog_php);


UPDATE: 2005-03-11
Wordpress Plugin instead of all these
converted this to a wordpress addon and all of the bugs are fixed and it got simpler to use.

The Wordpress plugin: Latest PixelPost Photo
http://weblog.raminia.com/wp-hacks/
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #2  
Old 02-15-2005, 10:02 AM
eaglesoul Offline
forum loafer
 
Join Date: Feb 2005
Location: Hong Kong
Posts: 4
As the instruction said:
Quote:
4) In the php section of your non-photoblog page, add the code
require('./latest_pblog.php');
5) Finally, add this code
<?php echo $image_thumbnail; ?>
where you want the thumbnail apear.
I have a question, would you consider adding the feature that the latest thumb can also be included in a non-php web page?
I would like to have this feature because i want to add the thumb in my Movabletype supported weblog, but Movabletype uses index.html.

This is the blog which i use to test codes.
http://www.eaglesoul.buildtolearn.net/photo/
Reply With Quote
  #3  
Old 02-15-2005, 10:27 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
ok

It's ok just add the openning and closing php tag before and end to the calls to PHP code
example
Code:
<?PHP my_PHP_Code_Here ?>
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 02-15-2005, 11:49 AM
eaglesoul Offline
forum loafer
 
Join Date: Feb 2005
Location: Hong Kong
Posts: 4
Um....... after i add those codes into the templates of MT, the source code look like this:
Quote:
<div class="sidetitle">
Feeds
</div>

<div class="side">
<?PHP require('./latest_pblog.php'); ?>
<?php echo $image_thumbnail; ?>
</div>

<div class="side">
i'm not sure if this is what you mean,
but nothing happen to my blog.
http://www.eaglesoul.buildtolearn.net/photo/
Reply With Quote
  #5  
Old 02-15-2005, 11:53 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
that was what I mean.

check your relative and static path in the latest_pblog.php and make sure that the file is placed where the publieshed page is placed. if it didn't work, PM me your index.html code.

Ramin
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #6  
Old 02-15-2005, 11:56 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
Do you have PHP enabled for this part of yor site? It seems you didn't!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 02-15-2005, 12:46 PM
eaglesoul Offline
forum loafer
 
Join Date: Feb 2005
Location: Hong Kong
Posts: 4
PHP enabled? i don't quite understand........but my site support php

Ha, althougn the code still doesn't work with index.html, i succeed to create another index.php which is perfectly workable.
It is now:
http://www.eaglesoul.buildtolearn.net/photo/index.php

To tell the truth, this is my first attempt to turn MT into php after using it for 2 years.

Thanks Ramin, would you like to have the index.html so that you can dig into it? i'll be more than happy to give it to you.
Reply With Quote
  #8  
Old 02-15-2005, 02:08 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
congrats.
I thought it would work with html bu I was wrong.... maybe using <script language=php> ...... </script> would work with html
i'm not sure. do some googling.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #9  
Old 02-22-2005, 01:20 PM
io Offline
pp regular
 
Join Date: Feb 2005
Location: tokio/japan
Posts: 28
dear ramania.

i'm sorry to ask many questions so often.

i use nucleus as my primary blog tool, and i want to put my photoblog thumbnail on the main blog by using this addon.

what i don't understand is where to put
Code:
require('./latest_pblog.php');
in index.php of nucleus.

here is my index.php of nuclues.

Code:
<?php
// This file will generate and return the main page of the site

$CONF = array();
$CONF['Self'] = '.';


include('./config.php');

selector();

?>
I'd be happy if you answer my question. Thank you.
Reply With Quote
  #10  
Old 02-22-2005, 01:24 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
here

Code:
<?php 
// This file will generate and return the main page of the site 

$CONF = array(); 
$CONF['Self'] = '.'; 

// for latest thumbnail of my photoblog
require('./latest_pblog.php');

include('./config.php'); 

selector(); 

?>
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:32 PM.

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