I believe this is possible, I have searched through just about all of the files, and I have tried may variations of code. However I have not been successful in my attempts. I am trying to extract the newest three thumbnails (uploads) from my /gallery/ to my site's homepage /index.php.
Can anyone help me out here? I am in dire need and I have spent countless hours trying to figure this out. I basically just want to make it possible on my homepage to show our user's latest 3 (descending vertically) submissions (also know as "Last Additions") on the homepage without having to go to the gallery itself to see them.
I tried to alter some code I already had but it failed... However it may help someone in helping me...
I think some of these may be what is needed on my index.php file in order to show the gallery thumbnails? Maybe not, maybe it's crap or maybe it's only partial data... I am sorry but I am still learning php, so a lot of this stuff in the Coppermine files I don't understand yet and I find it quite difficult to locate things that are defined.
<?php
// don't want any errors to be displayed...
error_reporting(0);
// This is a relative path to the web root.
$site_root_path = './';
// This path points to the directory where Coppermine is installed.
$phpbb_root_path = './gallery/';
define ('IN_PHPBB', true);
define('IN_SITE', true);
define('PAGE_TITLE', 'Garbagewars.com');
include_once( $phpbb_root_path . 'extension.inc' );
include_once( $phpbb_root_path . 'common.' . $phpEx );
include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx );
include_once( $phpbb_root_path . 'news_includes/common.' . $phpEx );
include_once( $phpbb_root_path . 'news_includes/posts.' . $phpEx );
//
// Start session data
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End
//
$news = phpbb_fetch_posts();
phpbb_disconnect();
?>