External image blocks

stepler

Joined: 2008-07-10
Posts: 13
Posted: Thu, 2008-09-04 10:03

Hello,
I've got joomla 1.0.12 and Gallery 2.2.5 with bridge 2.0.14, PHP4.4.8

I want to have recent album outside my gallery but inside the hosting so that gallery is at
http://fireinside.ru/gallery2/
and I want the album button at the top of every page of the site (http://fireinside.ru)

I installed Image block plugin, uninstalled short urls and wrote the following in index.php in the folder where my template is located:
<div class="recalb"><?php @readfile('http://fireinside.ru/gallery2/main.php?g2_view=imageblock.External&g2_blocks=recentAlbum'); ?></div>

I also tried

<div class="recalb"><?php @readfile('http://fireinside.ru/gallery2/main.php?g2_view=imageblock.External&g2_blocks=recentAlbum&g2_show=title'); ?></div>
(show title)

No responce, the album is not shown anywhere. Do I get it right, that there will be the thumbnail of the album?

Great thanks in advance, as this is one of really few issues I've got to solve before running my site already.

P.S. sorry for possible mistakes in my english

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Thu, 2008-09-04 11:24
 
stepler

Joined: 2008-07-10
Posts: 13
Posted: Thu, 2008-09-04 11:37

sorry, but the whole site is passworded. I suppose you wanted to check if the url
http://fireinside.ru/gallery2/main.php?g2_view=imageblock.External&g2_blocks=recentAlbum&g2_show=title
is correct
I've just visited it, it is correct, it shows the thumbnail of the album on a blank page and opens the gallery in http://fireinside.ru/gallery2/

By the way, how do i redirect it to the album, but inside my site? I mean, I have "Gallery" in my menu which opens the gallery inside my joomla site template, and I want the image block to direct me there.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Thu, 2008-09-04 16:45
 
stepler

Joined: 2008-07-10
Posts: 13
Posted: Thu, 2008-09-04 17:07

ok i'll check readfile, but I understood nothing about the first part of ur comment.what did u mean by along these lines?
shall i replace "my_joomla_embedurl" with what? gallery2? it's what I did at first. I've just tried to replace "main" in the link to "index" like you wrote - nothing happened, thoug album is still opening when clicking at the url u wrote. Well, pal, do u mind if I ask you to look at the site? [i]I'll pm you with psswd and login, maybe it will clear sth for you.

Would be grateful if you looked what might be the problem

 
stepler

Joined: 2008-07-10
Posts: 13
Posted: Thu, 2008-09-04 17:11
Quote:
<?php
defined( '_VALID_MOS' ) or die( ' .' );
error_reporting( E_ERROR);
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head><?php mosShowHead(); ?> <?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta http-equiv="Content-Language" content="ru"/>
<link href="<?php echo $mosConfig_live_site;?>/templates/paranoia/css/template_css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="recalb"><?php @readfile('http://fireinside.ru/gallery2/index.php?g2_view=imageblock.External&g2_blocks=recentAlbum&g2_show=title'); ?></div>
<div class="topSEO"> Fire Inside </div><div class="leftcontent"><?php mosLoadModules ( 'left' ); ?></div>
<div class="rightcontent"><?php include ("mainbody.php"); ?>
</div>

<div><?php mosLoadModules( 'debug', -1 );?></div>
</body>

</html>

this is the piece of my index.php in joomla template code (I think only <body></body> will make sense)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Thu, 2008-09-04 19:10

Sorry, not familiar with joomla urls
isn't it something like:
mysite.com/index.php?option=com_gallery2&g2_view=imageblock.External&g2_blocks=recentAlbum&g2_show=title
or you show me the url to your gallery embedded in joomla

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
stepler

Joined: 2008-07-10
Posts: 13
Posted: Sat, 2008-09-06 10:09

suprsdir, how can I find out which is my url to gallery?

[i]I have in my joomla administration panel in gallery2 setting:

Gallery 2 Path
./gallery2/embed.php

Gallery 2 Url
http://fireinside.ru/gallery2/main.php

Login URL
/index.php?option=com_login

with this

Quote:
mysite.com/index.php?option=com_gallery2&g2_view=imageblock.External&g2_blocks=recentAlbum&g2_show=title

album is still not shown, though if i type it in the browser, i'll get blank page with album thumb wich leads to the album itself

sorry for misunderstanding, but I need to find out how to solve this

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2008-09-06 12:16

it seems readfile is indeed disabled on your server.
I have a flash based minislideshow available on mysite which may be a good alternative.

-s

FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
stepler

Joined: 2008-07-10
Posts: 13
Posted: Tue, 2008-09-09 17:58

I installed an image block module to g2-joomla bridge and everything seems to work perfectly now

thanks for help anyway!