PDA

View Full Version : vBulletin CMS Widgets - Photopost photos in CMS widget


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

Wild Bronco
04-12-2010, 10:45 PM
This post might show you how to exclude categories

https://vborg.vbsupport.ru/showpost.php?p=2001856&postcount=62

antboy
04-17-2010, 05:34 AM
Geiri - thats just what i need but when i set it up as per your instructions changing the path etc i get the following error - beautiful

hendri
07-25-2010, 05:01 AM
I ALSO TRY BUT nothing show up .. path = url ?

hendri
07-25-2010, 05:01 AM
require_once './gallery/inc_latest.php';

need to change ? to path or url ?

tattooz
08-22-2010, 08:13 PM
Anyone get this to work?

morrow
08-26-2010, 07:33 PM
The problem is that the "dev" says to create this file and pop it into your photopost directory. He never says what it's for or how to access it via the widget. He basically misses a step... No biggy.

So this is what you do...

Create the file as specified. I called mine test.php.

<?php
include "/home/myname/public_html/gallery/inc_features.php";

echo "$photopostfeature" ;
?>

I popped the test.php file into my photopost directory.

next, you have to reference the file you've created in the widget...
ob_start();
echo '<div>';
echo '<center>';
require_once '/home/myname/public_html/gallery/test.php;
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();

and that's it!

Hope this helps!

your24hourstore
08-26-2010, 08:25 PM
well not sure if it matters but even though the hack is free to access Photopost (http://www.photopost.com) its for a paid addon Photopost (http://www.photopost.com) , and as far as i know this section is for free addons only

morrow
08-26-2010, 08:44 PM
I don't think anyone is pimping Photopost. This is simply a tutorial on how to create a vBulletin widget to access another application. The standard vBulletin installation has links to CNN and Ytube videos which encourage you to purchase various music and whatever other advertising those video's and/or newsclips may display. So what's the big deal? I'm actually greatful for guys like Geiri for posting something like this. I wouldn't have figured it out myself. I did a search for it and found it here. Had it not been here, I'd be SOL.

Thanks

***Edit - There is actually a much better version of this in the photopost forum.

Videx
09-04-2010, 08:07 PM
***Edit - There is actually a much better version of this in the photopost forum.I can't find it. Do you have a link? TIA

stuartn
02-15-2011, 10:15 PM
Nope doesn't work for me either...