I want to show it in the designated zone,
What can I do?

Comments

itsocial’s picture

or display a random image like 'Gallery Grid Block' ,

itsocial’s picture

I used the phrase to call random image below :

@readfile('http://www.itsocial.com/gallery?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none');

But the image do not change.

jivyb’s picture

I use the dashboard module to call the grid block and the images do change. Explanation here:

http://drupal.org/node/53087#comment-129453

Valerie

----
http://www.robcomm.net

itsocial’s picture

Oh,Thanks,It`s very good!
But I think, is that any code to be called without anather modules?

jivyb’s picture

I'm not sure if this is what you're asking, but when you install the dashboard module, it basically makes it so you can use dashboard code anywhere code will be read as php. So you can call any block. You just have to figure out the number of the block and there you go. (You don't have to put it within a dashboard page/node). All I did here was identify the number of the gallery grid block and put it with the dashboard code in a place the php would be read correctly as php and not displayed as html.

Hope that helps...

itsocial’s picture

Yes,that is what I want.
Jivyb, Thank you, I have done according to your instructions.
I come from China, I hope we can become friends.

My homepage:
http://www.itsocial.com/

jivyb’s picture

Looks good on your site. I'm happy to help if I can.

Valerie

---
http://www.robcomm.net

itsocial’s picture

OK

alexandreracine’s picture

Component: Code » User Interface / Theming
Status: Active » Closed (fixed)

Hope it works :)

------------
Feel free to reopen and put the 6.x version if so.
Please look at the latest version.

http://drupal.org/project/gallery

Closing (cleanup)