| Author |
Message |
Schmitt
Beginner


Joined: Jan 09, 2006 Posts: 7
|
Posted: Wed Jan 18, 2006 8:57 am Post subject: Empty Random Block |
|
|
Hi,
I have integrated Gallery2 with phpnuke 7.6 and it works great but i have been trying to create a nuke block on the r/hand side of my homepage to display a random image from the gallery. Can anyone give me a suggestion as to where to start. I have tried creating a block in the adminstration section of my nuke site and inputting the data suggested in Gallery2,Blocks ,Image block
(<?php @readfile('http://xxxxxxxxxx/modules/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>
but it always come up empty.
Am i missing something obvious ?
Thanks in advance
----
Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.53 (Fedora)
Database = mysql 3.23.58
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Gd, Thumbnail
Operating system = Linux localhost.localdomain 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1) |
|
| Back to top |
|
|
AdBot
|
| Post subject: Empty Random Block |
|
|
|
|
|
| Back to top |
|
 |
tripwire
Beginner


Joined: Sep 27, 2005 Posts: 9
|
Posted: Wed Jan 18, 2006 12:19 pm Post subject: Re: Empty Random Block |
|
|
| Why not just use the g2 image block that comes with the integration package? |
|
| Back to top |
|
|
Schmitt
Beginner


Joined: Jan 09, 2006 Posts: 7
|
Posted: Wed Jan 18, 2006 1:01 pm Post subject: Re: Empty Random Block |
|
|
When i first installed i tried the supplied blocks and all it showed was the gallery2 menu randomly thrown onto the right hand side. It wasn't placed inside a block at all.
I have just reinstated it ( after doing a HTTPD restart and now the block gets presented correctly but it displays the following text:- "The Gallery2 sidebar is enabled.
You should disable it before using this block."
Even though the sidebar block is disabled
Any Ideas ? |
|
| Back to top |
|
|
Schmitt
Beginner


Joined: Jan 09, 2006 Posts: 7
|
Posted: Sun Jan 22, 2006 3:59 am Post subject: Re: Empty Random Block |
|
|
Quote: › I have just reinstated it ( after doing a HTTPD restart and now the block gets presented correctly but it displays the following text:- "The Gallery2 sidebar is enabled.
You should disable it before using this block."
I found the tick box in the configuration screen was ticked for the sidebar, which was causing my problem. I now have a random image showing in the r/hand side of my homepage but it doesn't fit into the block. I need the photo to auto resize to fit the block.
Anyone know if this is possible ? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
Schmitt
Beginner


Joined: Jan 09, 2006 Posts: 7
|
Posted: Wed Jan 25, 2006 6:55 am Post subject: Re: Empty Random Block |
|
|
ok thanks Dari,
I haven't had achance to try it yet (work getting in the way) but i'll let you know how i get on.
Thanks for all the great work you do on here, your support is second to none and greatly appreciated.
Schmitt |
|
| Back to top |
|
|
|
|
|
|
|