I installed the latest version of Gallery on my site, and it works great as always. I keep my site updated with the lateest release of Gallery. This time, however, I was unable to get the Random block to work properly. I read every thread and tried all of the prvious suggestions...too include downloading the lastest release of "Random Block"
I reinstalled it about 8 times now, but it still does not work. I used all of the current files in the download. There is a disconnect somewhere here..
I made a "right-block" and got this message:
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:
Unix with shell access
% cd /path/to/your/gallery
% sh ./configure.sh
Unix with FTP access
ftp> chmod 666 .htaccess
ftp> chmod 666 config.php
ftp> chmod 755 setup
Windows
C:\> cd \path\to\your\gallery
C:\> configure.bat
I know you guys do not diredtly support this block, but I must tell you that it brings many visitors into the Gallery, and it is important tool for Gallery.
Any help you could give me would be much appreciated. Without the Block, all the viewers see is a link named Gallery
One of you biggest fans,
Gator
Posts: 8194
Moving to the correct forum.
Posts: 794
Try it on the left side. You're not the only one with this problem but I have not been able to reproduce this. Still researching...
Posts: 4
Thanks Warren,
I tried the left side as well, but then the entire site (page) goes blank. Very strange indeed. I so much want the random block back up because it invites visitors to the Gallery that would not normally visit :D
P.S. You can view my site at www.fa-thearmory.net You can see that Gallery works well, but the Random Block is not present
Posts: 794
Try a few more things:
1. Delete your block-random.cache file in your albums/ directory. Reload page.
2. Increase your available php memory. Method varies depending on the server OS. Restart web service.
If nothing works... can you supply more version info for OS, Gallery, nuke, random block?
Posts: 6
I'm experiencing the same problem with embedding block-random.php into invision board (I know, I run php nuke on other sites so don't give me a hard time :lol: )
The funny thing is I think the issue with all this is that we must be nuking the globals for the gallery. It would be helpful if I knew where gallery checks for needed reconfiguration.
Posts: 3
I am running the following:
O.S.: Mandrake 9.0
Apache:1.3.26
MySQL:4.0.17
PostNuke:.726-1
Gallery: 1.4.1
I also get the message that my gallery was configured w/ an older version and needs to be reconfigured.
If you find out why it's doing this, let me know because I would really like to add that random block!
Posts: 6
I fixed it with the help of the post here from blackcat:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=8622&highlight=gallerysanitycheck
It worked like a champ for me too! :P
Posts: 794
gwyers, be sure to upgrade your albums when you upgrade to Gallery 1.4.1 from your top level. If you don't see the update album link somewhere in your album info blocks then you may have already done so. As administrator you can upgrade all albums at once, just follow the directions in the pop up window.
Posts: 12
I got this to work on my invisionboard too via onlds instructions. But, how would i go about changeing this from a Random Photo to a Random Album instead? (To show the Album highlight instead of an Albums random image)??
Posts: 77
If you bring me 10 people who need this feature too I'll implement it in a future version of my block for PN. :D No problem.
Joerg
Posts: 12
Thanks!!
Maybe other will express intrest in this via this thread.
I do a very SMALL amount of PHP, but have never delt with PN, and just started to use Gallery.
From what I can figure out, the changes that would be needed seem to be somewhat trivial. Maybe I can outline them here.
1) Change the cache, so that it saves the Gallery name and first image name instead of gallery name and number of images.
2) Instead of randomizing the albums and images, simply pick from the list of albums and display the first image (or highlight) of that album.
3) change the URL link from the album/image to simply the album url.
Dont get me wrong, im sure this is more work than im taking into consideration. Since I am not all to familiar with the Gallery or PN code. I do appreciate any and all input on this, and think that this would be a GREAT addition to the configuration or the Random_Block script.
Posts: 3
Thanks onolds and warren! Between updating the photos, and modifying the uitl.php, you got me working,,, well, sorta. :D
Now I get the random thumbnails, but above it I get:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/www/wyersfamily/modules/gallery/classes/database/mysql/Database.php on line 37
Guess I will try a search to see what's up with that. :-?
Ha! Yes! Works like a champ... Had to change this line inside the gallery_random.php:
$GALLERY_EMBEDDED_INSIDE = "postnuke";
Sweeeet!
Posts: 77
OK, here it is.
Added highlightonly function to PN random-block. Refer php-source to find a clue how to do this. Search for $album->getHighlight() maybe you can implement this in your block after reading this part of the code, it's pretty easy. Gallery is doing most of the trick for you. 8)
You can get the source here.
Joerg
Posts: 1
Hi,
I finally found this block which i really want, but when I set all path and config and put in includes/block HOW CAN I ADD THE BLOCK TO SITE?
sorry if this Q is very dumb but I just can no figure out..
thank a lot
cerw
oops: