vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Photopost photos in CMS widget (https://vborg.vbsupport.ru/showthread.php?t=240304)

Wild Bronco 04-11-2010 10:00 PM

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
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

Wild Bronco 04-12-2010 10:45 PM

This post might show you how to exclude categories

https://vborg.vbsupport.ru/showpost....6&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.

Code:

<?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...
Code:

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 its for a paid addon Photopost , 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

Quote:

Originally Posted by morrow (Post 2090035)
***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


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
  • Page Generation 0.01382 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete