PDA

View Full Version : Pixelpost plugin for WordPress


dtclarinet
03-09-2005, 09:34 PM
There's been a lot of discussion on WordPress forums about a nice, clean, simple plug in for photo displays, but most of their plugins have limitations. I think someone would do well to integrate PixelPost's wonderful design to work seamlessly with WP. I would be the first to use it! :-)

David

raminia
03-10-2005, 05:23 AM
Describe it more please. What should the plugin do?

flashmage
03-10-2005, 06:05 AM
There is already a wonderful plugin here which adds the thumbnail of your latest pic post to your wordpress main frame.

This was exactly what I was looking for.. Now people can come to my blog and those who are interested in the snap follow it up to the photoblog. Pixelpost is in essence a Photoblog with all the features that a photoblog needs, making wordpress into a photoblog is like shooting a ant with a rocket launcher.

:D :D :D
Yes, there are a few "wanted features" which I am sure the next versions of PP will have :D

You can see the "integration of pixelpost into wordpress" here at:

http://www.abhishekthakkar.com/spice/

you can get the same plugin here...

http://www.pixelpost.org/index.php?x=downloads&details=38

hope this helps..
-@

raminia
03-10-2005, 06:42 AM
Thank you for info but it's actually the addon I personally wrote for PP and put it there in my real name Ramin Mehran:)

I wanted to know more about the Wordpress plugin. I wanted to change this addon to a wordpress plugin and I nee more info. I'll check wordpress.org to find out.

thank you,
Ramin:)

raminia
03-10-2005, 09:54 AM
I changed it to a wordpress plugin:)
I'll publish it soon

raminia
03-10-2005, 12:23 PM
It is published and you can download it from
http://weblog.raminia.com/wp-hacks

Good luck

jeremycherfas
03-10-2005, 01:53 PM
This did not work well for me. In fact, it seems to have shut me out of my WordPress blog admin pages completely. And now I cannot login to WP to deactivate the plug-in.

There is a series of error messages
Database error: [Table 'jcherfas_photos.wp_categories' doesn't exist]
SELECT * FROM wp_categories WHERE 1=1

Database error: [Table 'jcherfas_photos.wp_users' doesn't exist]
SELECT * FROM wp_users WHERE user_level > 0

Database error: [Table 'jcherfas_photos.wp_posts' doesn't exist]
SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= '2005-03-10 14:51:59' AND (post_status = "publish") GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 20

Database error: [Table 'jcherfas_photos.wp_posts' doesn't exist]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date < '2005-03-10 15:51:20' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC

Now I am completely stuck. I can restore from a backup. But before I do that I wonder if there is something else I can do.

I really don't know why this plug-in is looking for tables that do not seem to exist in _photos, but do exist in _weblog.

These errors persist even after I changed back to the old index.php in WordPress.

Help, please.

raminia
03-10-2005, 02:27 PM
why restore?!
you can simply delete the plugin if it bothers. I'll check the problem now.

jeremycherfas
03-10-2005, 02:32 PM
I cannot deactivate the plug-in because I cannot login to my WordPress account because I get an error message now, even with the old index page.

Database error: [Table 'jcherfas_photos.wp_users' doesn't exist]
SELECT * FROM wp_users WHERE user_login = 'admin'

All references to the WordPress tables seem to be pointing to photos tables instead!

Or do you mean delete, directly, with FTP?

raminia
03-10-2005, 02:35 PM
yes I meant FTP and it should be ok.
but the databases are mixed up and that's confusing! database name is set in pixelpost settings and that should be ok.
First delete the plugin and make things back to normal.

jeremycherfas
03-10-2005, 02:36 PM
OK. Panic over. I deleted via FTP, rather than deactivating, and the behaviour of the blog is back to normal. Thanks.

But I don't think the plug-in works as intended. At least not for me; it looks good on your blog.

raminia
03-10-2005, 02:41 PM
strange!
1) tell me which version of wordpress you are running.
2) check your admin/pixelpost.php file and the name of databases. Did you set $pixelpost_db_prefix correctly.

raminia
03-10-2005, 02:43 PM
what is the prefix of your wordress tables? wp?

raminia
03-10-2005, 02:56 PM
I think the problem was that I opened a db connection and did not closed it and you may use another addon which does not check which database it is going to connect before executing queries. I added a closing statement to the code and you can download from the same addresss.
Please try it agian check if it OK now.

jeremycherfas
03-10-2005, 02:58 PM
I am still running WP 1.2

The prefix of my all my tables is jcherfas_

I have two databases. jcherfas_photos and the prefix there is pixelpost_

jcherfas_weblog and the prefix there is wp_


$pixelpost_db_pixelpost = "jcherfas_photos"; // database


The Pixelpost site works fine. The WordPress site works fine. But the plug-in didn't

Thanks for your help in sorting this out. It will be a great and very useful plug-in for me.

raminia
03-10-2005, 03:01 PM
I'm almost assured that the problem is with multiple DB connection described in http://ir.php.net/manual/en/function.mysql-close.php and with my latest change in the code it should be OK but I'm not confident. Test it please.

jeremycherfas
03-10-2005, 03:11 PM
OK, I just tried again with the latest version.

I no longer get the database errors. :D But it still does not work. :(

The problem seems to be that the HTML output of WP's index.php is truncated immedately before the show_latest_pixelpost_thumbnail line.

Even stranger, I commented out the line, and I still had the problem.

Removing the line completely, and deleting the plug-in via FTP, and everything was back to normal again.

raminia
03-10-2005, 03:15 PM
houm....
check
1) the pixelpost.php address
2) check if the plugin is deactivated (most probable)
3) check the syntax.

jeremycherfas
03-10-2005, 03:29 PM
Checked all three. Now we are back to the tables not existing errors as described before!

I will download again to make absolutely sure.

Later: downloaded again. Now, the thumbnail is showing, and the link to my photoblog works, but the errors as reported before persist.
Database error: [Table 'jcherfas_photos.wp_categories' doesn't exist]
SELECT * FROM wp_categories WHERE 1=1

Database error: [Table 'jcherfas_photos.wp_users' doesn't exist]
SELECT * FROM wp_users WHERE user_level > 0

Database error: [Table 'jcherfas_photos.wp_posts' doesn't exist]
SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= '2005-03-10 16:32:59' AND (post_status = "publish") GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 20

Database error: [Table 'jcherfas_photos.wp_posts' doesn't exist]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date < '2005-03-10 17:32:25' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DE

If it helps, I'm also running the following plug-ins

Search Hilite, Hello Dolly. That's it!

raminia
03-10-2005, 03:47 PM
ok I'm working on it but I think the problem is somewhere else.
( I found a bug in my codes right now.... )

raminia
03-10-2005, 04:04 PM
do you use same database username for both wordpress and pixelpost?

raminia
03-10-2005, 04:12 PM
Ok now download the file again.
I closed the DB which was pointing to Pixelpost and the reconnect and select Wordpress connection.... It's working both on my local server and on my site online.

Anonymous
03-10-2005, 08:01 PM
Thew .zip file you offer is corrupt.

raminia
03-10-2005, 08:09 PM
thank you. I'll change it.

UPDATE:
It is fixed now not corrupt any more.

jeremycherfas
03-10-2005, 09:14 PM
do you use same database username for both wordpress and pixelpost?


I don't think so. But I am going to download the plug-in again and give it another try.

Later ...

Nope. It does not work here. A completely blank page now. And yes, I have checked the syntax.

There are clearly still some problems to be resolved, and I am sorry that I cannot do more than test for you. This should be a great plug-in, and I would love to have it working. Anything I can do to help I will.

But, while you are thinking about it, I think you could improve the functionality too, by making the two variables, which currently have to be edited, into options that can be changed from the plug-ins options of WordPress itself.

I'm not exactly sure this works, because I do not program PHP, but I'm sure if you take a look at other plug-ins that do this you will be able to work it out.

Thanks again.

jeremycherfas
03-11-2005, 04:42 AM
Tried again this morning and everything is working just fine.

Thanks for a great plug-in.

raminia
03-11-2005, 04:50 AM
I'm glad to hear that but I'm curious about why last night was problematic and this morning it's ok?

jeremycherfas
03-11-2005, 07:25 AM
I don't know! I redownloaded and started from the beginning. so I am not absolutely certain which version I tried before this one. And I did check all the PHP, I promise.

Anyway, I am happy. Thanks you.

raminia
03-11-2005, 07:40 AM
weclome:)

Good luck

Ramin

flashmage
03-11-2005, 03:34 PM
and while you are at it ... you may want to upgrade to WP 1.5 ... its tooo cool

8)
-@

dtclarinet
03-15-2005, 05:27 PM
i downloaded and opened your latest photo plugin for pxpost. I've never installed a plugin. I have placed the file in my wp plugin folder. I have no idea how to follow the rest of your instructions. Sorry. I'm sure after the first time I'll know how to do it in the future.

Your instructions are:
change
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 = "../pblog/";
Do I look for the "relative address" to change in the pixelpost index.php? I looked and I don't see any listing of "relative address". My wp files are on the server at glitteringstew.com/muse and my pixelpost files are at glitteringstew.com/glint. Are these the paths I use? So glitteingstew/muse changes to glitteringstew/glint ?
2)URL address of the Pixelpost photoblog (do not miss the tailing "/" )
$PixelPost_URL = "http://pblog.raminia.com/";
Is this also in the pixelpost index.php? Or where? I assume I would change it to http://glitteringstew.com/glint
3)use show_latest_pixelpost_thumbnail() in your wordpress weblog when you want the latest thumbnail appear
yes, I want it always to appear. How is this set? in the Admin area? on the wp page?

I know this seems obvious to you. I've never done this. And I would like to get it right the fiirst time. Thanks for your patience. I know this is annoying.

Thanks,
David

raminia
03-15-2005, 06:05 PM
you don't need to do anything with pixelpost's index.php

all you need is
1) edit the plugin file with an editor on your computer.
the relative address for you would be

$PixelPost_local_address = "../glint/";

and url of your photoblog as you told me is
$PixelPost_URL = "http://glitteringstew.com/glint/";

2) copy the plugin to plugin folder of wordpress

3)use show_latest_pixelpost_thumbnail() in your wordpress weblog where you want the latest thumbnail appear: This means use this in the for example sidebar.php of wordpress 1.5 or in index.php of wordpress 1.2.

To do this u need to open the above mentioned file in an editor (using FTP program you can do this) and add this where you want the thumbs appear

<?php show_latest_pixelpost_thumbnail(); ?>

if the above did not work use
show_latest_pixelpost_thumbnail() ;
and check again.

UPDATE:
4) activate the plugin!

dtclarinet
03-15-2005, 08:01 PM
Wow, it worked. Yay! I had a few problems, which I figured out, and they were my fault.

I'm so appreciative of this little plugin. Thank you for all the help.

David

Anonymous
03-25-2005, 07:08 PM
I try, i Try dofferent ways.. but nothing....

/var/www/html/fotos/ is the path

the address is www.iconographica.com.ar/fotos


$PixelPost_local_address = "/fotos/";


// 2)
// URL address of the Pixelpost photoblog (do not miss the tailing "/" )
$PixelPost_URL = "http://www.iconographica.com.ar/fotos/";

raminia
03-25-2005, 08:32 PM
where is the weblog?!
http://www.iconographica.com.ar/blog/ ?
then use
$PixelPost_local_address = "../fotos/";

Anonymous
03-25-2005, 09:15 PM
great!!1 works fine!!!!

flashmage
04-01-2005, 10:36 AM
Hi Rami,

Just installed your plugin, its working like a charm...
Just one problem, I have also followed the procedures for the time shift Hack mentioned in this post:

http://www.pixelpost.org/forum/viewtopic.php?t=363

This is because I am from India, while my hosting is in US and I have a +13.5 hrs of time shift. After applying that patch, I cant see the latest thumbnail any more... :roll: :roll: All I can see is the last thumbnail I used to see before I applied it the patch!

So if you have time, can you tell me what changes I have to make so that I
can get the latest thumbnail thing working back again ??

Many thanx in advance
-flashmage

MY url for your viewing:
http://www.abhishekthakkar.com (showing a crab photo now)

my photoblog
http://www.abhishekthakkar.com/flavours/ (the latest is some other snap)

helios
04-01-2005, 11:43 AM
This is weird... I can't seem to get this to display a thumbnail from my photoblog in my WordPress (v1.5) blog's sidebar. I've been all through this thread, checked and triple checked the code... but no thumbnail image displays. (The PP photoblog is working fine.)

The latest_pblog_plugin.php file is configured properly, with these settings:
$PixelPost_local_address = "../photoblog/"; (referencing the directory where the photoblog resides)

$PixelPost_URL = "http://mysite.com/photoblog/"; (referencing my PP photoblog)

And I used this in the WP sidebar.php file:
<h4>photoblog</h4>
<?php show_latest_pixelpost_thumbnail(); ?>

Any suggestions why this is not working? I'm stumped...

TIA,

steve

helios
04-02-2005, 07:54 AM
Never mind... I was using the version of the plugin for Pixelpost v1.4, and I have v1.3 installed. Configured the v1.3 plugin and uploaded, now it works properly.

Funny, though... you can't tell from the version info / comments in the two versions' files what the difference is between the two versions of the plugin. The wording reads the same. Maybe the 1.4 version comments should read, "Compatible with Pixelpost version 1.4 or higher." (Instead of "Compatible with Pixelpost version 1.3 or higher." as it currently reads.)

Anyway, glad I got it working. This is cool!

steve

jnetty99
04-04-2005, 07:10 PM
I edited the the latest_pblog_plugin with the following settings.
// 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.jnetty.com/photoblog/";
I'm not sure if i got the relative path correct. Wordpress is installed in www.jnetty.com or right on /public_html/
PP is installed in jnetty.com/photoblog or public_html/photoblog/

Leaving the settings as they are i go into my sidebar.php and add the following.
<?php show_latest_pixelpost_thumbnail() ?>
I also tried the following style instead
<?php show_latest_pixelpost_thumbnail(); ?>

after that i activated the plug in and nothing happens on my main site.

helios
04-06-2005, 03:09 AM
A few suggestions; don't know that this will work, and I'm no expert, but...

First, make sure you're not making the same mistake I (apparently) did. Make sure you download the correct version of the plugin for the version of Pixelpost that you're using. In my case, I'm running v.1.3, but installed the plugin for version 1.4. I'm not really sure what the difference is, if any, between the two versions of the plugin (didn't have time to compare the code), but using the 1.3 version plugin for my PP v.1.3 installation seemed to do the trick.

Second, re:

I edited the the latest_pblog_plugin with the following settings.
// 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.jnetty.com/photoblog/";

Try closing up the space in the variables, e.g., instead of:

$PixelPost_local_address = "../photoblog/";


... use this:


$PixelPost_local_address="../photoblog/";

and this:

$PixelPost_URL="http://www.jnetty.com/photoblog/";



(Note that I closed up the space _after_ the equal signs as well.) Again, I'm not sure if the space matters or not (wish I knew more about PHP) but doing this combined with the other steps here worked for me.

Also re:

<?php show_latest_pixelpost_thumbnail() ?>
I also tried the following style instead
<?php show_latest_pixelpost_thumbnail(); ?>

... I _think_ the second version is the one to use. I'm no PHP programmer, but I think maybe the first version is incorrect syntax.

Hope that helps.

steve

raminia
04-06-2005, 04:58 AM
Oh it didn't notify me on this thread for a while!
I'll check this later today and try to help.

raminia
04-06-2005, 05:06 AM
Hi Rami,

Just installed your plugin, its working like a charm...
Just one problem, I have also followed the procedures for the time shift Hack mentioned in this post:

http://www.pixelpost.org/forum/viewtopic.php?t=363

This is because I am from India, while my hosting is in US and I have a +13.5 hrs of time shift. After applying that patch, I cant see the latest thumbnail any more... :roll: :roll: All I can see is the last thumbnail I used to see before I applied it the patch!

So if you have time, can you tell me what changes I have to make so that I
can get the latest thumbnail thing working back again ??

Many thanx in advance
-flashmage

MY url for your viewing:
http://www.abhishekthakkar.com (showing a crab photo now)

my photoblog
http://www.abhishekthakkar.com/flavours/ (the latest is some other snap)
YEs! there is a problem with time zone that I didn't realized. in few days there will be Pixelpost v1.4 with its time zone format (fully reliable) and I will change the plugin for it and not for this modification.

jnetty99
04-06-2005, 03:30 PM
A few suggestions; don't know that this will work, and I'm no expert, but...

First, make sure you're not making the same mistake I (apparently) did. Make sure you download the correct version of the plugin for the version of Pixelpost that you're using. In my case, I'm running v.1.3, but installed the plugin for version 1.4. I'm not really sure what the difference is, if any, between the two versions of the plugin (didn't have time to compare the code), but using the 1.3 version plugin for my PP v.1.3 installation seemed to do the trick.



thanks for the help Helios.
I closed the space between the variables and that didnt help. I still think that i might have the path to photoblog wrong.
i tried the following
"../photoblog/"
"/photoblog/"
"/public_html/photoblog/"

none helped
I put the second variation of the code to put in side bar and nothing shows up in my wordpress blog. If i put a name for that section like photoblog that does show up but nothing below it.

jnetty99
04-11-2005, 02:47 PM
I finally fixed my problem using the plugin to view latest picture in wordpress.

Like i said before it was a user error, on my part.

The relative path that needs to be put in the plug in was wrong and maybe it still is wrong but anyways it works at the moment. i used the absolute path that is seen in the pixelpost blog addons section for backup.

My main website is located at www.name.com and my photoblog is on www.name.com/photoblog/ i used the following for the path.
/home/user/public_html/photoblog/

Then of course after that i added the following to my sidebar.php
<?php show_latest_pixelpost_thumbnail(); ?>

After that it's working.

raminia
04-11-2005, 06:10 PM
I'm glad that the problem is fixed:)

Anonymous
04-15-2005, 08:39 PM
I finally fixed my problem using the plugin to view latest picture in wordpress.

{snip}

i used the following for the path.
/home/user/public_html/photoblog/


Posting how you fixed the problem gave me the advice to solve what was wrong in my installation and get this great little plug-in working. Thanks again.

PS Thanks raminia for writing it :D

shaghaghi
04-30-2005, 12:34 AM
I'm trying to get this working for me too. So far nothing. If I get it to work I will let everyone know how I did it.

Running WP 1.5 and Pix 1.4.1

ArchY
04-30-2005, 06:21 AM
it works on my website ( http://www.archy.net ) I use wordpress1.5 and pixelpost 1.4.1 I have just change the dir of pixelpost.php

jnetty99
05-11-2005, 08:53 PM
it works on my website ( http://www.archy.net ) I use wordpress1.5 and pixelpost 1.4.1 I have just change the dir of pixelpost.php

Yeah to all, all you have to do to make it work with Pixelpost 1.4.1 is to change the directory from admin/pixelpost.php to includes/pixelpost.php

raminia
05-11-2005, 11:14 PM
there is a special version of the addon on my website for PP version 1.4.x with this change path of pixelpost.php file.

posefius
05-23-2005, 09:01 PM
there is a special version of the addon on my website for PP version 1.4.x with this change path of pixelpost.php file.

Is it possible to integrate the Pixelpost show image template into a Wordpress page? The plugin is working fine but only shows the latest thumbnail.

withoutwindows
05-23-2005, 10:52 PM
Hi, my plugin is configured in this way

// 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://withoutwindows.altervista.org/photoblog/";

I put the tag in my sidebar, and now it look somehow like this

<!-- ##### Right Sidebar ##### -->

<div class="rightSideBar">
<?php show_latest_pixelpost_thumbnail(); ?>

But it doesn't work. I tried all the things that i read in this 3d but it doesn't work

raminia
05-24-2005, 05:35 PM
showing latest photo on wordpress means to show use wordpress but see pixelpost!!! why ?!

if you use frames you can call external url through HTML.

raminia
05-24-2005, 05:46 PM
@withoutwindows

instead of

$PixelPost_local_address = "../photoblog/";

use
$PixelPost_local_address = "photoblog/";
or
$PixelPost_local_address = "./photoblog/";
or something like this;)
$PixelPost_local_address = "/photoblog/";

one of these will work

netwalker
05-25-2005, 04:09 AM
I have tried everything explained here, but I still can't get the plugin to work.

My blog it's in www.fandino.net/cesar and the photoblog is in www.fandino.net/blog

So I tried /html/blog/, ../blog/, ./blog/, /blog/, and nothing.

I put the code after the search, but it breaks the rest of the template. The code it's <?php show_latest_pixelpost_thumbnail(); ?>

If I disable the plugin I can see the template complete.

I'm using Wordpress 1.5 and Pixelpost 1.4.1

raminia
05-25-2005, 05:17 AM
The path is fine to me.
1) do you use the latest version of the plugin for pp 1.4?
2) if you have still problems, use this Pixelpost's addon instead of WP plugin
http://www.pixelpost.org/forum/viewtopic.php?t=1115

shaghaghi
05-25-2005, 06:17 PM
I was finally able to get the plugin working for using the following path setup:

/home/username/public_html/

where you would change username to whatever your username is.

er16004
06-21-2005, 03:41 PM
I'm aving trouble getting this working. I probably wouldn't if I have my blog(s) (both pp 1.4 & wp 1.5) on the same domain. I don't. So, it would seem I have no use for the 'local address' in 'latest_pblog_lugin.php'. What should my settings be? I obviously have the $PixelPost_URL set to my PP site, but my WordPress site is elsewhere.

raminia
06-21-2005, 07:21 PM
if so, u use the html version (no php)
http://www.pixelpost.org/v1/index.php?x=downloads&details=80

er16004
06-21-2005, 07:48 PM
Thanks for the quick reply, Ramin. This doesn't exactly work for me either: http://www.ericrasch.com/index.php?showthumb=latest&thumbtag=image

Am I missing something here?

FarmGrrl
07-27-2006, 05:47 PM
Hi Raminia!

Excellent plug-in. I have implemented a photo-badge with it at http://www.three-elms.com/soap/. Now, I have a feature request. Is there way to disallow certain categories from showing up in the random photos? If you would just have a line of comma-separated categories to exclude, it should be pretty easy to put "NOT" clauses in your SQL query. What do you think? This would be nice for people who put ALL of their images in their gallery, not just the artsy ones.

flawijn
08-05-2006, 12:46 PM
too bad, but i only spotted this topic rightnow. Just wanted to let you all know that PP can be installed into WP's database.... with this result : FLAWIJN.PIX (http://www.flawijn.be/pix/index.php), which is build into this (Flemish) blog: FLAWIJN (http://www.flawijn.be/).
It's roughly done like described somewhere in this article.

Now i'm trying to get a sort of web-gallery with thumbs and slidesshow into my blog-pages WITH same look as blog and photoblog.... if anyone has any suggestions??? feel free to drop a line!!

hismuse
10-22-2006, 01:34 PM
I cannot get this plugin to work for me, if you look at my main blog here:

http://roadlessunraveled.com

You can see it's not showing up and I'm not sure what I did wrong.

/* 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/"
// and you photoblog is placed at
// "/public_html/photo/"
// the relative address will be:
// "../photo/"
//
// Don't forget the tailing slash '/'
//
$PixelPost_local_address = "../photo/";


// 2)
// URL address of the Pixelpost photoblog (do not miss the trailing "/" )
$PixelPost_URL = "http://roadlessunraveled.com/photo/";




// 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 = "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_local_address;
}

// save the address of the pixelpost database settings
$pixelpost_settings_address = $PixelPost_local_address ."includes/pixelpost.php";

ricjoe
10-28-2006, 02:44 AM
I love your script installed with no problems but! I know nothing about php, css ect. How would I go about setting the pictures with a bit of a space between them? right now there back to back on my side bar http://www.ricjoe.com. And if not asking to much how hard would it be to put borders around the image?

Thank you again for the script :).