random block for IMportal?

etaine

Joined: 2004-07-21
Posts: 3
Posted: Thu, 2004-08-12 11:47

i was wondering if anyone knew how i would make the included random block an IMportal block. I have a phpbb site that i am using your gallery on and have it integrated properly and all my users love it. I would love to have a block on my portal page though like with the normal phpbb album mod.(i hate that album though)
anyone know?
Tia
A newest image block would be really nice too

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Thu, 2004-08-12 12:55

Try it. There's no mention of it officially working while embedded in phpBB here, but mine works fine. I had to include an absolute path to the forum URL in the img and href tags though.

 
etaine

Joined: 2004-07-21
Posts: 3
Posted: Thu, 2004-08-12 12:59

the problem is..... I dont know how :( I dont know where to start. like i said, im new to portals. Ive only done phpbb boards

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Thu, 2004-08-12 14:50

Start by trying to include it on a PHP page on your site using this code:

<? 
include ("http://urlforyourforums.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php"); 
?>

The above example is using the path for a phpBB-embedded Gallery. In order for mine to work I needed to make the following changes to block-random.php:

# Gallery Random Block Mod for AlpineZone phpBB
#-----[ OPEN ]------------------------------------------------
#
modules/gallery/block-random.php

#
#-----[ FIND ]------------------------------------------------
#
		. "<center><a href=" . makeAlbumUrl($album->fields["name"], $id) . ">"

#
#-----[ REPLACE WITH ]------------------------------------------
#

		. "<center><a href=http://urlforyourforums.com/" . makeAlbumUrl($album->fields["name"], $id) . ">"

#
#-----[ FIND ]------------------------------------------------
#
		."<a href=" .makeAlbumUrl($album->fields["name"]) .">"

#
#-----[ REPLACE WITH ]------------------------------------------
#

		."<a href=http://urlforyourforums.com/" .makeAlbumUrl($album->fields["name"]) .">"

Hope this gives you some hints. I don't know how to do it with the portal you're using specifically...