Wild Bronco
04-11-2010, 10:00 PM
Widget for Photopost
This is a simple way to get your Photopost (http://www.photopost.com) photos in a CMS widget by using the inc_features.php that comes with Photopost.
I can not give any advice or support for this code.
It is verry simple so I advice you to try it.
I hope this works for you.
1: In your Photopost dir make a new php file with this code
<?php
include "Full path to your /gallery/inc_features.php";
echo "$photopostfeature" ;
?>
My setup is D:/vB4dir/gallery/inc_features.php
2: Create a PHP Direct Execution widget using this code. Alter the require_once path if needed
ob_start();
echo '<div>';
echo '<center>';
require_once './gallery/inc_latest.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();
Setting you can edit in inc_features
* Number of photos to display
* Number of columns (1 for vertical)
* which type of images do you want to show (random, most_view, latest)
* translate the words "comments, photos, by, Featured Photos"
And...
If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database! in inc_features.php
This is a simple way to get your Photopost (http://www.photopost.com) photos in a CMS widget by using the inc_features.php that comes with Photopost.
I can not give any advice or support for this code.
It is verry simple so I advice you to try it.
I hope this works for you.
1: In your Photopost dir make a new php file with this code
<?php
include "Full path to your /gallery/inc_features.php";
echo "$photopostfeature" ;
?>
My setup is D:/vB4dir/gallery/inc_features.php
2: Create a PHP Direct Execution widget using this code. Alter the require_once path if needed
ob_start();
echo '<div>';
echo '<center>';
require_once './gallery/inc_latest.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();
Setting you can edit in inc_features
* Number of photos to display
* Number of columns (1 for vertical)
* which type of images do you want to show (random, most_view, latest)
* translate the words "comments, photos, by, Featured Photos"
And...
If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database! in inc_features.php