Back to vBulletin 4.x Add-ons

Photopost photos in CMS widget
Mod Version: 1.00, by Wild Bronco

vB Version: 4.0.3 Rating: (0 vote - 0 average) Installs: 8
Released: 12 Apr 2010 Last Update: Never Downloads: 0
Not Supported Additional Files External Content  

Widget for Photopost

This is a simple way to get your 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
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
Code:
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

Download

No files for download.

Screenshots

Click image for larger version
Name:	Photpost_widget.jpg
Views:	952
Size:	18.4 KB
ID:	115689  

Similar Mods

vBulletin CMS Widgets 3x CMS widget : Widget with 3 tabs, like on Blogs page. vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024