Bestaat er nets zo iets als "topics anywhere" maar dan voor het foto-album van Smartor?
Ik wil de meest recente foto-post op m'n HTML portal laten zien, eventueel incl. omschrijving.
Heb al op phpbbhacks gekeken, maar niet gevonden....
Iemand?
Jeroen
Photo Album en HTML ?
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Photo Album en HTML ?
Laatst gewijzigd door ivibes op 23 sep 2004, 14:12, 1 keer totaal gewijzigd.
Nou ik heb het volgende gevonden:
Code:
##############################################################
## MOD Title: Latest pics on any page
## for Photo Album Addon v2 for phpBB2
## MOD Author: I'm not admitting to writing this one either.
## MOD Description:
##
## Show latest pics on any page you like including non php.
##
## Tested with: phpBB 2.0.8 - PHP4.3.3
## MySQL 3.23.x and Smartor's Photo Album Addon v2 for phpBB2
##
## MOD Version:
##
## Installation Level: easy
## Installation Time: 2 minutes
##
## Files To Edit: 2
## album_thumbnail.php
## album_pic.php
##
###############################################################
## Before Adding This MOD To Your Photo Album,
## You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]-------------------------------------------------------
#
album_pic.php
#
#-----[ FIND ]----------------------------------------
#
//
// Get general album information
//
include($album_root_path . 'album_common.'.$phpEx);
#
#-----[ AFTER ADD ]----------------------------------------
#
//
// Latest pic mod by Nuffmon 13-12-2003
//
if( $HTTP_GET_VARS['pic_id'] == "latest" )
{
if( $HTTP_GET_VARS['offset'] < 1 ) $HTTP_GET_VARS['offset'] = 0;
$sql = "SELECT p.*
FROM ". ALBUM_TABLE ." AS p
WHERE pic_approval = 1 AND pic_lock = 0 AND pic_cat_id <> 0
ORDER BY pic_time DESC
LIMIT " . $HTTP_GET_VARS['offset'] . ",1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}
$thispic = $db->sql_fetchrow($result);
$HTTP_GET_VARS['pic_id'] = $thispic['pic_id'];
}
#
#-----[ OPEN ]-------------------------------------------------------
#
album_thumbnail.php
#
#-----[ FIND ]----------------------------------------
#
//
// Get general album information
//
include($album_root_path . 'album_common.'.$phpEx);
#
#-----[ AFTER ADD ]----------------------------------------
#
//
// Latest pic mod by Nuffmon 13-12-2003
//
if( $HTTP_GET_VARS['pic_id'] == "latest" )
{
if( $HTTP_GET_VARS['offset'] < 1 ) $HTTP_GET_VARS['offset'] = 0;
$sql = "SELECT p.*
FROM ". ALBUM_TABLE ." AS p
WHERE pic_approval = 1 AND pic_lock = 0 AND pic_cat_id <> 0
ORDER BY pic_time DESC
LIMIT " . $HTTP_GET_VARS['offset'] . ",1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}
$thispic = $db->sql_fetchrow($result);
$HTTP_GET_VARS['pic_id'] = $thispic['pic_id'];
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#
Dit werkt goed, ook op een html pagina,
en ik gebruik daarbij dit om de thumbnail aan te roepen:
<a href="http://www.mijnsite.nl/phpBB2/album_pic ... et=0"><img src="http://www.mijnsite.nl/phpBB2/album_thu ... set=0"></a>
Iemand een ideetje hoe ik ook de beschrijving van de foto krijg?
En eventueel de "alt" text en de gebruikersnaam van de poster?
Jeroen
Code:
##############################################################
## MOD Title: Latest pics on any page
## for Photo Album Addon v2 for phpBB2
## MOD Author: I'm not admitting to writing this one either.
## MOD Description:
##
## Show latest pics on any page you like including non php.
##
## Tested with: phpBB 2.0.8 - PHP4.3.3
## MySQL 3.23.x and Smartor's Photo Album Addon v2 for phpBB2
##
## MOD Version:
##
## Installation Level: easy
## Installation Time: 2 minutes
##
## Files To Edit: 2
## album_thumbnail.php
## album_pic.php
##
###############################################################
## Before Adding This MOD To Your Photo Album,
## You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]-------------------------------------------------------
#
album_pic.php
#
#-----[ FIND ]----------------------------------------
#
//
// Get general album information
//
include($album_root_path . 'album_common.'.$phpEx);
#
#-----[ AFTER ADD ]----------------------------------------
#
//
// Latest pic mod by Nuffmon 13-12-2003
//
if( $HTTP_GET_VARS['pic_id'] == "latest" )
{
if( $HTTP_GET_VARS['offset'] < 1 ) $HTTP_GET_VARS['offset'] = 0;
$sql = "SELECT p.*
FROM ". ALBUM_TABLE ." AS p
WHERE pic_approval = 1 AND pic_lock = 0 AND pic_cat_id <> 0
ORDER BY pic_time DESC
LIMIT " . $HTTP_GET_VARS['offset'] . ",1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}
$thispic = $db->sql_fetchrow($result);
$HTTP_GET_VARS['pic_id'] = $thispic['pic_id'];
}
#
#-----[ OPEN ]-------------------------------------------------------
#
album_thumbnail.php
#
#-----[ FIND ]----------------------------------------
#
//
// Get general album information
//
include($album_root_path . 'album_common.'.$phpEx);
#
#-----[ AFTER ADD ]----------------------------------------
#
//
// Latest pic mod by Nuffmon 13-12-2003
//
if( $HTTP_GET_VARS['pic_id'] == "latest" )
{
if( $HTTP_GET_VARS['offset'] < 1 ) $HTTP_GET_VARS['offset'] = 0;
$sql = "SELECT p.*
FROM ". ALBUM_TABLE ." AS p
WHERE pic_approval = 1 AND pic_lock = 0 AND pic_cat_id <> 0
ORDER BY pic_time DESC
LIMIT " . $HTTP_GET_VARS['offset'] . ",1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}
$thispic = $db->sql_fetchrow($result);
$HTTP_GET_VARS['pic_id'] = $thispic['pic_id'];
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#
Dit werkt goed, ook op een html pagina,
en ik gebruik daarbij dit om de thumbnail aan te roepen:
<a href="http://www.mijnsite.nl/phpBB2/album_pic ... et=0"><img src="http://www.mijnsite.nl/phpBB2/album_thu ... set=0"></a>
Iemand een ideetje hoe ik ook de beschrijving van de foto krijg?
En eventueel de "alt" text en de gebruikersnaam van de poster?
Jeroen