NiftyWolfie Posted November 14, 2010 Posted November 14, 2010 File Name: Random Gallery ImageFile Submitter: NiftyWolfieFile Submitted: 14 Nov 2010File Updated: 01 Jun 2011File Category: IP.Content Blocks This feed block will show a single random image from the gallery. It only shows the image and nothing else. The image is clickable taking you to that image in your gallery. *There is no CSS provided with this block as it uses the .general block CSS*Update For Gallery V4 owners you require the zip file.Click here to download this file
Worldoversea Posted January 17, 2011 Posted January 17, 2011 Hello, I tried downloading this and it says I must have IP Content. I own a perpetual, does this mean that I must have IP content for this? Thank you, JB
NiftyWolfie Posted January 18, 2011 Author Posted January 18, 2011 This block is designed to work with IP.Content, if you have IP.Content then you can use it :)
najaru_1 Posted March 11, 2011 Posted March 11, 2011 i have this error:Fatal error: Uncaught exception 'Exception' with message 'glib is not an object' in /home/elbrollo/public_html/admin/sources/base/ipsRegistry.php:967 Stack trace: #0 /home/elbrollo/public_html/admin/sources/base/ipsRegistry.php(1060): ipsRegistry::getClass('glib') #1 /home/elbrollo/public_html/admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code(3660): ipsRegistry->__get('glib') #2 /home/elbrollo/public_html/admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code(3645): skin_ccs->__f__fd3d90a6a475386463118c9f931af9b4('Random Gallery ...', Array) #3 /home/elbrollo/public_html/admin/applications_addon/ips/ccs/sources/blocks/feed/data_sources/gallery.php(1141): skin_ccs->feed__generic_18('Random Gallery ...', Array) #4 /home/elbrollo/public_html/admin/applications_addon/ips/ccs/sources/blocks/feed/admin.php(497): feed_gallery->executeFeed(Array) #5 /home/elbrollo/public_html/admin/applications_addon/ips/ccs/sources/blocks/adminInterface.php(188): adminBlockHelper_feed->recacheBlock(Array) # in /home/elbrollo/public_html/admin/sources/base/ipsRegistry.php on line 967 i have the same error if i make a new feed block with this code (that in all other IP.Content display images: <php>require_once( IPSLib::getAppDir('gallery') . "/app_class_gallery.php" ); $_d = new app_class_gallery( $this->registry );</php> <div style=" width: 861px; height: 110px; background-color: #3D3D3D; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 10px; margin: 0px; border: 0px solid #000;" > <div align="center"> <br> <if test="is_array( $records ) && count( $records )"> {parse striping="feed_striping" classes="row1,row2 altrow"} <foreach loop="$records as $r"> <span style=" margin: 20px;"><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$this->registry->getClass('glib')->makeImageLink( $r, 1 )}</a> </span> </foreach> </if> </div> </div>
sound Posted March 11, 2011 Posted March 11, 2011 seems method above no longer works as ipcontent/ipgallery has changed the way it pulls images a quick fix may be to build the thumbnail using the file names etc found in the template variables eg <img src='/forum/uploads/{$r['directory']}/tn_{$r['masked_file_name']}' width="100" height="100" class="galattach " title='{$r['title']}' alt='{$r['title']}' id='' />
najaru_1 Posted March 11, 2011 Posted March 11, 2011 how about poster name? author_name dont work..... and category or album?
NiftyWolfie Posted March 11, 2011 Author Posted March 11, 2011 If you update to Gallery 4 then yes you get problems, I've mentioned it in the tracker and we have to wait for IP.C to be upgraded to work correctly the new gallery.
sound Posted March 12, 2011 Posted March 12, 2011 latest gallery release has the updated ipcontent feeds
najaru_1 Posted March 13, 2011 Posted March 13, 2011 anyone know how to make images like Recently Updated Albums http://community.invisionpower.com/gallery/ with background image? i dont find this image.....
Nervosa Posted March 14, 2011 Posted March 14, 2011 anyone know how to make images like Recently Updated Albums http://community.invisionpower.com/gallery/ with background image? i dont find this image..... In your skin css open ipgallery.css you should have (if not, add) the following. .galattach.cover_img_50 { background: url("{style_images_url}/gallery/50x50.png") no-repeat 4px 4px; padding: 13px; } .galattach.cover_img_75 { background: url("{style_images_url}/gallery/75x75.png") no-repeat 0px 0px; padding: 13px; } If you have the css code and do not have the images, you can get them below. .
najaru_1 Posted March 14, 2011 Posted March 14, 2011 yes thanks. images gallery was'nt uploaded in skin folder, only in master .....
NiftyWolfie Posted March 30, 2011 Author Posted March 30, 2011 I should have a working version of this done in the next day or so. If anyone would be willing to test it for me, pls send me a PM and I'll send you a test version soon as I can.
Nervosa Posted March 30, 2011 Posted March 30, 2011 Would be cool, rather then a single image you can have 9 or so small ones and make it act like the "Recent Images" block you see on the gallery home page. (with mouse hovers)
NiftyWolfie Posted March 31, 2011 Author Posted March 31, 2011 Updated to v1.1 This update is for those people that are using IP.Gallery V4 only. @Nervosa Will take a look and see what I can do
Jinkler Posted May 30, 2011 Posted May 30, 2011 Hi mate, I'm getting an error with this. I downloaded and imported the XML file, and I'm running Gallery 4.0.4. This is the error I get at the end of configuring the block and I go to save it:Fatal error: Uncaught exception 'Exception' with message 'glib is not an object' in /home/talkford/public_html/admin/sources/base/ipsRegistry.php:967 Stack trace: #0 /home/talkford/public_html/admin/sources/base/ipsRegistry.php(1060): ipsRegistry::getClass('glib') #1 /home/talkford/public_html/admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code(10755): ipsRegistry->__get('glib') #2 /home/talkford/public_html/admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code(10740): skin_ccs->__f__8a9a46e9b9a2fd5642c45d9d02f6b9d1('Random Gallery ...', Array) #3 /home/talkford/public_html/admin/applications_addon/ips/ccs/sources/blocks/feed/data_sources/gallery.php(1141): skin_ccs->feed__generic_61('Random Gallery ...', Array) #4 /home/talkford/public_html/admin/applications_addon/ips/ccs/sources/blocks/feed/admin.php(497): feed_gallery->executeFeed(Array) #5 /home/talkford/public_html/admin/applications_addon/ips/ccs/sources/blocks/feed/admin.php(436): adminBlockHelper_feed->recacheBlock(Array) #6 in /home/talkford/public_html/admin/sources/base/ipsRegistry.php on line 967 I also get the same error when attempting to preview the block from within IP.Content. Any ideas? It seems to centre around that 'glib', whatever that is.
NiftyWolfie Posted June 1, 2011 Author Posted June 1, 2011 When you downloaded the file did you download the zip file or the xml file, The zip file is the newer one? And the one I have running on my website with no problems Cheers Nifty
Jinkler Posted June 1, 2011 Posted June 1, 2011 I'll give it another go and let you know, I can't remember now tbh :thumbsup:
NiftyWolfie Posted June 1, 2011 Author Posted June 1, 2011 Thats ok, I have had to go through the files to work out which was the latest as couldn't remember :)
Jinkler Posted June 1, 2011 Posted June 1, 2011 All working, I must have downloaded the wrong one (I thought they were the same, one zipped, one not zipped!) :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.