|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
As the instruction said:
Quote:
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/ |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
Um....... after i add those codes into the templates of MT, the source code look like this:
Quote:
but nothing happen to my blog. http://www.eaglesoul.buildtolearn.net/photo/ |
|
#5
|
||||
|
||||
|
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 |
|
#6
|
||||
|
||||
|
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 |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
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 |
|
#9
|
|||
|
|||
|
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');
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();
?>
|
|
#10
|
||||
|
||||
|
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 |
| Post Reply |
| Thread Tools | |
|
|