Home
Scripts
Contributions (Pro Mod Access)
FAQ's
Downloads
Support Forum
  SnailSource.com [Logo]
Calendar LiteCalendar Lite (Demo)
Calendar ProCalendar Pro (Demo)
LinksLinks Pro (Demo)
Log in to check your private messagesForum
RegisterRegister
Log inLog in
Log in to check your private messagesLog in to check your private messages SearchSearch FAQFAQ ProfileProfile MemberlistMemberlist UsergroupsUsergroups Join GroupsJoin Groups

Random Photo Block?
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
 
Post new topic   Reply to topic   printer-friendly view    SnailSource.com Forum Index -> Gallery->phpBB2 Integration Support printer-friendly view
View previous topic :: View next topic  
Author Message
equalsp



Joined: 25 Sep 2004
Posts: 2



Hlp* 0.10
PostPosted: Sun Nov 07, 2004 10:58 am    Post subject: Reply with quote Direct link

hi, anyone know how to show more than one photo in the random block?
thanks!
Back to top
View user's profile Send private message
khsjr1970



Joined: 23 Aug 2005
Posts: 2



Hlp* 7.00
PostPosted: Wed Aug 24, 2005 7:58 am    Post subject: Reply with quote Direct link

call random_block.php twice ?

there is a featured photo block found here http://www.beckettmw.com/downloads/featured-photo/

and a more enhanced version of random block found here
http://www.barca-hall.com/gallery-block-random.html


They both should be able to be adapted much the same fashion as the ones already being used in this thread.
Back to top
View user's profile Send private message
Iced Coffee



Joined: 01 Jun 2006
Posts: 5



Hlp* 14.00
PostPosted: Thu Jun 01, 2006 11:35 am    Post subject: Re: Random Photo Block? Reply with quote Direct link

spectre wrote:
Has anyone made a random photo block for the front page of their website? I saw one in the contributions sections of the gallery site but it's for nuke/postnuke. Could it be modified for phpBB2?


I myself created one manually with html, and it's just very easy and no need to integrate phpbb and gallery database and anything.

Just make a php file called block1.php and copy the code to call random or latest pix for a php page out of gallery (can be found in control panel of gallery), in my case the contents of the file is:

Quote:
<?echo?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AAA</title>
<link rel="stylesheet" href="http://www.novemberbabies.com/gallery/main.php?g2_controller=imageblock.ExternalCSS"/>
</head>

<body bgcolor="#FFCCCC">
<div align="center">
<marquee id="scroll_pics" behavior="scroll" direction="up" height="300" scrolldelay="100" scrollamount="2">
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td class="row1" width="{S_COL_WIDTH}" align="center">
<?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=recentImage|recentImage|recentImage|recentImage|recentImage|recentImage|recentImage|recentImage&g2_linkTarget=_top'); ?>
</td>
</tr>
</marquee>
</div>
</body>

</html>


or

Quote:
<?echo?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AAA</title>
<link rel="stylesheet" href="http://www.novemberbabies.com/gallery/main.php?g2_controller=imageblock.ExternalCSS"/>
</head>

<body bgcolor="#FFCCCC">
<div align="center">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td><?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_linkTarget=_top'); ?></td>
<td><?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_linkTarget=_top'); ?></td>
<td><?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_linkTarget=_top'); ?></td>
<td><?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_linkTarget=_top'); ?></td>
<td><?php @readfile('http://www.novemberbabies.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_linkTarget=_top'); ?></td>
</tr>
</div>
</table>
</body>

</html>


then I make different iframes in any page of phpbb and call those block.php to those iframes. You can find the results here:
http://novemberbabies.com/

One block for 5 random pics, and the other for 8 latest pix. I used the above code for the blocks php file.

Hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    SnailSource.com Forum Index -> Gallery->phpBB2 Integration Support All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Page 9 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

This board is protected by Phpbbantispam
Board Security

15557 Attacks blocked

Powered by phpBB © 2001, 2005 phpBB Group