My problem, i need a photo album in my home page, not the thumbnail of image. How can I set the Flash view Image permanently to my front page?

please help.

Comments

abdulhaleems’s picture

Assigned: abdulhaleems » Unassigned
berdir’s picture

Status: Active » Postponed (maintainer needs more info)

- your images? images of album x? all images ?

- Do yoo need only the flash view on the front page or additionaly to something else, for example the normal drupal frontpage?

As a starting point, it is quite easy to set a flash view of a user or album as frontpage, just save the url you want at /admin/settings/site-information. Everything more complex is currently not easily possible, as the flash site is currently not themable nor aviable as a block.

abdulhaleems’s picture

Thanks for the reply,
I have some other contents, but i need this flash gallery at the top of all contents on the content section. Is it possible?
Actually it is for a news site, so it need to show 5 top stories of the day. The top stories will design as images with related photos. If not possible, is there any other module?

Thanks.

berdir’s picture

This is currently not possible without coding.

You could have a look at the function "_photos_flash_swf" in photos.page.inc and use it as a start to create your own block/page where you include the flash gallery. This should not be too complicated.

I am however not sure if a flash gallery is the right way to present text/nodes as it is in my opinion harder to read and maintain. Another way would be using jQuery/Ajax to load the text/image and display it as normal html.

abdulhaleems’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks, i will try.

eastcn’s picture

Status: Fixed » Needs review

Yes, you can call _photos_flash_swf (), you only need to specify a xml address, it is very easy.

include_once drupal_get_path('module','photos').'/photos.page.inc';
$xml = '/photos/user/flash/1/xml'; // album: node/%nid/photos/view/xml, user: /photos/user/flash/%uid/xml
print _photos_flash_swf($xml);
abdulhaleems’s picture

Status: Needs review » Postponed (maintainer needs more info)

Sorry, i am very new to drupal & PHP. But i tried my maximum.

Finally i done by adding this code as a block by using PHP filter, but it only showing flash player without image. I think the xml codes are generating by 'photos_flash.tpl.php'. How can i specify this XML to '_photos_flash_swf($xml)'. I don't have a normal XML file.

Please give a solution.

berdir’s picture

$xml is the *path* to the xml file, as described be eastn, you can display either the images of an album or an user

"/node/%nid/photos/view/xml" (%nid = id of the album, you can find this out by looking ad the url while displaying or editing the album... node/%nid)

or

"/photos/user/flash/%uid/xml (where %uid is the id of the user)

I'd suggest you to create an album per day and display the images of that album

PS: perhabs you have to change the path if your drupal base ist not at / (for example domain.org/drupal instead of domain.org). Try to open the path directly.. if you get a xml file it should work

nathaniel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)