Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Photopost photos in CMS widget Details »»
Photopost photos in CMS widget
Version: 1.00, by Wild Bronco Wild Bronco is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.3 Rating:
Released: 04-11-2010 Last Update: Never Installs: 8
Additional Files  
No support by the author.

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

Screenshots

File Type: jpg Photpost_widget.jpg (18.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-12-2010, 10:45 PM
Wild Bronco Wild Bronco is offline
 
Join Date: Jan 2005
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This post might show you how to exclude categories

https://vborg.vbsupport.ru/showpost....6&postcount=62
Reply With Quote
  #3  
Old 04-17-2010, 05:34 AM
antboy antboy is offline
 
Join Date: Oct 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-25-2010, 05:01 AM
hendri's Avatar
hendri hendri is offline
 
Join Date: Dec 2004
Location: Jakarta, Indonesia
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ALSO TRY BUT nothing show up .. path = url ?
Reply With Quote
  #5  
Old 07-25-2010, 05:01 AM
hendri's Avatar
hendri hendri is offline
 
Join Date: Dec 2004
Location: Jakarta, Indonesia
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

require_once './gallery/inc_latest.php';

need to change ? to path or url ?
Reply With Quote
  #6  
Old 08-22-2010, 08:13 PM
tattooz tattooz is offline
 
Join Date: Aug 2010
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone get this to work?
Reply With Quote
  #7  
Old 08-26-2010, 07:33 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 08-26-2010, 08:25 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 08-26-2010, 08:44 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-04-2010, 08:07 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by morrow View Post
***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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07171 seconds
  • Memory Usage 2,319KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete