new version of gallery random block for postnuke

 joerg Joined: 2002-10-12 Posts: 77 Posted: Sun, 2002-10-13 14:23 Hi Folks, I updated my mod for PostNuke of Bharats random block. The new version 0.41 you can get here. The main enhancement is the possibility to resize the thumb which is displayed by the block. Joerg Joe Joined: 2002-06-23 Posts: 3 Posted: Fri, 2002-10-18 17:42 Did this correct the problem of inflating the user counts? ---edit--- Nevermind, I just tested it on my site and it works great! Good job. Brewskie Joined: 2002-10-01 Posts: 10 Posted: Wed, 2002-10-23 04:52 Joerg, It's not often I comment...really...But I have to say Well Done! And thanks for taking your time out to take over this as it is a great enhancement to gallery! Please don't stop! Brewskie TheWatcher Joined: 2002-08-21 Posts: 120 Posted: Thu, 2002-11-07 02:45 Great work man. tw flasher Joined: 2002-11-13 Posts: 33 Posted: Tue, 2002-11-19 08:37 It works great in my gallery, with postnuke, but there si a big problem, as long as the random block works my gallery does not work anymore displaying this error message : Quote: Fatal error: Cannot redeclare fs_copy() (previously declared in f:siteinternetinflightpicturemodulesGalleryplatformfs_win32.php:22) in f:siteinternetinflightpicturemodulesgalleryplatformfs_win32.php on line 22 IS there a solution to get them both working together ? CarpetBagger Joined: 2002-08-09 Posts: 49 Posted: Mon, 2002-12-02 20:23 I love the new RandomImage block! Works great in my PostNuke site. I didn't want the image to update everytime the page refreshed because some of my target users connect via 56k modems. To that end I modified the SRAND with the following code (pulled directly off the PHP.NET WWW site under the SRAND discussions.)
Code:
$tm = time();$today = mktime(0, 0, 0, (int)date("n", $tm), (int)date("j",$tm), (int)date("Y", $tm)); srand($today / pi());
This code should cause the image to change once a day rather than with each page refresh. xinca Joined: 2002-09-28 Posts: 86 Posted: Fri, 2002-12-13 12:00 joerg, The block works great. Just two issues specifically on my site. 1. I have two galleries running under the same Postnuke serving two different groups of members (because Gallery doesn't have group permission until G2). The two gallery directories are namely /gallery/ and /galleryI/ respetively. I first tried to run it on /galleryI/pnblocks/ with galleryI inserted on file, failed to find the block on "add block" page. Then I move /pnblocks/with file to /gallery/pnblocks/, it works well with links and photos of /galleryI/ (as the file is configured to get data from galleryI. So my question is how do I get both galleries to run your random block. 2. The "Permissions" system is still not working, on yours and all previous random block verisons. My junior members are blocked to see quite a lot of things including one of the two galleries. I am able to set group permissions to all other PN components as per my wish, only failing on this random block. Any idea why? Thank you for your attention. Running a site with over 3000 photos your block is essential for the site to be meaningful :smile: Chow scanreg Joined: 2003-01-12 Posts: 4 Posted: Sun, 2003-01-12 21:34 Hi Thanks for the RandomBlock. It's really nice! Is there a way to show 2 images instead of just 1? Many thanks, again. :smile: scanreg Joined: 2003-01-12 Posts: 4 Posted: Sat, 2003-01-18 04:26 bringing it to the top, anyone know how to have multiple random images? scanreg Joined: 2003-01-12 Posts: 4 Posted: Wed, 2003-01-29 16:32 same thing....flotation :smile: any way to display several random images? thanks :smile: james281 Joined: 2003-02-06 Posts: 1 Posted: Thu, 2003-02-06 16:26 i have this problem, hmm i wonder what did i do wrong? Warning: Invalid argument supplied for foreach() in /home/jamesinf/public_html/jamesinfo/modules/gallery/pnblocks/gallery_random.php on line 332 No photo chosen. ZeRoCoOl Joined: 2003-02-01 Posts: 1 Posted: Sun, 2003-02-09 19:47 :x dont want to turn Globlas ON ...... postnuke .723 Warning: extract() expects first argument to be an array in /var/www/html/modules/gallery/init.php on line 60 Warning: extract() expects first argument to be an array in /var/www/html/modules/gallery/init.php on line 61 Warning: extract() expects first argument to be an array in /var/www/html/modules/gallery/init.php on line 62 Warning: Invalid argument supplied for foreach() in /var/www/html/modules/gallery/init.php on line 64 i know that has to do with the register_globlas= on , but i dont want to turned it on. is theres anyway i can do it with globlas off...im running gallery 1.3.3 joerg Joined: 2002-10-12 Posts: 77 Posted: Mon, 2003-02-10 19:20 Hi, maybe this thread helps you out. http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=2624&6 As an alternative you can get the latest version of gallery from cvs. In that version this issue is fixed. Regards Jörg torminator Joined: 2002-11-28 Posts: 20 Posted: Sun, 2003-03-02 22:56 Is there a way to exclude some of the albums from the random block? bhupal Joined: 2003-02-23 Posts: 9 Posted: Sun, 2003-03-09 10:23 well, mine is not working .. it says Fatal error: Failed opening required 'modules/gallery/init.php' (include_path='') in /home/sites/site13/web/html/modules/Gallery/pnblocks/gallery_random.php on line 81 what do i do ?? IGNORE THIS, FINALLY GOT IT WORKING !! thanks trend setters, rdoell Joined: 2003-03-14 Posts: 8 Posted: Sun, 2003-03-16 18:59 Quote: well, mine is not working .. it says Fatal error: Failed opening required 'modules/gallery/init.php' (include_path='') in /home/sites/site13/web/html/modules/Gallery/pnblocks/gallery_random.php on line 81 what do i do ?? IGNORE THIS, FINALLY GOT IT WORKING !! thanks trend setters, Well what did you do to get it working with this error message?? (getting the same one) thx! Rob_- rdoell Joined: 2003-03-14 Posts: 8 Posted: Sun, 2003-03-16 19:44 trumped my problem.. ahh.. never mind above post (again) was missing a slash after "gallery" in the script. However. My new problem is that the page will not load, it just gets stuck on index.php when I go to my site with the block enabled. (page loads as a blank white page, no error message..) Any ideas as to what could fix this? thanks! Rob_- mhalbrook Joined: 2002-12-12 Posts: 10 Posted: Sun, 2003-04-20 00:28 Quote: Is there a way to exclude some of the albums from the random block? I'm looking @ the code right now for a way to do that. If I figure it out, I'll tell you what to do, or put up a new version of the block if i do it good enough. rbachl Joined: 2002-08-25 Posts: 15 Posted: Thu, 2003-04-24 22:31 I have fixed the following issues with the Gallery random block for Postnuke: 1) Only pictures are displayed which "everybody" is allowed to see. 2) The cache is correctly re-written whether you are logged in as admin or as regular user (previously "loggedin" was treated as "everybody" when the cache was re-written during the login time of an admin user) 3) The album highlights are no longer treated as separate pictures, only pictures inside albums are considered in the random selection. 4) The random selection is uniform random. Previously, pictures after hidden pictures and highlighted album pictures have been displayed more often. To get the modified block working immediately, you also have to delete the old cache file "block-random.cache" in the albums directory. The modified Gallery Random Block is for download at http://rbachl.homeip.net It works for me, no guarantee that it works in all environments, since I am a beginner with Postnuke, Gallery and PHP. It is also possible to instantiate the block several times at the same Website. I have not seen any problems with this. It would be really nice if somebody could add any fixes that may be required to have this block function together with the "last updated" block in Postnuke. -rainer Scorus Joined: 2003-04-29 Posts: 1 Posted: Tue, 2003-04-29 16:47 Getting an error: Quote: Warning: Invalid argument supplied for foreach() in /hsphere/local/home/golrusse/golrussen.com/modules/Gallery/pnblocks/gallery_random.php on line 335 Using Gallery 1.3.3 Php is the newest, and so is PostNuke. :smile: Blastercalm Joined: 2003-05-17 Posts: 15 Posted: Sat, 2003-05-17 14:38 mhalbrook wrote: Quote: Is there a way to exclude some of the albums from the random block? I'm looking @ the code right now for a way to do that. If I figure it out, I'll tell you what to do, or put up a new version of the block if i do it good enough. I'm really interested in this too, thanks to let me know if you find something (I am not a big PHP expert myself...) whodah Joined: 2003-05-17 Posts: 96 Posted: Sat, 2003-05-17 23:21 torminator wrote: Is there a way to exclude some of the albums from the random block? here's a crude way that works in both the original and modified version of random block. near the very bottom, you'll see the lines: if ($numPhotos > 0) {$cache[$name] =$numPhotos; } in function: scanAlbums simply surround this w/ statments to run this or not based on album name. for instance, i've done:  /* Who Dah? modified - added the next if statement to disclude */ /* certain albums that I don't want displayed in the random block. */ if ($name != "TAMugz" and$name != "TAarT" and $name != "HAoPLAN2001") { if ($numPhotos > 0) {$cache[$name] = $numPhotos;} }  this means that galleries named TAMugz, TAart, and HAoPLAN2001 will NOT be included in the random block cache file. and as i don't read this forum much, i'll just post the entire function so i don't 'leave ya hanging'. it's not the most elegant way, but it works, and maybe one of ya will make more of the knowledge: function scanAlbums() { global$cache; global $gallery;$cache = array(); $everybody =$gallery->userDB->getEverybody(); $albumDB = new AlbumDB(); foreach ($albumDB->albumList as $tmpAlbum) { if ($everybody->canReadAlbum($tmpAlbum)) {$seeHidden = $everybody->canWriteToAlbum($tmpAlbum); $numPhotos =$tmpAlbum->numPhotos($seeHidden);$name = $tmpAlbum->fields["name"]; /* Who Dah? modified - added the next if statement to disclude */ /* certain albums that I don't want displayed in the random block. */ if ($name != "TAMugz" and $name != "TAarT" and$name != "HAoPLAN2001") { if ($numPhotos > 0) {$cache[$name] =$numPhotos;} } } } }  conversly, if you ONLY wanted a couple albums to show, instead of saying: $name != "TAMugz"  you could say: $name == "TAMugz"  and then the cache file would ONLY contain pics from the gallery TAMugz. enjoy! Who Dah? www.whodah.com lovelacm Joined: 2003-05-10 Posts: 1 Posted: Sun, 2003-05-18 11:17 Anybody know how to grab & display the caption for the picture in the RandomBlock? That would be the icing on the cake! Thanks for the hard work on your block. I'm using it in a stand-alone website.. got out of the Nuke wars last year after the meltdown. Y'all have a great weekend! skyttegaard Joined: 2003-07-21 Posts: 14 Posted: Wed, 2003-07-23 19:55 Great work on this block - just what was missing to make Gallery perfect. Howeber, I've noted one problem with the block: It happens when the function chooseAlbum() in the gallery_random.php returns an album as $album that contains nested albums and the function choosePhoto($album) then gets a thumbnail as $index that refers to a nested album. The gallery_random block then shows the thumbnail for the nested album correctly but when the thumbnail is clicked in the gallery_random block, the link is invalid and returns the following error: Fatal error: Call to a member function on a non-object in /posnuke_dir/modules/gallery/view_photo.php on line 80 postnuke_dir is the path to my postnuke installation. Usually, clicking on the thumbnail would open the photo in the Gallery, but that doesn't work when the randomly picked thumbnail refers to a nested album. Jörg: I've posted this as a comment on your site also: http://www.holzapfel-online.de/modules.php?op=modload&name=News&file=article&sid=23&mode=thread&order=0&thold=0 But since it might be of general interest, I decided to leave a post here alse. I haven't been able to sort it out myself, since I couldn't find a way to determing if a thumbnail referred to a photo or a nested gallery (except for the leading Album: tag but that would be too nasty coding to check for that). Hope someone else can help. The gallery block is running on my site on http://www.skyttegaard.com/postnuke/index.php It may take a number of refreshes to make the block come up with a thumbnail from a nested album - when it happens, only the album line is shown below the picture and then the error occurs when clicking the picture - not the text link to the album. skyttegaard Joined: 2003-07-21 Posts: 14 Posted: Fri, 2003-07-25 05:25 rbachl wrote: I have fixed the following issues with the Gallery random block for Postnuke: 1) Only pictures are displayed which "everybody" is allowed to see. 2) The cache is correctly re-written whether you are logged in as admin or as regular user (previously "loggedin" was treated as "everybody" when the cache was re-written during the login time of an admin user) 3) The album highlights are no longer treated as separate pictures, only pictures inside albums are considered in the random selection. 4) The random selection is uniform random. Previously, pictures after hidden pictures and highlighted album pictures have been displayed more often. To get the modified block working immediately, you also have to delete the old cache file "block-random.cache" in the albums directory. The modified Gallery Random Block is for download at http://rbachl.homeip.net It works for me, no guarantee that it works in all environments, since I am a beginner with Postnuke, Gallery and PHP. It is also possible to instantiate the block several times at the same Website. I have not seen any problems with this. It would be really nice if somebody could add any fixes that may be required to have this block function together with the "last updated" block in Postnuke. -rainer Seems the download link is broken at http://rbachl.homeip.net - Does anyone have a copy of the mentioned version of random_block? I really have a problem with the third item in the list above. Morpheus Joined: 2003-08-19 Posts: 1 Posted: Tue, 2003-08-19 19:14 Hello i installed the block on my site unfortunatly says "No picture chosen" But there is no errors any suggestions. http://www.207th-infantry.com LGK Joined: 2003-08-31 Posts: 6 Posted: Sun, 2003-08-31 18:48 Looks like the random block does not work with the newest version v1.4-RC2 of Gallery. Any news on when there will be a fix? Till then I guess I'll go without rather than go back. Lawman-TRG Joined: 2003-09-02 Posts: 7 Posted: Thu, 2003-09-04 21:25 :roll: as per one of the last posts, this does not work with the 1.4 rc2 of Gallery. I installed it and get the following error: - Your Gallery configuration was created using the config wizard from an older version of Gallery. It is out of date. Please re-run the configuration wizard!In a shell do this: Unix with shell access % cd /path/to/your/gallery % sh ./configure.sh Unix with FTP access ftp> chmod 777 .htaccess ftp> chmod 777 config.php ftp> chmod 755 setup Windows C:\> cd \path\to\your\gallery C:\> configure.bat Then launch the configuration wizard If you experience problems, you should seek help on the Gallery Help Page The only way to cure this is to delete the block using ftp then go back to your blocks menu and delete it there. Any idea when this will work with the latest version of Gallery. AND Isn't it about time that the producers of Gallery produced a block that is included with each release - it would appear that this is a HUGE issue judging by the posts here. Rich :o beckett Joined: 2002-08-16 Posts: 3473 Posted: Sat, 2003-09-06 02:50 Lawman-TRG wrote: Any idea when this will work with the latest version of Gallery. Someone should contact Jörg... Lawman-TRG wrote: Isn't it about time that the producers of Gallery produced a block that is included with each release - it would appear that this is a HUGE issue judging by the posts here. We have plans to re-work the way Gallery saves album information that will make integrating random blocks, etc. simpler. However, we have many more features, etc. that are going to be worked on before this. It will be a little while before the random block ships with Gallery, but it *is* on the agenda. -Beckett ( ) grnjelloman Joined: 2003-01-06 Posts: 44 Posted: Tue, 2003-09-09 07:17 I have a version of Jorge's random block and it works fine with 1.4 RC 2. I will see if I can find a place to post it for download for others. The version number I am using is gallery_random.php.v 0.54b. (don't know how often he changes that etc..) PhilyFn Joined: 2003-10-07 Posts: 11 Posted: Tue, 2003-10-14 17:18 Check out this thread, it worked for me... http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=8923 mikel Joined: 2003-11-17 Posts: 4 Posted: Mon, 2003-11-17 09:15 I just upgraded 2 of my sites to 1.4.1 RC3: Quote: as per one of the last posts, this does not work with the 1.4 rc2 of Gallery. I installed it and get the following error: - Your Gallery configuration was created using the config wizard from an older version of Gallery. It is out of date. Please re-run the configuration wizard!In a shell do this: I have the exact same error using 1.4.1RC3 with the random block that I have. Had been working fine under 1.3.4 Quote: I have a version of Jorge's random block and it works fine with 1.4 RC 2. I will see if I can find a place to post it for download for others. The version number I am using is gallery_random.php.v 0.54b. (don't know how often he changes that etc..) Can I grab a copy of your version of the random block ? I'll be happy to put that block on one of my sites for downloading can email to: mike AT mikesjourneys DOT com Mike slimis Joined: 2003-07-23 Posts: 9 Posted: Sat, 2003-12-13 16:10 great job on the update.. I'm having a small problem however, after upgrading to 1.4.1 and uploading the new random block I get these errors on top of the photo: Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/httpd/vhosts/mine.org/httpdocs/home/modules/gallery/classes/database/mysql/Database.php on line 28 Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/httpd/vhosts/mine.org/httpdocs/home/modules/gallery/classes/database/mysql/Database.php on line 28 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/httpd/vhosts/mine.org/httpdocs/home/modules/gallery/classes/database/mysql/Database.php on line 29 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/httpd/vhosts/mine.org/httpdocs/home/modules/gallery/classes/database/mysql/Database.php on line 33 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/mine.org/httpdocs/home/modules/gallery/classes/database/mysql/Database.php on line 37 also the vote part dont work, I wonder if its related? TIA Warren Joined: 2002-07-24 Posts: 794 Posted: Mon, 2003-12-15 00:04 Sounds related to what you say you fixed according to the link. Do you have a top-ten block or multiple random blocks? What are you running for PostNuke? DavidBulman Joined: 2003-11-19 Posts: 18 Posted: Tue, 2003-12-16 16:48 Very strange problem. Loaded it up fine, went to activate the block and now get a "Gallery Needs Reconfiguration" message whenever I try to move between pages. I tried reconfiguring and securing, but to no avail. Any good ideas? jr1001 Joined: 2003-05-04 Posts: 13 Posted: Tue, 2003-12-16 18:03 The newest download on his site - listed as "latest source" works well. For PN users - the only error I could find is = Change line 62 to say "postnuke" instead of "nuke" Warren Joined: 2002-07-24 Posts: 794 Posted: Tue, 2003-12-16 18:09 DavidBulman, I am seeing more of this error in this forum. I have not experienced this issue either. So I ask what versions of Gallery, Nuke, and random are you using? jr1001 Joined: 2003-05-04 Posts: 13 Posted: Tue, 2003-12-16 18:17 I had the same issue as David with an older version of the random block. I deleted the old file - which immediately brough my site back up - and then to restore the random block - I downloaded the most current source file from Joerg. DavidBulman Joined: 2003-11-19 Posts: 18 Posted: Wed, 2003-12-17 18:22 Hi Thanks, have got the latest code from Juerg, and the block works, but shows a weird error message: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/bulmanp/public_html/envolution/modules/gallery/classes/database/mysql/Database.php on line 37 I've tried to go in and hack, but the PHP code isn't using a mysql_fetch_row arugument directly. Any ideas? DavidBulman Joined: 2003-11-19 Posts: 18 Posted: Wed, 2003-12-17 18:26 Even more bizzare, that error message only shows up if you're logged in. Warren Joined: 2002-07-24 Posts: 794 Posted: Wed, 2003-12-17 18:36 You haven't updated your gallery_random.php file. Change$GALLERY_EMBEDDED_INSIDE = "nuke"; to $GALLERY_EMBEDDED_INSIDE = "postnuke"; DavidBulman Joined: 2003-11-19 Posts: 18 Posted: Thu, 2003-12-18 17:53 Ahh, missed that :o Thanks, have done, and now don't get error message. Have another problem! Now when I click through to the gallery module, instead of staying within the centre frame it takes over the whole page. SeLoR1 Joined: 2003-12-19 Posts: 10 Posted: Sat, 2003-12-20 16:10 i have a bug too .. when i put the block on potnuke 0.726 the block say : Gallery needs Reconfiguration Your Gallery settings were configured with an older version of Gallery, and are out of date. Please re-run the Configuration Wizard! Here's how: like with the gallery in "configure mode " what is the problem ??? QuaziModem Joined: 2003-12-25 Posts: 4 Posted: Thu, 2003-12-25 19:00 I got the latest random image block but is it possible so that when someone clicks on the image, it opens it up within the postnuke theme and not open it up as a standalone gallery? Warren Joined: 2002-07-24 Posts: 794 Posted: Mon, 2003-12-29 19:48 QuaziModem, what is your site URL? Need to see/know how you installed your block and or Gallery. Warren Joined: 2002-07-24 Posts: 794 Posted: Mon, 2003-12-29 21:05 QuaziModem, thanks for the URL via PM. What random block are you using? If you aren't already, use Joerg's latest then modify the embeded type to be postnuke rather than the default nuke. See the gallery_random.php file. QuaziModem Joined: 2003-12-25 Posts: 4 Posted: Mon, 2003-12-29 22:21 Warren wrote: QuaziModem, thanks for the URL via PM. What random block are you using? If you aren't already, use Joerg's latest then modify the embeded type to be postnuke rather than the default nuke. See the gallery_random.php file. For the life of me, I cannot remember where I downloaded this but the one I have appears to be more updated than the file you linked to me... look at this changelog from within the gallery_random.php: // To read the license please visit http://www.gnu.org/copyleft/gpl.html // ---------------------------------------------------------------------- // Original Author of file: adam_baum w/Patrick's help ;) // Based on: Bharat Medirattas random block // Modified to fit in PN: Joerg Holzapfel (j.holzapfel@web.de) // Purpose of file: display random picture from gallery. // ---------------------------------------------------------------------- // History: // 2002/08/10 Edited Bharats block to fit in PN 0.7* // 2002/08/11 Applied some fixes found at different locations // 2002/09/04 Disabled sessioning because this was // causing an error in session.php (Line 55) in gallery 1.3.1 // 2002/10/13 Added thumb resizing // 2002/10/16 Fixed "cannot redeclare function" error // Now it's possible to use the sized image or the thumb for // display. // 2002/10/17 Cache file is not generated anymore if a user is logged in. // This minimizes the problem that pictures are shown which // should not readable by everybody // // Some cleanup in sourcecode. // 2002/10/21 V.52b Now can draw border around image // 2002/10/27 V.53b Some bugfixes regarding album-highlights. Thanks to John // for the report. // 2002/11/03 V.54b Added selection of a specific album to display. It // currently only displays the contents of the selected album not // the nested albums. The albumlist is not sorted yet! // 2003/09/06 Tested the block with 1.4 RC2. Seems that it works fine on that // release. // // 2003/12/08 Tested the block with 1.4.1. Seems that it works fine on that // release. // // 2003/12/20 Modified$GALLERY_EMBEDDED_INSIDE defaulting to "postnuke" // // global $GALLERY_NO_SESSIONS; global$GALLERY_BASEDIR; global $GALLERY_EMBEDDED_INSIDE; global$GALLERY_MODULENAME; global $gallery;$GALLERY_MODULENAME = "gallery"; //Change this to your module Name $GALLERY_BASEDIR = "modules/$GALLERY_MODULENAME/"; $GALLERY_EMBEDDED_INSIDE = "postnuke";$GALLERY_NO_SESSIONS = true; Looking at the gallery_random.php file you pointed to me, the last history was this: // 2002/10/16 Fixed "cannot redeclare function" error but I will try that and see if it works. Thx. QuaziModem Joined: 2003-12-25 Posts: 4 Posted: Mon, 2003-12-29 22:32 Actually, I just used that gallery_random.php file that you linked and when I installed it, I got the "Gallery needs Reconfiguration" msg. Now I remember why I had to use this version of gallery_random.php. That one works for me.. but like I said.. when you click on a random picture, goes to the gallery standalone link rather than w/in the postnuke theme. skifahrer Joined: 2004-01-19 Posts: 2 Posted: Mon, 2004-01-19 20:17 Hi, as I see lots of post on the Block I can join in with the same problems Now I installed the latest version and get this error message Warning: Invalid argument supplied for foreach() in /www/D000348/www.skiclub-erding.de/htdocs/modules/gallery/pnblocks/gallery_random.php on line 484 if I coment this code out i just get "No photo chosen. " I installed the latest block under modules/gallery/pnblocks running lthe latest Postnuke version and Gallery 1.4.1 I tested a version of gallery_random.php before as well as under includes/blocks any Ideas thanks a lot you can test it under www.skiclub-erding.de grantiago Joined: 2002-08-23 Posts: 78 Posted: Thu, 2004-01-22 17:28 Hi Guys: Random block doesn't seem to work with 1.4.1. is there a fix? opel70 Joined: 2002-11-07 Posts: 79 Posted: Thu, 2004-01-22 17:46 SeLoR1 wrote: the block say : Gallery needs Reconfiguration Your Gallery settings were configured with an older version of Gallery, and are out of date. Please re-run the Configuration Wizard! Here's how: I had this same problem, but switched to the version that QuaziModem posted and all is working now. Also it seems to work fine for me when clicking on the image or album title. It stays in the PostNuke "wrapper".