Jump to content

(MT)Gallery Recent Images Block


Nuclear General

Recommended Posts

%7Boption%7D



File Name: (MT)Gallery Recent Images Block

File Submitter: Nuclear General

File Submitted: 25 Feb 2012

File Category: Content Management



This is a feed template to mimic the board Index recent IP.Gallery Images Hook.
There are 2 separate files for this download, one is for IP.Board 3.2.x/IP.Content 2.2.x, the other utilizes the new block templates and is for IP.Board 3.3.x and IP.Content 2.3.x.



here to download this file

Link to comment
Share on other sites

  • 1 month later...

oooh.. wait.


this is easily changeable :tongue: its squaring off for a reason.


Edit the template folks.



{$this->registry->getClass('gallery')->inlineResize($this->registry->getClass('gallery')->helper('image')->makeImageTag($r),'100','100')}


change the 100's as desired, they are the re-size maximum dimensions.



Tried this before posting here. And for some reason, this didn't work for me. I did 100 X 150. Maybe I should try smaller vs larger?
Link to comment
Share on other sites


Ah ha! Another setting. Adjust maximums. And I think one more. I think everything size wise needs adjusted there?



Its a base template :tongue:
you can easily override these by skin, or edit the gallImages.css file in the block directory:


#appGallLatestBlock

{

overflow:auto;

height: 128px;

}

#appGallLatestBlock ul {

   white-space: nowrap;

}

#appGallLatestBlock ul li {

display:inline-block;

}

#appGallLatestBlock ul li img {

	max-height: 100px;

	max-width: 100px;

}

#appGallLatestBlock ul li:last-child { margin-right: 10px; }


:smile:

Link to comment
Share on other sites

done
there should be only one line needing any edits/overrides in the css now:


.appGallLatestBlock

{

  overflow-x:scroll;

overflow-y:hidden;

height: 128px;

}

.appGallLatestBlock ul li {

display:inline-block;

margin:0px;

}

.appGallLatestBlock ul li:last-child { margin-right: 10px; }


The height there.
it will respect the size you specify in the template re-size statement.... and should stay on 1 line proper(3.2 version used other means than the block template, AFAIK it should be fine)

Link to comment
Share on other sites


Exactly which css do I adjust?



http://community.inv...-resources-r751
you can either directly edit the file in the block template directory in the listed directory editing the block template, or do it by skin with !important tags if you wanted to.


.appGallLatestBlock

{

height: 128px;

}


that height value... use an !important tag if by skin, if not(ergo, in that file) simply modify the value leaving the surrounding code.
The ACTUAL Image Size is solely controlled by the template now :smile:
That is the height of the "box".

Link to comment
Share on other sites

Sorry I don't speak your language. ;)

Ok so you uploaded an update. Got it. I see you made the block much longer in width. So that it is over the category boxes now.

While I am at it, there is something else. The name of the block is not showing up above the pictures. It is there, but the shade is neutral to the green. Vs the default for the rest of the boxes on my home page.

Link to comment
Share on other sites


Sorry I don't speak your language. ;)



Ok so you uploaded an update. Got it. I see you made the block much longer in width. So that it is over the category boxes now.



While I am at it, there is something else. The name of the block is not showing up above the pictures. It is there, but the shade is neutral to the green. Vs the default for the rest of the boxes on my home page.



question... custom skin, or default? im using .ccsBlockTitle in an effort to maintain external usability... .maintitle and it don't really mix.... if the Block Title is Black, some css is missing from the skin..... Edit the block Template i f you want maintitle, and if it IS Black background colored header, skin needs an update........
can I have a link? I redid it to look like so http://www.marchertech.com/
Just minor touch-ups 0-o I specify no width of the box... its supposed to have scrolled from day 1.. that way one could set a reasonable box height, change the picture resize and have items as they wanted shown.... this is not a sidebar block... i did that separate... but it should simply fit in any given width. :tongue:
Link to comment
Share on other sites

  • 1 month later...

hi marcher tech, firstly, thanks for the awesome block.

it works exactly the way i want it and looks beautiful.

i have 1 small issue though, not sure if it's an easy fix. the scroller bar appears fine in both firefox and chrome, but when i view it using IE9, the scroller disappears and the images extend all the way into the next column. i've attached a picture for your reference. since 60% of my users are using the IE browser, i'd like to fix this if it's even possible at all.

thanks!!

works properly in firefox & chrome:

post-354888-0-55489300-1336577590_thumb.

display errors in IE9:

post-354888-0-42595900-1336577591_thumb.

Link to comment
Share on other sites

hello sir.

apologies for the late reply.

really weird.. when i was at work this morning, i tried viewing the site in firefox and ie9 and both had scrolling issues. i refreshed the page and all was well again. even now on my home computer, it shows fine on all 3 browsers.

i also noticed that when i visited the website at work, the scroller showed double of every image, and then about 30 minutes later, showed triple of every image! didn't fix itself even when i did a hard refresh.. but visiting the site about an hour later, all was fine again.

haha, this is a really weird issue, but if it shows fine now, i'm okay with it. would be too difficult to troubleshoot i'd think.

btw, if you wanna view the site, it's at gofishing.sg/ipb. maybe you can let me know what you see..

cheers!!

Link to comment
Share on other sites

  • 2 months later...

Was checking back to see if there was an update on this recently. I have played with my image width and height a zillion times. They are always too long or too tall. I bet this is beacuse I am not using square thumbnails for the forums. If you use square thumbnails, your images get cut off. Any hope of not having distorted pics yet?

Link to comment
Share on other sites


Was checking back to see if there was an update on this recently. I have played with my image width and height a zillion times. They are always too long or too tall. I bet this is beacuse I am not using square thumbnails for the forums. If you use square thumbnails, your images get cut off. Any hope of not having distorted pics yet?



If you prefer, i can provide a second template that does not hit the gallery functions now.... but i was kind of planning to implement an entirely different approach with IPG 5.0 anyway.... i want that lightbox :wub:
Link to comment
Share on other sites

Well, I am always the last to upgrade. Would this be difficult? Would I just replace the entire template or parts of it in the block?

I saw your other mod that utlizes the IP downloads. Love it! Totally awesome!! But would it be worth the expense for one pretty gallery bar? :lol: Just like a woman, I seriously contemplated it for a moment.

Link to comment
Share on other sites


Well, I am always the last to upgrade. Would this be difficult? Would I just replace the entire template or parts of it in the block?



I saw your other mod that utlizes the IP downloads. Love it! Totally awesome!! But would it be worth the expense for one pretty gallery bar? :lol: Just like a woman, I seriously contemplated it for a moment.



is a matter of a simple change to the block code ;) working on it... manually sorting out the full image uri with the native template data is the..... fun...... yeah.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...