ImageBlock not working - http://www.studio4tattoos.co.uk/gallery2/
GazNicki
Joined: 2009-09-15
Posts: 36
Posted: Thu, 2010-02-18 14:16
I'm using the following echo: echo mediaBlock(15, 'mode:dynamic g2_view:updates noLink:1 useThumb:1 useMicro:150');
Am I right in assuming that this will give me the most recent image to be uploaded to the album with the ID of 15??
What parameters can I use to tell it to get the most recent images from all albums in the gallery? Or would I have to make sub-albums in one parent-album?
TIA,
Gaz
suprsidr
Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-02-18 14:58
the root album's id is 7(unless you specify otherwise)
I have embedded the gallery now http://www.studio4tattoos.co.uk/gallery.php and made it blend into the website pretty well. I put the albums into one master album, but may change that back now and use ID=7 to use the root instead.
suprsidr
Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-02-18 16:15
if you change the embedUri in mediaBlockIncludes to http://www.studio4tattoos.co.uk/gallery.php it will generate links to the embedded gallery instead of the standalone.
not the g2Uri, just the embedUri
Hi
I used on http://www.seibella.ro/test.html
<?php @readfile('http://www.seibella.ro/poze/mediaBlock.php?mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=9&useThumb=1&column=3&useMicro=60');?>
I use show data items only, but mediaBlock honors the imageBlock disabled flag.
un-check Edit Album -> Album Tab -> Image Block -> Prevent this album from being displayed in the Image Block
Your host should have given you access to some sort of error logs, or you may have to simply ask them if they can see some errors related to mediaBlock.php
Erors in gallery:
Wed 28 Jul 2010 11:06:48 PM EEST PHP Error Link 78.97.80.129 [Notice] Undefined index: comment in file /var/www/gallery2_seibella/modules/rss/module.inc on line 80
Posts: 36
I'm using the following echo:
echo mediaBlock(15, 'mode:dynamic g2_view:updates noLink:1 useThumb:1 useMicro:150');
Am I right in assuming that this will give me the most recent image to be uploaded to the album with the ID of 15??
What parameters can I use to tell it to get the most recent images from all albums in the gallery? Or would I have to make sub-albums in one parent-album?
TIA,
Gaz
Posts: 8339
the root album's id is 7(unless you specify otherwise)
glad you got it working for your needs.
Now you need to embed the whole gallery and have mediaBlock link to the embedded gallery ;)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 36
Thanks
I have embedded the gallery now http://www.studio4tattoos.co.uk/gallery.php and made it blend into the website pretty well. I put the albums into one master album, but may change that back now and use ID=7 to use the root instead.
Posts: 8339
if you change the embedUri in mediaBlockIncludes to http://www.studio4tattoos.co.uk/gallery.php it will generate links to the embedded gallery instead of the standalone.
not the g2Uri, just the embedUri
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 36
Does that give any benefits??
Posts: 8339
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 36
lol, sorry about that. Yes, I see what you mean now hahaha.
Cheers
Posts: 8339
BTW I have a page that describes full usage and lists available arguments.
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlockIncludes
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 52
Hi
I used on http://www.seibella.ro/test.html
<?php @readfile('http://www.seibella.ro/poze/mediaBlock.php?mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=9&useThumb=1&column=3&useMicro=60');?>
<?php @readfile('http://www.seibella.ro/poze/mediaBlock.php?mode=dynamic&recursive=1&g2_view=dynamicalbum.UpdatesAlbum&limit=11&useThumb=1&column=4&rss=0');?>
First line with random is working ok
2-nd one with Updates not make anythink.
Any help?
Posts: 8339
Make sure settings are correct in gallery admin -> Dynamic Albums -> Dynamic Album Settings
Beyond that, there does not appear to be any errors thrown, so you'd need to check server error logs.
BTW recursive=1 does not apply in dynamic mode.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 52
Solved
"Dynamic Album Settings" should not have "use global" checked.
-My Gallery-
http://www.seibella.ro/poze
Posts: 52
mmmmmmmm
It is not working only for new Albums. You should chose "show data items only" or "show all items"
I need that with new albums
help again
-My Gallery-
http://www.seibella.ro/poze
Posts: 8339
I use show data items only, but mediaBlock honors the imageBlock disabled flag.
un-check Edit Album -> Album Tab -> Image Block -> Prevent this album from being displayed in the Image Block
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 52
Image Block
Prevent this album from being displayed in the Image Block
Apply ImageBlock settings to sub-albums
First was not checked but second yes on all albums. It is ok this?
-My Gallery-
http://www.seibella.ro/poze
Posts: 52
http://www.seibella.ro/poze/updates works ok
-My Gallery-
http://www.seibella.ro/poze
Posts: 8339
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 52
Sorry for this Q : Where are this error located?
-My Gallery-
http://www.seibella.ro/poze
Posts: 8339
Your host should have given you access to some sort of error logs, or you may have to simply ask them if they can see some errors related to mediaBlock.php
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 52
Please be more exact;
- apache logs?
- gallery logs?
I have my own linux server
-My Gallery-
http://www.seibella.ro/poze
Posts: 16504
Apache's error (not access) logs:
FAQ: What is the webserver error log?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 52
Erors in gallery:
Wed 28 Jul 2010 11:06:48 PM EEST PHP Error Link 78.97.80.129 [Notice] Undefined index: comment in file /var/www/gallery2_seibella/modules/rss/module.inc on line 80
Event Details
Date Wed 28 Jul 2010 11:06:48 PM EEST
Type PHP Error
Location http://www.seibella.ro/poze/main.php?g2_path=Modele-unghii-false-manichiura/09-04-Modele-unghii-false/Modele-unghii-manichiura-080.jpg.html
User Id 5
Client 78.97.80.129
Summary [Notice] Undefined index: comment in file /var/www/gallery2_seibella/modules/rss/module.inc on line 80
Referer http://www.seibella.ro/poze/Modele-unghii-false-manichiura/09-04-Modele-unghii-false/
Details
Undefined index: comment
Request variables: Array
(
[path] => Modele-unghii-false-manichiura/09-04-Modele-unghii-false/Modele-unghii-manichiura-080.jpg.html
[itemId] => 18476
[view] => core.ShowItem
)
-My Gallery-
http://www.seibella.ro/poze
Posts: 52
No apache errors
-My Gallery-
http://www.seibella.ro/poze