SOLVED drupal - two random images (need help to get rid of 1 of them)

ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Sun, 2005-11-27 00:32

hi,

i have a test bed for installing Drupal 4.6.3 with g2 embedded.

i have gallery2 on the same site and embedded into the drupal test.
i have the random_image block turned OFF in Drupal and Gallery2 module is turned ON in Drupal and in g2 the image module is ON. i have tried various configurations of ON and OFF for those (if i'm missing it please advise....):

on the main drupal index page (http://rogers.gotdns.com --when up) i have the random image on the far right, under the calendar.
if you click on that random image (far right) my gallery2 is displayed in the center section of the drupal page. in this section there is displayed also a different random image (i believe coming from gallery2's unique random image mode being turned on).

the undesirable effect is that there are, at that point, two random images on the page: the one on the far right, under the calendar which always remains, and the one added into the center section displaying gallery2.

[img]http://www.math.fsu.edu/~trogers/images/random_images.jpg[/img]

here is a picture of gallery2 in the center section of my drupal site. you can see the 2 random images.

i would like it very much if i could KILL the one inside the center, gallery2, section while retaining the one on the far right.

(if this does not display please load this url into your browser manually:
http://www.math.fsu.edu/~trogers/images/random_images.jpg (44KB)

i am not a developer but, is this because the gallery2 module uses gallery2's own random image mode? as opposed to pulling a "random image" from the available pics residing in the gallery2 install? it seems if that is true and there is no way to kill the undesired doubling up when viewing gallery2 within drupal, then a module or something that would NOT rely on gallery2 to produce the image would be beneficial? i'm guessing.

all i would really like is to *know* what's what, so i can stop futzing with it. however, i do want a random image in drupal without building all kinds of other stuff and other pic dirs and i would like to embed g2, but i just don't want this second random image when displaying gallery2 embedded. :(

thanks!

ichiro

p.s. i've been trying to find an answer to this for quite a few months.

Gallery version = 2.0 core 1.0.0
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sun, 2005-11-27 07:55

In answer to this and your same issue here ( http://drupal.org/node/38901 ). You do still need the Image Block *module* enabled in G2, but that does not mean that you need to display a Random Image in your G2 sidebar. Go to G2 Site Admin->Themes->Your Theme and see what's in the "Blocks to show in the sidebar" section. You will see "Image Block". Remove it and you're done.

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Sun, 2005-11-27 18:37

when i do that (i tried a few times) the random image disappears from drupal.

to be clear, the 'random image block' that comes with a full drupal install has always been OFF. is that part of my problem?

again, i have the drupal gallery block ON and it to pull or not an image based on whether or not the image block in g2 is ON, and, if i remove it from the g2 sidebar (in my theme [chameleon] it pulls no image into drupal's gallery block.

is it NOT suppose to work that way? if not, i've been trying for months (off and on) to find out why. this is a basic test install of both programs, so very little customization.

p.s. i'm going to post about how i've now messed up my site and so asking other very rudimentary questions. however, i STILL want to pursue this double random image question. at present i'm reinstalling everything... i messed it up upgrading from 2.0 to 2.0.1 and trying to get in your gallery module. where is a CVS gallery2 tarball?

thanks so much! you are the closet i've got to solving this. :))

ichiro

Gallery version = 2.0 core 1.0.0
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Mon, 2005-11-28 03:59

well i'll BE! i did a complete fresh install of everything and it works! i SWEAR i have tried that many times!

this is using the gallery.module available at the modules download area.

now i'll try yours! in your instructions, am i to add ("insert") these lines just *after* the lines you refer to here?:
main.php modification (not required for cvs G2 version)
Find the following 2 lines (approx line 315), and insert the new line:
$data = $theme->splitHtml($html, $results);
$data['isDone'] = false;
/* Start of new insertion */
$data['themeData'] =& $template->getVariableByReference('theme');
/* End of new insertion */
} else {

thanks SO MUCH for KICKING ME... i needed some moral support! ;)

btw... where is the gallery.module CVS --i lost that url.

ichiro

Gallery version = 2.0 core 1.0.0
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw