[HTMLBlock / Siriux] Problem displaying Blocks in FrontPage.tpl

mrheat

Joined: 2009-02-11
Posts: 5
Posted: Wed, 2009-02-11 16:14

Hi

i have a Problem using HTMLBlock.

I created FrontPage.tpl, tested by accessing the empty file at /files/FrontPage.tpl works it displays the header.

but whenever i insert the command like:

{g->block type="imageblock.ImageBlock" blocks="randomAlbum|randomImage" showDate=0 showOwner=1 showViews=1 showTitle=1 showHeading=0 useDefaults=0}

i get an

Error (ERROR_BAD_PARAMETER) : Smarty error: The template 'modules/core/templates/blocks/Missing.tpl' does not exist.

* in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
* in modules/core/classes/GalleryTemplate.class at line 442 (GallerySmarty::trigger_error)
* in ??? at line 0 (GalleryTemplate::resourceGetTemplate)
* in lib/smarty/Smarty.class.php at line 1559
* in lib/smarty/Smarty.class.php at line 1414 (Smarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1866 (Smarty::_compile_resource)
* in modules/core/classes/GalleryTemplateAdapter.class at line 983 (Smarty::_smarty_include)
* in g2data/smarty/templates_c/%%937797178/siriux/%%3F^3FC^3FCAEC37%%FrontPage.tpl.php at line 3 (GalleryTemplateAdapter::block)
* in lib/smarty/Smarty.class.php at line 1262
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 219 (GallerySmarty::fetch)
* in modules/htmlblock/RenderFile.inc at line 88 (GalleryTemplate::fetch)
* in modules/core/classes/GalleryView.class at line 293 (RenderFileView::loadTemplate)
* in main.php at line 465 (GalleryView::doLoadTemplate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.5 apache2handler
Webserver Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.10.0
Database mysqli 4.1.11-Debian_4sarge8-log
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux openemm.schlagmann.info 2.6.9-023stab048.5-smp #1 SMP Wed Aug 20 18:58:38 MSD 2008 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6 "

but when i write

{php}
@readfile('http://gallery.schlagmann.info/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none&g2_exactSize=640');
{/php}

into FrontPage.tpl it displays an Image.

What i am doing wrong?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-02-12 22:46

with G2.3 the module does not function with blocks as there was some changes in the design on G2.3.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrheat

Joined: 2009-02-11
Posts: 5
Posted: Fri, 2009-02-13 11:47

how can i fix it?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-02-13 14:09

Use your workaround:

Quote:
but when i write

{php}
@readfile('http://gallery.schlagmann.info/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none&g2_exactSize=640');
{/php}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sara1989
sara1989's picture

Joined: 2010-04-13
Posts: 2
Posted: Tue, 2010-04-13 14:36

Hello
I installed my HTMLBlock
But ..
In the HTMLBlock block does not exist.
Please help me
HTMLBlock.. I very much need

2.3
[img]http://www.freezpic.com/pics/90c804d590fa33bf188ee58edb51359d.gif[/img]

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2010-04-13 17:43

Show/Render a file in a block

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sara1989
sara1989's picture

Joined: 2010-04-13
Posts: 2
Posted: Thu, 2010-04-15 09:35

thanks floridave