Random Block

[TA]-Gator

Joined: 2003-09-15
Posts: 4
Posted: Wed, 2003-12-17 05:32

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

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2003-12-17 12:40

Moving to the correct forum.

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-12-17 18:31

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...

 
[TA]-Gator

Joined: 2003-09-15
Posts: 4
Posted: Wed, 2003-12-17 19:16

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

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Mon, 2003-12-29 19:46

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?

 
onlds
onlds's picture

Joined: 2002-10-15
Posts: 6
Posted: Mon, 2003-12-29 22:23

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.

 
gwyers

Joined: 2004-01-16
Posts: 3
Posted: Fri, 2004-01-16 19:22

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!

 
onlds
onlds's picture

Joined: 2002-10-15
Posts: 6
Posted: Mon, 2004-01-19 02:53

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

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Fri, 2004-01-23 18:32

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.

 
Shadeaux

Joined: 2003-11-25
Posts: 12
Posted: Mon, 2004-02-02 22:56

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)??

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Wed, 2004-02-04 19:59
Shadeaux wrote:
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)??

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

 
Shadeaux

Joined: 2003-11-25
Posts: 12
Posted: Wed, 2004-02-04 21:30

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.

 
gwyers

Joined: 2004-01-16
Posts: 3
Posted: Thu, 2004-02-05 17:40

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!

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Thu, 2004-02-05 17:41

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

 
cerw

Joined: 2004-02-08
Posts: 1
Posted: Sun, 2004-02-08 13:45

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:

joerg wrote:
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