![]() |
Photopost photos in CMS widget
1 Attachment(s)
Widget for Photopost
This is a simple way to get your Photopost 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 2: Create a PHP Direct Execution widget using this code. Alter the require_once path if needed Code:
ob_start(); 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 post might show you how to exclude categories
https://vborg.vbsupport.ru/showpost....6&postcount=62 |
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
|
I ALSO TRY BUT nothing show up .. path = url ?
|
require_once './gallery/inc_latest.php';
need to change ? to path or url ? |
Anyone get this to work?
|
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. Code:
<?php next, you have to reference the file you've created in the widget... Code:
ob_start(); Hope this helps! |
|
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. |
Quote:
|
All times are GMT. The time now is 09:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|