View Full Version : Addon: Latest thumbnail in other pages(version1.1 wp-plugin)
raminia
02-10-2005, 09:57 PM
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=downloads&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/
eaglesoul
02-15-2005, 10:02 AM
As the instruction said:
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/
raminia
02-15-2005, 10:27 AM
It's ok just add the openning and closing php tag before and end to the calls to PHP code
example
<?PHP my_PHP_Code_Here ?>
eaglesoul
02-15-2005, 11:49 AM
Um....... after i add those codes into the templates of MT, the source code look like this:<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/
raminia
02-15-2005, 11:53 AM
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
raminia
02-15-2005, 11:56 AM
Do you have PHP enabled for this part of yor site? It seems you didn't!
eaglesoul
02-15-2005, 12:46 PM
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. :D
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. :o
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.
raminia
02-15-2005, 02:08 PM
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.
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
require('./latest_pblog.php');
in index.php of nucleus.
here is my index.php of nuclues.
<?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.
raminia
02-22-2005, 01:24 PM
here
<?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();
?>
thanks, ramania. yes, i had written the same as you wrote, but something is strange.
i put the 'index.php' of nucleus(which i included
// for latest thumbnail of my photoblog
require('./latest_pblog.php');
and the 'latest_pblog.php' in the same directory.
i think relative and static path in the latest_pblog.php is right.
i access the 'index.php' of nucleus, and the result is below..
Warning: main(../foto/admin/pixelpost.php): failed to open stream: No such file or directory in /home/sites/lolipop.jp/users/mond.jp-ecco/web/latest_pblog.php on line 11
Fatal error: main(): Failed opening required '../foto/admin/pixelpost.php' (include_path='.:/usr/local/lib/php:/usr/local/lib/php/Smarty') in /home/sites/lolipop.jp/users/mond.jp-ecco/web/latest_pblog.php on line 11
is there anything you found out?
raminia
02-22-2005, 02:53 PM
surely that's a problem with paths.
is your weblog here?
/home/sites/lolipop.jp/users/mond.jp-ecco/web/
the file
latest_pblog.php
and your index.php of your blog should be in the same directory.
BTW, note that the static path is a url path like
http://www.mysite.com/myphotoblog/
and the relative path is the relative path on your server.
raminia
02-22-2005, 02:56 PM
tell me what is the addresses of your photoblog and weblog on your server (the address you see in the ftp program)
and what is the url of your weblog and photoblog
then I could tell you what should the addresses be.
hi, raminia.
i changed my relative path in the latest_pblog.php from '../foto/' to '/home/sites/lolipop.jp/users/mond.jp-ecco/web/foto/'.
and the result was ...
Page headers already sent
The page headers have already been sent out in /home/sites/lolipop.jp/users/mond.jp-ecco/web/latest_pblog.php line 1. This could cause Nucleus not to work in the expected way.
Usually, this is caused by spaces or newlines at the end of the config.php file, at the end of the language file or at the end of a plugin file. Please check this and try again.
and then i rewrite the globalfunctions.php of nucleus not to show up this mesasge again.
but on the main page of my blog, the thubmnail didn't show up.
what's wrong? hmmmm. i don't understand.
i'll check it out in some other ways.
thank you.
raminia
02-22-2005, 04:02 PM
you didn't tell me this
tell me what is the addresses of your photoblog and weblog on your server (the address you see in the ftp program)
and what is the url of your weblog and photoblog
then I could tell you what should the addresses be.
oops, sorry, raminia, i didn't notice your reply.
tell me what is the addresses of your photoblog and weblog on your server (the address you see in the ftp program)
and what is the url of your weblog and photoblog
then I could tell you what should the addresses be.[/quote]
my full path on my server:/home/sites/lolipop.jp/users/mond.jp-ecco/web
my weblog url:http://ecco.mond.jp/index.php
my pixelpost fotoblog url:http://ecco.mond.jp/foto/index.php
raminia
02-22-2005, 05:45 PM
this should do it
$PixelPost_relative_address = "/foto/"; // relative address of your photoblog to this page (do not miss the tailing "/" ) e.g: ../myPhotoBlogDirectory/
$PixelPost_static_address = "http://ecco.mond.jp/foto/"; // static web address of your photoblog (do not miss the tailing "/" ) e.g: http://www.mysite.com/myphotoblog/
in latest_thumb.php.
and please confirm that latest_thumb.php is placed where your weblog php exists.
hi, raminia. thank you for taking your time to answer my question.
unfortunately, the result was the same. the thumbnails didn't show up on the main blog.
the way you taught me was what i did before having asked you.
hmmmm. what's wrong? i guess this is not because of your lastest_thumbnail.php but because of the nucleus problem. i use what-is-called FANCY URL mode, which makes it possible to show the nucleus URL like http://mynucleus_URL/archive/1 instead of http://mynucleus_URL/index.php?archive=1 or something like that.
anyway, i'll keep trying on.
thanks a lot!
mkblue
02-28-2005, 01:08 AM
Hi
i'm using wordpress for my weblog and i want to show my last thumb there. My wordpress index is:
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
I want to show the thumb in the sidebar. My weblog is in something like this: www.blabla.domain.net/weblog
My photoblog is in www.blabla.domain.net/Photos
i put the addon in the weblog directory. Can anyone help me? I cant make that work. Is this right?
<script language="php">
/* Customize this code for your PixelPost photoblog */
$PixelPost_relative_address = "/public_html/blabla/Photos/"; // relative address of your photoblog to this page (do not miss the tailing "/" ) e.g: ../myPhotoBlogDirectory/
$PixelPost_static_address = "http://www.blabla.domain.net/Photos/"; // static web address of your photoblog (do not miss the tailing "/" ) e.g: http://www.mysite.com/myphotoblog/
$main_file_name = "index.php"; // name of the main page of your photoblog. If you didn't change it intentionaly it's "index.php"
/* End of Customization... Stop editing if you don't know PHP*/
Where did i put the define?
I tried a lot off places but nothing.
Thx in advance
Anonymous
02-28-2005, 11:53 AM
latest_thumb.php should be beside of index.php of your wordpress.
use $PixelPost_relative_address = "../Photos/";
instead of what you mentioned for relative address. and use
<?php echo $image_thumbnail; ?>
in the side bar of index.php of your wordpress weblog.
that's all.
tell me your site address for further help.
Raminia (not logged in)
Anonymous
02-28-2005, 05:51 PM
Not working :(
raminia
02-28-2005, 06:49 PM
tell me your site address!
raminia
02-28-2005, 07:22 PM
and if you send me your wordpress index.php I could figure out the problem in seconds:)
raminia
02-28-2005, 09:53 PM
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
didn't you add
require('./latest_pblog.php'); ?!
it should be like this
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
require('./latest_pblog.php');
?>
mkblue
02-28-2005, 10:11 PM
yes i changed
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
to
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
require('./latest_pblog.php');
?>
but nothing :S
raminia
03-01-2005, 05:12 AM
I think the problem is because you use wordpress 1.5 and I developed it with wordpress 1.2.2. I'm checking it.
Ramin
raminia
03-01-2005, 05:32 AM
try this but I didn't test it
supposing you are using classic them of wordpress 1.5, put latest_pblog.php in the folder: \wp-content\themes\classic
at the begining of sidebar.php
<!-- begin sidebar -->
<div id="menu">
change it to
<!-- begin sidebar -->
<div id="menu">
<php? require('./latest_pblog.php');
php echo $image_thumbnail; ?><hr>
and change the latest_pblog.php relative address to be compatible to the new location.
kroesler
03-01-2005, 07:05 AM
The <?php require('latest_pblog.php'); ?> is printing some odd symbols on my site - . If anyone could help me, that'd be great. Thanks.
ps. if you want to check what's going on head to www.kyleroesler.info the symbols should be above the thumb.
Connie
03-01-2005, 08:29 AM
for sure this is a problem of character encoding
check the codepage-definitions:
the ADDON delivers UTF-8, but your page is defined differently:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Anonymous
03-01-2005, 01:52 PM
Wow, thanks for the quick reply. Problem solved! :)
raminia
03-01-2005, 07:10 PM
ok I found that way out for wordpress 1.5. soon I'll upgrade my wordpress to 1.5.
follow these steps for using latest thumbnail of your photoblog for in your wordpress blog
1) put latest_pblog.php in your selected theme folder of wordpress 1.5
for example: E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default
2) edit latest_pblog.php. replace the relative address with full address of your photoblog on your sever (do not forget the tailing slash)
for example for windows server
$PixelPost_relative_address = "E:/Program Files/Abyss Web Server/htdocs/pblog/";
or for linux server
[code]$PixelPost_relative_address = "/public_html/www/pblog/";
3) use url of your photoblog in the static address
[code]$PixelPost_static_address = "http://www.raminia.com/pblog/";[/code]
4) if you going to put the latest thumb in the side bar of your blog open sidebar.php of your selected theme and then put the following line where you want the thumb appear.
[code]<?php $full_address_of_latest_pblog_php = 'E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default/latest_pblog.php';
require($full_address_of_latest_pblog_php);
echo $image_thumbnail; ?>[/code]
make sure that you type correct address of your latest_pblog.php
(Surely by this modifications you can place latest_pblog.php where ever you want in your website. That's because you have change the relative address to full address and it does not depend on the placement of the file)
I tested on my local server with a fresh wordpress 1.5
good luck
Ramin
raminia
03-01-2005, 07:24 PM
I uploaded the new instructions (above) for wordpress 1.5 users to the addon section and increased the version of latest_thumb to 1.1
mkblue
03-01-2005, 11:29 PM
not working 4 me
raminia
03-02-2005, 04:22 AM
you have problem with defining paths for sure
raminia
03-04-2005, 09:05 PM
I had a mistyped code in the above instructions. The line reads
require('$full_address_of_latest_pblog_php');
should be
require($full_address_of_latest_pblog_php);
(I've corrected the above post right now and it's no more wrong)
The *.zip file and the instruction in the addon section is also corrected now.
Thanks for David for bug report.
Ramin
raminia
03-10-2005, 11:50 AM
I 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/
good luck,
Ramin
dtclarinet
03-21-2005, 07:07 AM
I'd like to use both, but spell checker does not work with latest photo plugin, even the recent bug free version. The spell chcker is by http://coldforged.org
This is the error I get when running spell check with latest photo active.
Please advise. I like the latest pblog plugin very much.(':)') But I'm also a terrible speller. (':oops:')
Warning: main(../glint/admin/pixelpost.php): failed to open stream: No such file or directory in /hsphere/local/home/dhthomas/glitteringstew.com/muse/wp-content/plugins/latest_pblog_plugin.php on line 51
Warning: main(../glint/admin/pixelpost.php): failed to open stream: No such file or directory in /hsphere/local/home/dhthomas/glitteringstew.com/muse/wp-content/plugins/latest_pblog_plugin.php on line 51
Fatal error: main(): Failed opening required '../glint/admin/pixelpost.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/dhthomas/glitteringstew.com/muse/wp-content/plugins/latest_pblog_plugin.php on line 51
Here is the problem area. up to line 51. I hope you can help me solve this.
Thanks,
David
// Don't forget the tailing slash '/'
$PixelPost_local_address = "../glint/";
// 2)
// URL address of the Pixelpost photoblog (do not miss the tailing "/" )
$PixelPost_URL = "http://glitteringstew.com/glint/";
// 3)use show_latest_pixelpost_thumbnail() in your wordpress weblog when you want the latest thumbnail appear
/* Stop Editing if you don't know php and you did not changed the name of index.php
of the Pixelpost photoblog. */
//-------------------------------------------------------------------------------------
$main_file_name = "index.php"; // name of the main page of your photoblog. If you didn't change it intentionaly it's "index.php"
// Global
Global $pixelpost_image_thumbnail;
if (strpos ($_SERVER['PHP_SELF'],'wp-admin')) // check if the script is running in the admin menu
{
// if in admin menu change the relative address slightly to the top
$PixelPost_local_address = "../" .$PixelPost_local_address;
}
// save the address of the pixelpost database settings
$pixelpost_settings_address = $PixelPost_local_address ."admin/pixelpost.php";
raminia
03-21-2005, 08:41 AM
I'll check this but I think spell checker has changed the current directory for its use (somewhere in the code) but does not revert it to the original value.
raminia
03-21-2005, 09:54 AM
Some strange manipulation of the Spell Checker pluging with path revealed some bugs with my plugin. I change the plugin version to 0.2 after correcting these bugs. Now on, the plugin should not prompt error if the path is not ok and it will simply be sielent!
you can dload it from the same location at http://weblog.raminia.com/wp-hacks
This will solve your problem:)
dtclarinet
03-21-2005, 04:21 PM
Thanks for fixing that. Now I can use both!
Ramin, you should put this plugin on http://wp-plugins.net/
and make it a one-click install for Plugin Manager, a plugin that connects to the wp database and makes plugins REALLY easy to manage. (it's listed on the above site)
There are some other photo gallery things, but not many. Yours would be good there.
David
raminia
03-21-2005, 05:14 PM
thanks I'll do that.
Birdie
03-22-2005, 07:55 PM
I have tried to get this plugin to work at http://www.prairiewool.com/blog/[url] but can't. I have downloaded the version found here [url]http://weblog.raminia.com/wp-hacks/latest_pblog_plugin.zip
I am getting the following error Fatal error: Call to undefined function: show_latest_pixelpost_thumbnail() in /home/spinart/public_html/blog/wp-content/themes/prairiewool/sidebar.php on line 39
I've fiddled with the paths and nothing seems to work correctly so I'm not sure where to look for the problem.
My wp blog is at the url above. My pixelpost install is at http://www.prairiewool.com/photos/
Can anyone give me any suggestions? I would really love to use this script.
raminia
03-23-2005, 04:51 AM
did you activated the plugin the wordpress?
Birdie
03-23-2005, 03:35 PM
yes.
I actually tried 3 different add ons and none of them would work for me, so I gave up and removed all of them. :(
raminia
03-23-2005, 06:03 PM
this error actually means that the addon's are not enabled!
If other addons do not work either check wordpress functionality. mabye there is a security issue with your site!
Birdie
03-23-2005, 06:18 PM
oof - I am suddenly feeling dumb.
How do I check wordpress functionality? And how would that affect other addons for Pixelpost? I tried the category links and paged archive too. Those should have anything to do with wordpress.
raminia
03-23-2005, 06:21 PM
no!
nothing to do with wordpress.
Do you use other plugins in wordpress successfully?
Birdie
03-23-2005, 07:21 PM
ieee..... :oops:
I got it working. Now I'll have a few other questions but will post them in the appropriate spots.
Thank you.
gabrielgarciamarengo
03-25-2005, 02:41 PM
i have problems here, i follow your steps, but when i open my blog it`s show me this:
[code]/* Created by Ramin Mehran (Raminia) @ 2005/02/11 - 2:25 am ! website: www.raminia.com photoblog: pblog.raminia.com Version: 1.1 Instructions: I made this script for displaying the thumbnail of the latest photo posted on the PixelPost on the other pages of the website. It is a php script and it requires PHP4 or higher to work (I think so!). I have PixelPost 1.3 and it works perfectly with it. I'm not sure about compatibility with earlier versions but it is a strong posiblity that it's compatible! To use this addon, you should do the following steps. Wordpress 1.5 users follow the next series of steps instead. ---------------------------------------------------- >>>> Non wordpress 1.5 users: <<<< 1) Download latest_pblog.php and open it in an editor. 2) Customize the pixelpost static and dynamic address as it is described in the latest_pblog.php file. 3) Upload the latest_pblog.php to the directory that your non-photoblog page exists. 4) In the php section of your non-photoblog page, add the code require('./latest_pblog.php'); 5) Finally, add this php code echo $image_thumbnail; where you want the thumbnail apear. 6) You're done! :) --------------------------------------------------------------- Wordpress 1.5 users: I added this to my weblog at http://weblog.raminia.com which is powered by WordPress. follow these steps for using latest thumbnail of your photoblog for in your wordpress blog 1) put latest_pblog.php in your selected theme folder of wordpress 1.5 for example: E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default 2) edit latest_pblog.php. replace the relative address with full address of your photoblog on your sever (do not forget the tailing slash) for example for windows server Code: $PixelPost_relative_address = "E:/Program Files/Abyss Web Server/htdocs/pblog/"; or for linux server [code]$PixelPost_relative_address = "/public_html/www/pblog/"; 3) use url of your photoblog in the static address [code]$PixelPost_static_address = "http://www.raminia.com/pblog/";[/code] 4) if you going to put the latest thumb in the side bar of your blog open sidebar.php of your selected theme and then put the following line where you want the thumb appear. [code]
Warning: main(E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default/latest_pblog.php): failed to open stream: No such file or directory in /home/gabriel/public_html/latest_pblog.php on line 50
Warning: main(E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default/latest_pblog.php): failed to open stream: No such file or directory in /home/gabriel/public_html/latest_pblog.php on line 50
Fatal error: main(): Failed opening required 'E:\Program Files\Abyss Web Server\htdocs\wordpress\wp-content\themes\default/latest_pblog.php' (include_path='/usr/local/cpanel/3rdparty/lib/php/:.') in /home/gabriel/public_html/latest_pblog.php on line 50[/code]
here is my "latest_pblog.php" configuration:
[code]<script language="php">
/* Customize this code for your PixelPost photoblog */
$PixelPost_relative_address = ".. /home/gabriel/public_html/photoblog"; // relative address of your photoblog to this page (do not miss the tailing "/" ) e.g: ../myPhotoBlogDirectory/
$PixelPost_static_address = "http://www.gatodegrandesbotas.com/photoblog/"; // static web address of your photoblog (do not miss the tailing "/" ) e.g: http://www.mysite.com/myphotoblog/
$main_file_name = "../home/gabriel/public_html/photoblog/index.php"; // name of the main page of your photoblog. If you didn't change it intentionaly it's "index.php"
/* End of Customization... Stop editing if you don't know PHP*/[/code]
and here is my index.php blog file:
first:
[code]
<?php
/* Don't remove this line. */
require('./wp-blog-header.php');
require('./latest_pblog.php');
?>
[/code]
and then:
[code]<ul>
PhotoBlog! (http://www.gatodegrandesbotas.com/photoblog/index.php)
<?php echo $image_thumbnail;?>
[/list][/code]
i'm using WP 1.2
gabrielgarciamarengo
03-25-2005, 03:02 PM
weel i download the new version, and less problems...only that i can enter to my blog, but i dont see the photo?
i have this:
in my blog index.php
<ul>
<li><a href="http://www.gatodegrandesbotas.com/photoblog/index.php" target="_blank">PhotoBlog!</a>
<?php show_latest_pixelpost_thumbnail() ?></li>
</ul>
blog: gatodegrandesbotas.com
my latest_pblog_plugin.php
/* Installation:
// 0) upload this plugin to Wordpress plugin folder <main folder>/wp-content\plugins
and the Edit this part: */
// 1)
// Relative address of Pixelpost main directory on the local server to the main address of the wordpress directory:
// for example: if your blog is placed at
// "/public_html/blog/"
// and you photoblog is placed at
// "/public_html/photoblog/"
// the relative address will be:
// "../photoblog/"
//
// Don't forget the tailing slash '/'
$PixelPost_local_address = "../photoblog/";
// 2)
// URL address of the Pixelpost photoblog (do not miss the tailing "/" )
$PixelPost_URL = "http://www.gatodegrandesbotas.com/photoblog/";
// 3)use show_latest_pixelpost_thumbnail() in your wordpress weblog when you want the latest thumbnail appear
/* Stop Editing if you don't know php and you did not changed the name of index.php
of the Pixelpost photoblog. */
//-------------------------------------------------------------------------------------
$main_file_name = "index.php"; // name of the main page of your photoblog. If you didn't change it intentionaly it's "index.php"
// Global
raminia
03-25-2005, 05:42 PM
since your blog is
gatodegrandesbotas.com
and your photoblog is
http://www.gatodegrandesbotas.com/photoblog/
the relative address will be
$PixelPost_local_address = "./photoblog/";
or
$PixelPost_local_address = "photoblog/";
pay attention please to the path definition.
Anonymous
03-25-2005, 05:49 PM
i just try ./photoblog/
and
photoblog/
but nothing happend...any solution?
gabrielgarciamarengo
03-25-2005, 05:51 PM
that was me! sorry...IT'S WORKS!!!!!!!
THANKS!!!
btw: how i can put in the php, that the windows open in _blank?
myeviltwin
04-04-2005, 08:47 PM
is it possible to get the latest three or four images to show up on the pages?
just one image looks very lonely... :)
raminia
04-04-2005, 08:51 PM
maybe if I have time or someone else has;)
myeviltwin
04-04-2005, 08:55 PM
ah, don't worry/hurry, i just thought it was something easy to change... i have no clue of programming :)
silly me :)
raminia
04-04-2005, 10:16 PM
it's easy to change!
eloyramirez
07-23-2005, 06:43 PM
i just upgraded 2 sites to pixelpost 1.4.2 and in of the sites the thumnail shows , in the other it does not
here is the one that does not work
<img src='http://www.excipiolucis.com/index.php?showthumb=latest&thumbtag=image' alt="My Photoblog" border="2" bordercolor=#666666 align="middle" />
here is the one that works
<a href='http://www.vitainphoto.com/' ><img src='http://www.vitainphoto.com/index.php?showthumb=latest&thumbtag=image' alt="Familia Photo Blog" border="2" bordercolor=#666666 align="middle" /> </a>
both are fresh installs (upgrades)
eloyramirez
07-23-2005, 07:39 PM
in this link the image is parsed
http://www.excipiolucis.com/index.php?showthumb=latest&thumbtag=image
in this link the image is fine
http://www.vitainphoto.com/index.php?showthumb=latest&thumbtag=image
both fresh installs.
on the one that is not working, i resintalled again, and created a seperate and new database, and i still get the error
when i just past the non working link(http://www.excipiolucis.com/index.php?showthumb=latest&thumbtag=image) into my browser i get this
"JFIF;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 75 C $.' ",#(7),01444'9=82<.342C 2!!222222222222222222222222222222222222222222222 22222Kd" ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvw xyz ?цBEXQ"*)$1 M5&!ڀ"aQM1Zj@¢eڣ"+抐h 4<*Fi"V$} G MLj3L7@ "E<a j& j#@ =h @Tcؗyǎ|5=j_$#dT+䅚 qRj5X b@m#%y' 5nt !2; վF*:Fc=uP {a,TPij@1ZZQi(xP@3 ,pO @i,(73"V+@Psʃ^FƬ?Rm>XY!T7Oc@c<jjDHuNxR*mImu7 zA?:PcA֫Vq)P~f sC@`AA 2*¸~i%LhXW ~ QL~uN\] |7KmBHZRQ3ԓBsB#dK( |Mr:5,N;O+Կփh q%r g*\Bշ+)Io, :29jɚ̌ >t5!5u&h@"
Connie
07-23-2005, 11:13 PM
this shows, in my humble opinion, that the image has an extension which is not a valid extensions for images
could you check this out?
eloyramirez
07-23-2005, 11:20 PM
it looks like one of the addons was causing problems. i side by side compared my newest pixelpost site to the one having problems and noticed one addon that was a part of my old one that was not part of my new one. the addon was called Grablinks. i deleted it and resynced the site and it started working. it was driving me crazy!!!
myeviltwin
08-08-2005, 02:15 PM
i am currently trying the wordpress plugin but unfortunately the images dont show up.
i am almost sure that it's not a path-issue
the blog is at www.spiegelkind.net/content/fuck
and the photolog at www.spiegelkind.net/content/fuck/fotolog
my relative path is ./fotolog/
i also tried fotolog/ but nothing works.
yes, i activated the plugin.
strange.
i guess i am too dumb for this :/
shahram
08-10-2005, 10:43 PM
I downloaded the latest version of plugin From Rmains website. It used to work and I modified PP and after that it stop showing images on the page. Any one had the same problem.
tavakoli.ws/blog
tavakoli.ws/pblog
raminia
08-11-2005, 09:30 AM
I downloaded the latest version of plugin From Rmains website. It used to work and I modified PP and after that it stop showing images on the page. Any one had the same problem.
tavakoli.ws/blog
tavakoli.ws/pblog
what did you modify in PP?
shahram
08-11-2005, 12:30 PM
I think majorly it was upgarading to 1.4.2 and chanign the date format in admin panel.
shahram
08-20-2005, 10:59 PM
I recently installed WP from scratch. and updated the PP to 1.4.2 but I could not make the WP plugin working and it got me frustrated. I spent almost 2 hours. It is not the path issue I think.
Blog: tavakoli.ws/blog
pblog: tavakoli.ws/pblog
Is there naybody who had the same problem before and can give me some feeedback to resole the issue.
Thanks.
Connie
08-21-2005, 07:17 AM
and it got me frustrated. I spent almost 2 hours.
if you are frustrated after 2 hours, you should not dive into scripting and software!
I say this because I am a software supporter for 18 years now :smile:
well, Ramina will not be around for some days, so you will need some patience, I guess
shahram
08-21-2005, 01:28 PM
That is a pleasant frustration. You now that one gets frustrated after hours of work and wants to get back to it again. I need to review everythign from scratch. I just all the thread to find out about the issue. but not much help.
I will wait for him.
Thanks.
shahram
09-05-2005, 02:44 AM
I am still having problem using the plugin in word press. I could not make it working so I am using the ixelpost add on. Has the add on been tested on PP 1.4.2 and WP 1.5.2.
Thanks
Michael
09-05-2005, 03:01 AM
Will you make a 1.5 wordpress version?
shahram
09-05-2005, 03:06 AM
Ramina has written it but I am not sure whether it is compatible with WP 1.5.2 or I have a problem in my PP?!
Michael
09-05-2005, 03:45 AM
Mines 1.5.1.3 and I don't think mine works correctly either. I would love for it to, maybe sometime soon.
raminia
09-05-2005, 06:08 AM
it is working for me with 1.5.... I'll check it for 1.5.2 later...
raminia
09-05-2005, 06:23 AM
I tested it with 1.5.2 too. it works! Nothing to change on my localhost.
raminia
09-05-2005, 06:26 AM
I am still having problem using the plugin in word press. I could not make it working so I am using the ixelpost add on. Has the add on been tested on PP 1.4.2 and WP 1.5.2.
Thanks
I'll help you if it still doesn't work.
drop an email for me.
I'm going to some days off PP again but you can find my by email;)
lokjah
09-19-2005, 07:41 PM
yeah im using 1.5.2 and I get a blank with this plugin as well no matter what i use as paths.
however It DID work for me until I added a second install of pp, once I did that blanksville..
raminia
09-20-2005, 06:55 AM
second install of PP? means 1.4.2?
Joe[y]
09-20-2005, 04:11 PM
second install of PP? means 1.4.2?
no... i think he means two installs.
lokjah
09-21-2005, 03:04 AM
yeah I actually have 4 different installs of pixelpost on one database, all with different table prefixes. From the time I added the second install the plug stopped working and just shows up blank on my site.
raminia
09-21-2005, 06:25 AM
oh! that could be the thing!
but I have serveral installs of PP on my local host an wp and the plugin works.
do you have several WP installs?
maybe there are some host limitations that I didn't consider.
lokjah
09-21-2005, 02:47 PM
hmm only one install of wordpress. but it definetely seemed to bork things after the second install of pp, thought that was quite odd as my table prefixes are all different.
Raminia: awesome addon you made.
Is there any way to have multiple thumbnails show rather than just the one. Ie: I would prefer 5-9 images displayed in a row.
Hopefully yourself or someone can assist, thanks in advance.
raminia
09-29-2005, 05:15 PM
it alread has that ability. read the instructions: http://weblog.raminia.com/wp-hacks
Thanks very much. For some reason I was oblivious to that site. I must be blind.
But what if I am using the Image link to latest thumb addon 1.0?
I am not using the pblog addon that your site describes. Would I need to upgrade to version 1.1? I am also not using Wordpress.
naufrago
10-11-2005, 01:28 AM
First of all, I'd like to thank you for the time you take for answering FAQ.
I'm from Spain and when yesterday I installed PP and your Plugin everything was allright. Everything. But..., 3 hours ago I can't see the Thumb in the Blog, is really really weird. If I disable the plugin the fatal error comes.
I have tried uninstalling and installing again PP, the plugin, and..., checking the Database access. (the account must have access to WP and PP).
raminia, I do not what to do, i'm going crazy.
The URLS are:
Blog : http://www.sangrefria.com/fotolog/index.php
Fotolog : http://www.sangrefria.com/fotolog/index.php
//
$PixelPost_local_address = "../fotolog/";
$PixelPost_URL = "http://www.sangrefria.com/fotolog/";
My WP version is 1.5.1.3, and in the sidebar I have:
<li><a href="http://www.sangrefria.com/fotolog/" target="_blank"><img src="http://www.sangrefria.com/blog/images/fotolog.jpg"></a>
<ul><?php show_random_pixelpost_thumbnail(); ?></ul></li>
Hope I gave you all the information you need.
Thanks in advance.
Best regards.
naufrago
10-11-2005, 03:52 AM
ok, i installed another pp in another directory with other DB, and worked. So, i really dunno what happened, but it had only 24 hours and it's better to start from the beginning than disturbing people.
Thanks again man for your plugin.
Regards
Hi, Raminia...
This is, by far, one of my favorite WP plug-ins. I'm curious, with WordPress 2.0 coming out this week, will this plug-in still work? I've noticed a lot of talk in WP-land where a lot of plug-ins won't work because of changes in the coding.
Thank you so much.
d
tinyblob
12-23-2005, 02:33 PM
if all else fails i released a latest thumb addon somewhere around here which you just link to like an image.
nothing WP centric, will work anywhere that you can link to images... example in my signature ;)
Thanks, Tiny. I will look into that if the plug-in doesn't work. I love seeing my latest thumbnail on my weblog page alongside the other things going on. I like the contrast between that and the image I use in the weblog.
I want you all to know how much I appreciate all of the hard work you do, as well. I can't imagine how boring my photoblog would be without pixelpost.
tinyblob
12-23-2005, 02:46 PM
basically put, as long as WP is running on your machine, i can make it read the pixelpost database.
i don't know anything about WP addons, but we'll be able to work something out for you ;)
raminia
12-23-2005, 02:50 PM
Hi, Raminia...
This is, by far, one of my favorite WP plug-ins. I'm curious, with WordPress 2.0 coming out this week, will this plug-in still work? I've noticed a lot of talk in WP-land where a lot of plug-ins won't work because of changes in the coding.
Thank you so much.
d
wow! WP 2? I never heard of! I'll check it out. As you might seen I'm a user of WP and I use that plugin for my weblog. I'll do upgrade my plugin if WP needs that.
I'll check it in the following days.
Yeah...and some huge changes, too, I think!
Here is a great post that will explain a lot of things about WP, Raminia...and maybe help you with your plug-in.
http://asymptomatic.net/2005/12/19/2171/whats-not-gonna-work-in-wordpress-20/
And Tiny, thanks again. Your prompt reply was great. I appreciate it.
dawn
raminia
12-23-2005, 03:09 PM
Thanks now I read it:)
raminia
12-24-2005, 09:26 PM
Yeah...and some huge changes, too, I think!
Here is a great post that will explain a lot of things about WP, Raminia...and maybe help you with your plug-in.
http://asymptomatic.net/2005/12/19/2171/whats-not-gonna-work-in-wordpress-20/
And Tiny, thanks again. Your prompt reply was great. I appreciate it.
dawn
I've installed wordpress-2.0-RC3.zip (Beta) on my local server and tested the plugin. it works like a charm :)
Yay! Thanks, Raminia. I appreciate the time you put into this.
raminia
12-25-2005, 07:48 AM
Yay! Thanks, Raminia. I appreciate the time you put into this.
you're welcome :) . btw, my local host may have some loose permissions and settings. I'll test it on a linux server later.
chinaski
04-03-2006, 09:49 PM
Hi Raminia.
I wanna know if your "Latest pblog" addon works between PP and WP @ DIFFERENT SERVERS... because I tried it so many times and I still get that "Error: pixelpost.php is not accessable. Error in PixelPost_local_address=" warning.
thanks in dvance.
eloyramirez
05-24-2006, 07:59 PM
i downloaded the PHP file and the instruction read:
_________________________
Installation:
1. upload this plugin to Wordpress plugin folder <main folder>/wp-content/plugins
and open it in an editor. Edit relative address of the Pixelpost photoblog:
Relative address of Pixelpost main directory on the local server to the main address of the wordpress directory. For example, if your blog is placed at
"/public_html/blog/"
and you photoblog is placed at
"/public_html/photoblog/"
the relative address will be:
"../photoblog/"
Don't forget the tailing slash '/'. Thus, the in the php file you will see:
$PixelPost_local_address = "../pblog/";
2. Now edit URL address of the Pixelpost photoblog (do not miss the tailing "/" )
$PixelPost_URL = "http://pblog.raminia.com/";
3. Set number of thumbs to show up. The default value is 1 for the latest thumb.
$num_thum_toshow = 1;
Also, you could set the number of random photos to show up.
$num_rand_thum_toshow = 1;
__________________________________
First Question:
steps 1 and 2 ask to edit the "relative" and "URL" address. Am I supposed to add those values to the php file? (if so where in the structure of the file do the comments go?)
Second Question:
step 3 gives the "number" and "random" options. I do not see those values either in the php file. Should I add those to the php file as well?(if so where in the structure of the file do the values go?)
eloyramirez
05-24-2006, 08:15 PM
i am sorry about the ginormous font in my previous post...i just wanted to seperate the information from the question..
:oops:
cerdo
06-02-2006, 06:09 PM
Hi. I've got this installed and ALMOST working...
you can see what happens here: http://www.stevetenebrini.com
the latest images shows up as text and the text links successfully to the photoblog but a thumbnail never shows up. What am I missing?
This is what my code looks like:
<?php
/*
Plugin Name: Pixelpost Latest Photo
Plugin URI: http://www.raminia.com/weblog/wp-hacks
Description: Using <?php show_latest_pixelpost_thumbnail() ?> in Wordpress (inside index.php of wordpress1.2 and e.g. inside sidebar.php of wordpress1.5), shows the latest image from your Pixelpost photoblog in the wordpress blog. Similar to latest photo, <?phpshow_random_pixelpost_thumbnail()?> will show the random thumbnails from pixelpost. Compatible with Pixelpost version 1.3 or higher.
Author: Ramin Mehran
Version: 1.1
Author URI: http://weblog.raminia.com
*/
/* Installation:
// 0) upload this plugin to Wordpress plugin folder <main folder>/wp-content\plugins
and the Edit this part: */
// 1)
// Relative address of Pixelpost main directory on the local server to the main address of the wordpress directory:
// for example: if your blog is placed at
// "/public_html/blog/"
// and you photoblog is placed at
// "/public_html/photoblog/"
// the relative address will be:
// "../photoblog/"
//
// Don't forget the tailing slash '/'
//
$PixelPost_local_address = "pixelpost/";
// 2)
// URL address of the Pixelpost photoblog (do not miss the trailing "/" )
$PixelPost_URL = "http://www.stevetenebrini.com/";
// 3)
// set number of photos to show on wp
$num_thum_toshow = 1;
$num_rand_thum_toshow = 1;
/* 4)use <?php show_latest_pixelpost_thumbnail(); ?> in your wordpress weblog when you want the latest thumbnail appear */
/* use <?php show_random_pixelpost_thumbnail(); ?> where you want to the random thumbnails appear */
/* Stop Editing if you don't know php and you did not changed the name of index.php
of the Pixelpost photoblog. */
//-------------------------------------------------------------------------------------
$main_file_name = "pixelpost/index.php"; // name of the main page of your photoblog. If you didn't change it intentionaly it's "index.php"
// Global
Global $pixelpost_image_thumbnail;
Global $pixelpost_rand_image_thumbnail;
$pixelpost_rand_image_thumbnail ='';
$pixelpost_image_thumbnail ='';
if (strpos ($_SERVER['PHP_SELF'],'wp-admin')) // check if the script is running in the admin menu
{
// if in admin menu change the relative address slightly from what is at the top
$PixelPost_local_address = "pixelpost/" .$PixelPost_local_address;
}
// save the address of the pixelpost database settings
$pixelpost_settings_address = $PixelPost_local_address ."includes/pixelpost.php";
if (file_exists($pixelpost_settings_address))
{
require($pixelpost_settings_address);
// book a visitor
$host = $_SERVER['HTTP_HOST'];
$referer = $_SERVER['HTTP_REFERER'];
/* start up mysql */
$pixepost_DB_link = mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass) ;
if (mysql_error()) {
$pixelpost_rand_image_thumbnail .= "Error in DB connect: ".mysql_error()."<br/>";
$pixelpost_image_thumbnail .= "Error in DB connect: ".mysql_error()."<br/>";
}
mysql_select_db($pixelpost_db_pixelpost) ;
if (mysql_error()) {
$pixelpost_rand_image_thumbnail .= "Error in DB select: ".mysql_error()."<br/>";
$pixelpost_image_thumbnail .= "Error in DB select: ".mysql_error()."<br/>";
}
// if PHP 4.2+
//mysql_select_db($pixelpost_db_pixelpost,$pixepost_ DB_link) || die("Error: ". mysql_error());
// get config
if($cfgquery = mysql_query("select * from ".$pixelpost_db_prefix."config")) {
$cfgrow = mysql_fetch_array($cfgquery);
$upload_dir = $cfgrow['imagepath'];
$tz = $cfgrow['timezone'];
$datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz));
$cdate = $datetime; // for future posting
} else {
$pixelpost_rand_image_thumbnail .= "<br/>pixelpost does not seem to be installed yet.";
$pixelpost_image_thumbnail .= "<br/>pixelpost does not seem to be installed yet.";
// echo "pixelpost does not seem to be installed yet.";
//exit;
}
// Get number of photos in database
$photonumb = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."pixelpost where datetime<='$datetime'");
$row = mysql_fetch_array($photonumb);
$pixelpost_photonumb = $row['count'];
// Get Current Image.
$query = mysql_query("select * from ".$pixelpost_db_prefix."pixelpost where datetime<='$cdate' order by datetime DESC limit 0,$num_thum_toshow");
if (mysql_error())
$pixelpost_image_thumbnail .= 'MySQL Error: '.mysql_error(). ' ';
$rcounter = 0;
while($row = mysql_fetch_array($query)) {
$rcounter++;
//$row = mysql_fetch_array($query);
if(!$row['image']) {
echo "Coming Soon (query fail)!";
//exit;
}
$image_name = $row['image'];
$image_title = pullout($row['headline']);
$image_id = $row['id'];
$image_datetime = $row['datetime'];
$image_datetime_formatted = strtotime($image_datetime);
$image_datetime_formatted = date($cfgrow['dateformat'],$image_datetime_formatted);
$image_category = $row['category'];
$image_date = substr($row['datetime'],0,10);
$image_time = substr($row['datetime'],11,5);
$image_date_year_full = substr($row['datetime'],0,4);
$image_date_year = substr($row['datetime'],2,2);
$image_date_month = substr($row['datetime'],5,2);
$image_date_day = substr($row['datetime'],8,2);
//changed by ramin
$image_notes = pullout($row['body']);
if (file_exists($PixelPost_local_address ."thumbnails/thumb_$image_name")){
list($local_width,$local_height,$type,$attr) = getimagesize($PixelPost_local_address ."thumbnails/thumb_$image_name");
$pixelpost_image_thumbnail .= "<a href='" .$PixelPost_URL .$main_file_name ."?showimage=$image_id'><img src='" .$PixelPost_URL ."thumbnails/thumb_$image_name' alt='$image_title' title='$image_title' width='$local_width' height='$local_height' /></a>";
}else $pixelpost_image_thumbnail .= "[".$image_name."]";
} // end while
// Get random image
$query = mysql_query("select * from ".$pixelpost_db_prefix."pixelpost where datetime<='$cdate' order by rand() asc limit 0,$num_rand_thum_toshow");
if (mysql_error())
$pixelpost_rand_image_thumbnail .= 'MySQL Error: '.mysql_error(). ' ';
$rndcounter = 0;
while($row = mysql_fetch_array($query)) {
$rndcounter++;
//$row = mysql_fetch_array($query);
if(!$row['image']) {
echo "Coming Soon (query fail)!";
//exit;
}
$image_name = $row['image'];
$image_title = pullout($row['headline']);
$image_id = $row['id'];
$image_datetime = $row['datetime'];
$image_datetime_formatted = strtotime($image_datetime);
$image_datetime_formatted = date($cfgrow['dateformat'],$image_datetime_formatted);
$image_category = $row['category'];
$image_date = substr($row['datetime'],0,10);
$image_time = substr($row['datetime'],11,5);
$image_date_year_full = substr($row['datetime'],0,4);
$image_date_year = substr($row['datetime'],2,2);
$image_date_month = substr($row['datetime'],5,2);
$image_date_day = substr($row['datetime'],8,2);
//changed by ramin
$image_notes = pullout($row['body']);
if (file_exists($PixelPost_local_address ."thumbnails/thumb_$image_name")) {
list($local_width,$local_height,$type,$attr) = getimagesize($PixelPost_local_address ."thumbnails/thumb_$image_name");
$pixelpost_rand_image_thumbnail .= "<a href='" .$PixelPost_URL .$main_file_name ."?showimage=$image_id'><img src='" .$PixelPost_URL ."thumbnails/thumb_$image_name' alt='$image_title' title='$image_title' width='$local_width' height='$local_height' /></a>";
}else $pixelpost_rand_image_thumbnail .= "[".$image_name."]";
} // end while
if ($rndcounter<1)
$pixelpost_rand_image_thumbnail .= 'Warning Nothing is fetched from db!';
if ($rcounter<1)
$pixelpost_image_thumbnail .= 'Warning Nothing is fetched from db!';
// close db connection IF PHP4.2+
/*
if ($pixepost_DB_link) {
mysql_close($pixepost_DB_link );
}
*/
//if PHP 4.2-
mysql_close();
mysql_connect( DB_HOST,DB_USER,DB_PASSWORD);
mysql_select_db(DB_NAME);
} else{
$pixelpost_rand_image_thumbnail = "Error: pixelpost.php is not accessable. Error in PixelPost_local_address=$PixelPost_local_address.";
$pixelpost_image_thumbnail = "Error: pixelpost.php is not accessable. Error in PixelPost_local_address=$PixelPost_local_address.";}
// ################################################## ########################################//
// functions
// ################################################## ########################################//
function show_latest_pixelpost_thumbnail()
{
// Gloabal
Global $pixelpost_image_thumbnail;
echo $pixelpost_image_thumbnail;
}
function show_random_pixelpost_thumbnail()
{
Global $pixelpost_rand_image_thumbnail;
echo $pixelpost_rand_image_thumbnail;
}
function clean($string) {
//$string = utf8_encode($string);
$string = addslashes($string);
return $string;
}
function pullout($string) {
$string = stripslashes($string);
//$string = utf8_decode($string);
//$string = nl2br($string);
return $string;
}
?>
emptyspace
07-14-2006, 05:58 AM
I`m using pixelpost in other subdomain and my blog in other subdomain.. so how to set the path?
And what is difference between them?
Put this path to which you want to get.
emptyspace
07-14-2006, 06:03 PM
ok here how it goes..
my pixelpost is in http://camera-n-me.fwenz.info that is
/public_html/fwenz/camera-n-me/ as absolute path
my wordpress blog is in http://imherenow.fwenz.info that is
/public_html/fwenz/imherenow/
so I have a problem setting the path because it's in a different folder outside the wordpress blog
when I set
$PixelPost_local_address = "/public_html/fwenz/camera-n-me/";
yerp, it's not working and gave an error like cannot find /pixelpost.php something like that
phild
04-21-2007, 10:54 AM
This is a great plugin, works perfectly.
I would like to show thumbnails from my two photoblogs in my WP blog. I've tried a number of things such as duplicating the plugin and changing the duplicate function names, but I can't make it work. All I got was the same thumbnail in both places.
Any idea how I could do that ?
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.