Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Close behavioral of light box
Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 6:48 pm

Hi guys, I was just wondering if there is way to change couple of things about picture light box.

When you click on image in post it opens new pop window (light box).  I watched a few people to see how they will close the window and I saw that most of the people were confused.

1. X - close button is  hard to notice at first glance in ICE theme that I use. I was wondering if there is way to change it to "Close picture" instead of "x". This way it would be more noticeable  Even better I would like to change the color.

2. I would like to to close the picture when you click on light box rather then opening new window.  Correct me if I am wrong but it looks like light box/ pop windows will open in max screen size or max picture resolution size.  When I click on light box in my case I'll get new window with exactly same picture size. I have to close new window and then close original light box.  

I don't get the benefit of opening a new window when clicking on light box. Please let me know if I am missing something. 

Anyway, I would find it more beneficial if I could close light box just by clicking on picture again. 

 

Can you guys give me a direction where to look to make desired changes?   Thanks for any advice. 

 

                      Charles

Avatar
Brandon
U.S.
SP Wrangler
Free Members
Offline
Oct 13, 2012 - 7:31 pm

1) The image used for the "X" is close.gif located in the themes styles/images folder. It should be black with a white X. You can edit that image or create a new one or replace it. 
You should have a custom theme if you start editing or changing files in your theme.

2) It does open up an new tab to show the full size picture if you click on the popped up one. There may be a way to change that or add some kind of dialog to say what will happen when the popup image is clicked. Something maybe the guys can take a look at. On some of my sites I allow large images to be uploaded because most are pics of circuit boards. The extra click to be able to see the large image is very handy when looking at small parts. So it gives a user 3 pics, the small one in the forum post itself, the medium size one in the popup and a large one in it's own window.

But I can see how depending on your forum image constraints how you may not need nor want the 3rd one. I don't think there is a way now to turn off the full size display but maybe Andy or Steve have an idea.

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 7:43 pm

Hi Brandon, thanks for the reply. 

1. That should be easy enough for me to do.  Thanks for the tip. 

2. I see what you are saying. On the other hand I think you are probably very small percentage of users that need such a big pictures.  I think most people will use pictures that are smaller pixel size than screen resolution and in that case there is really no point of having an extra window window with visually same picture. It might be good thing to have that option of closing the window (via settings) when clicking on light box. Just an idea...  Let's see what Andy or Steve have to say. 

I bet if you get 10 average computer users that don't know the SP interface, 8 of them will either close tab or open new window with full res picture actually trying to close light box.  

    Anyway, thanks for help..    Charles

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 7:49 pm

Does the same thing apply when using overlay theme? Like for example I am using ICE...   I see there is ice.php with some css styles....  Are you sure "x" is image because my "x" is white almost like letter x...

Avatar
Brandon
U.S.
SP Wrangler
Free Members
Offline
Oct 13, 2012 - 7:59 pm

It does not look like this X ?
screenshot_04.pngImage Enlarger

 

 

 

That's from the ice overlay on my test site.

Maybe your WP theme is overriding it. Is your site online and I can see it myself? I would be glad to check and see if different than what it should be.

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 8:03 pm

It looks like this on my screen. You can see how it can be easily overlooked by many users... x.jpgImage Enlarger 

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 8:07 pm

Sorry, here is link with pictures...

Forum post

Avatar
Brandon
U.S.
SP Wrangler
Free Members
Offline
Oct 13, 2012 - 8:26 pm

Strange but the close.gif file is not being found in your theme so it's not being shown.

Can you check your theme's folder styles/images for close.gif? Here it is if you need it.

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 8:33 pm

There is no image with that name... I have no idea why it would be missing and where is white x comming from if the image is missing?  

I have only closeRes.gif

So, even when using overlay theme ICE, it still should use same image as default theme? 

Also when I inspect the element it uses  class="ui-icon ui-icon-closethick"...   That sounds right? 

 

    Charles

 

PS: Sorry for quick edit..

Avatar
Charles
Member
Free Members
Offline
Oct 13, 2012 - 8:38 pm

Thanks Brandon.  It is showing now...  I wonder what else I am missing..   I did standard install and I swear I did not delete anything. 

I guess at this point I can just create custom picture and to be safe start separate theme for that...

           Charles 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626