Nuclear General

Gallery Album Images Slider Block[33]

68 posts in this topic

%7Boption%7D



File Name: Gallery Album Images Slider Block[33]

File Submitter: Nuclear General

File Submitted: 23 Sep 2011

File Category: Content Management



This Block will allow you to place a slider showing up to 60 images from the album of your choice.
All images open in a single lightbox group when clicked.
IT USES IPDownloads JS to make the slider.... please have IPD installed to make full use of the slider functionality.
you can see this in action near page bottom here.
Rather than charging a single penny, I offer this as a free item, enjoy.



here to download this file

Buskopan and PersonalMode like this

Share this post


Link to post
Share on other sites

A really good block

I wait it for a long time ! Thanks

Just a question, where can I change the size of the image in the block ?

Image is 209x65 for the momentAnd

And also, images appears 2 times...

see on http://www.depeche-mode.be

Share this post


Link to post
Share on other sites

A really good block



I wait it for a long time ! Thanks



Just a question, where can I change the size of the image in the block ?



Image is 209x65 for the momentAnd



And also, images appears 2 times...



see on

http://www.depeche-mode.be

change in BOLD within the block
.download_pane li {
width: 15.5%;
margin-bottom:0px;
height: 65px;
overflow: hidden;
font-size: 12px;
line-height: 1.5;
position: relative;
padding-top: 2px;
padding-left: 1%;
}
to change the picture sizes... also
<php>
$this->feed = array(
1 => array_slice( $records, 0, 6 ),
2 => array_slice( $records, 6, 6 ),
3 => array_slice( $records, 12, 6 ),
4 => array_slice( $records, 18, 6 ),
);
</php>
i see you have modified this array.
first number is starting position(offset), second is number to pull... 5 per pane should look more like:
<php>
$this->feed = array(
1 => array_slice( $records, 0, 5 ),
2 => array_slice( $records, 5, 5 ),
3 => array_slice( $records, 10, 5 ),
4 => array_slice( $records, 15, 5 ),
);
</php>
AND YES... FYI I wont use code-boxes here til CKE is fixed.... tired of having my code escaped....

Share this post


Link to post
Share on other sites

It seems the download is dependant on having the IP.Content license. I have the IP.Downloads license but without the IP.Content it won't work in my IP.Board?

Share this post


Link to post
Share on other sites

It seems the download is dependant on having the IP.Content license. I have the IP.Downloads license but without the IP.Content it won't work in my IP.Board?



it is an ip.content block... yes.... IN FACT... that is WHY it is free... its some markup in an ipcontent feed block... if I had needed to query for it manually(hook, say) itd be a whole different story.

Share this post


Link to post
Share on other sites

Is it possible to fix this so the images don't become stretched as the web browser's window is increased?



as the css IS inline... yes... but the trick is this:
on a fluid width site, it simply will not work proper... but if is fixed...
.download_pane li {
width: 15.5%;
padding-left: 1%;
}
change to px.
.download_pane {
width:600px;
}
youll want about 50px or so less(the buttons) than the width of the area its in...
this is a bug in the IP.Downloads slider JS... its either all or nothing on fixed.... once you have the total area width, the photos are a px value slightly less than the total width divided by the number of photos per slide, then adjusting the padding accordingly.

Share this post


Link to post
Share on other sites

Hey buddy. Seems like it crushing a little bit the Active Users 3.2 block 1.0.1 once it is above. Names are going out off cell once I have enabled the gallery block

post-186732-0-41801100-1317113465_thumb.

Share this post


Link to post
Share on other sites

Hey buddy. Seems like it crushing a little bit the Active Users 3.2 block 1.0.1 once it is above. Names are going out off cell once I have enabled the gallery block



post-186732-0-41801100-1317113465_thumb.

did you update said active users block?
i did have to tweak the markup... omw.

Share this post


Link to post
Share on other sites

Hi Marcher. Excellent block! I was just curious if there was a way to add more images. As it is right now, the max images is 24, and I was wondering if there was a way to have 30 images?

Share this post


Link to post
Share on other sites

Hiya.

Quick question if you have the time to answer it, I have IP.Downloads 2.3.0 and am currently on 3.1.4 and have no intention on changing any time soon. Any way to get this slider to work ? Willing to throw a few quid into the pot....

Thanks Brian.

Edit: Just to update the js error I get is:

Message: 'ipb.idmportal.scroller' is null or not an object

I do seem to recall it worked at one point in the preview block, but since reloading it nada.

Edited by irishbikerforum

Share this post


Link to post
Share on other sites

Hi Marcher. Excellent block! I was just curious if there was a way to add more images. As it is right now, the max images is 24, and I was wondering if there was a way to have 30 images?



all it takes to add images to this slider:


    <php>

                        $this->feed    = array(

                                            1    => array_slice( $records, 0, 6 ),

                                            2    => array_slice( $records, 6, 6 ),

                                            3    => array_slice( $records, 12, 6 ),

				  4    => array_slice( $records, 18, 6 ),

                                            );

                    </php>

add another array like so:


<php>

	  $this->feed = array(

		   1 => array_slice( $records, 0, 6 ),

		   2 => array_slice( $records, 6, 6 ),

		   3 => array_slice( $records, 12, 6 ),

			   4 => array_slice( $records, 18, 6 ),

				   5 => array_slice( $records, 24, 6 ),

		   );

	 </php>

then simply take a line of the output such as:


<if test="count($this->feed[4])">

<ul id='new_pane_4' style='display: none'>

<foreach loop="$this->feed[4] as $r">

<if test="!$r['media']">

<li class='left'>

<a href='{$this->settings['upload_url']}/{$r['directory']}/{$r['masked_file_name']}' rel='lightbox{$title}' title='{$r['title']}'>

<img src='{$this->settings['upload_url']}/{$r['directory']}/{$r['medium_file_name']}' style='width:100%;height:100%;' />

</a>

</li>

</if>

</foreach>

</ul>

</if>


copy it, paste it directly below, and change 4 to 5.
with a tad of effort, could be made to held as many images as one desires, to an inane amount :tongue:

Share this post


Link to post
Share on other sites

Hiya.



Quick question if you have the time to answer it, I have IP.Downloads 2.3.0 and am currently on 3.1.4 and have no intention on changing any time soon. Any way to get this slider to work ? Willing to throw a few quid into the pot....



Thanks Brian.



Edit: Just to update the js error I get is:



Message: 'ipb.idmportal.scroller' is null or not an object



I do seem to recall it worked at one point in the preview block, but since reloading it nada.



I can certainly look.
its parsing a js module, which means it should parse the correct one for the version, rest is markup.

Share this post


Link to post
Share on other sites

Thank you. If you could - while your looking - ideally it would bring the visitor back to the gallery topic, or at least include the member name and a link to the original gallery image, do you think that might be possible ?

Thanks again,
Brian.

Le_Bodyguard likes this

Share this post


Link to post
Share on other sites

Hey M. Tech, did you manage to take a look see ?


Thanks


Brian



im actually and absolutely shocked.
It is WAI on 3.1.4 straight out of the box......
http://www.marchertech.com/test31/index.php?app=ccs

Share this post


Link to post
Share on other sites

Thank you. If you could - while your looking - ideally it would bring the visitor back to the gallery topic, or at least include the member name and a link to the original gallery image, do you think that might be possible ?



Thanks again,


Brian.



in regards to this.... yes, highly possible, it wouldnt be too much tweaking to the code to achieve... will work something up ASAP.

Share this post


Link to post
Share on other sites

im actually and absolutely shocked.


It is WAI on 3.1.4 straight out of the box......


http://www.marcherte...dex.php?app=ccs

I think the mistake is mine, sorry, I am trying to get the block to parse on the portal page - not in content pages ? The block does display and I see the slider arrows, however they dont link to anywhere, and I get the js errors.


in regards to this.... yes, highly possible, it wouldnt be too much tweaking to the code to achieve... will work something up ASAP.



Not sure if theres any point to be honest if its not possible to have the slider on the portal page.

Sorry, using IPB for years, still figuring things out, and IP.Content, still a very dark art to me.

I hope I am not wasting your time, and I hope I have given enough information to you on what I'm trying to achieve.

Thanks M. Tech.

Share this post


Link to post
Share on other sites

I think the mistake is mine, sorry, I am trying to get the block to parse on the portal page - not in content pages ? The block does display and I see the slider arrows, however they dont link to anywhere, and I get the js errors.




Not sure if theres any point to be honest if its not possible to have the slider on the portal page.



Sorry, using IPB for years, still figuring things out, and IP.Content, still a very dark art to me.



I hope I am not wasting your time, and I hope I have given enough information to you on what I'm trying to achieve.



Thanks M. Tech.



..... its an IPContent block... should be parseable in any skin template... may i have a link, or the error its popping?
what else is on this portal that could conflict?
you do have images in the gallery to be pulled, and downloads for the version installed, correct?
to elaborate...
you trying to use it in the portal is irrelevant to it not working, something else is afoot.

Share this post


Link to post
Share on other sites

..... its an IPContent block... should be parseable in any skin template... may i have a link, or the error its popping?


what else is on this portal that could conflict?


you do have images in the gallery to be pulled, and downloads for the version installed, correct?




The js error I get (got was) is:
Message: 'ipb.idmportal.scroller' is null or not an object
Gallery is Version 3.3.2, Downloads is Version 2.3.0

Having deleted the block and re-imported it it works as you say out of the box. When I change the title and reload it, it then gave the js error.

I have deleted it again, and reloaded it (again) and then changed the title and it previews fine. Its totally bizaare. The most recent bizaare thing I noticed was on the forum was the you tube tag no longer parsing video. I did submit a ticket, and before it was replied to, the you tube tags worked again and I closed the support topic. I will review the block tags again but I dont believe there are any conflicts there.

Meh. Gremlins. Totally mad, I had tested this till the cows came home to be honest before posting here..
Anyway we'll assume it working as intended and so I say great block thank you. If you can address my queries earlier:

ideally it would bring the visitor back to the gallery topic, or at least include the member name and a link to the original gallery image



I'd be made up.

Thanks - Seriously.
Brian

Share this post


Link to post
Share on other sites

The js error I get (got was) is:


Message: 'ipb.idmportal.scroller' is null or not an object


Gallery is Version 3.3.2, Downloads is Version 2.3.0



Having deleted the block and re-imported it it works as you say out of the box. When I change the title and reload it, it then gave the js error.



I have deleted it again, and reloaded it (again) and then changed the title and it previews fine. Its totally bizaare. The most recent bizaare thing I noticed was on the forum was the you tube tag no longer parsing video. I did submit a ticket, and before it was replied to, the you tube tags worked again and I closed the support topic. I will review the block tags again but I dont believe there are any conflicts there.



Meh. Gremlins. Totally mad, I had tested this till the cows came home to be honest before posting here..


Anyway we'll assume it working as intended and so I say great block thank you. If you can address my queries earlier:




I'd be made up.



Thanks - Seriously.


Brian



Just a quick query, wanting this in addition to the lightbox effect(extra link or sommat), or in-leu of it ( a link to the gallery "topic" ) ?
Latter i can splat instructions for right now if desired, not too much twitches involved.

Share this post


Link to post
Share on other sites

eg..... what exactly you wanting added/done to it?
its all code to me, just a matter of whats needed and picking it out of the available $vars.
if you are not aware, while editing ANY feed block, click the LINK $records, and all available $vars are listed for you tidily.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.