Although I've noticed most problems with lightbox concern the question of how to put links in the descriptions, I haven't yet come across an answer to the problem I'm having.
I'm running version 2.6 and modified it to use the description from the attribute "data-title" instead of "title". This worked fine, as did putting links in the descriptions, the problem is that when I click on those links nothing happens. They react to hovering over them, the browser's status bar displays the address I'm linking to, right-clicking will bring up the correct context menu, only left-clicking will do nothing.
This is the code of the image:
<img src="thumb.gif">
And here's the page in question: http://himmelsbach-dourveil.net/fotos There's a link in the first photo's description.
Thanks in advance for your help!
You should update your version of lightbox.
Have a look at this PR : https://github.com/lokesh/lightbox2/pull/194
Related
Struggling a bit with a multilingual Craft CMS website. I am trying to get Live Preview working on both languages I use on my site. The Primary language works just fine, live preview is showing, and all edits are visible. However, if I switch to the secondary language and try to preview I get thre primary version.
In my .env file I setup two environmental variables the following URL's which I use in "Settings > Sites > Base URL":
PRIMARY_SITE_URL=http://mysite.local:8080
PRIMARY_SITE_URL_EN=http://mysite.local:8080/en/
In my Sections settings, I configured it as shown below:
I tried changing the second row in "Preview Targets" to en/news/{slug} however this was without success.
Any help would be much appreciated. Thanks much.
As mentioned by Brandon Kelly from Craft:
Just a single preview target should be necessary, with its URL Format set to {url}. It will show the entry in whichever site is currently being edited.
This solved the problem right away for me.
Thanks Brandon
I am pulling this attribute directly from Mozilla Firefox's about.xul file which shows the About dialog box for an add-on. It is a relatively simple XUL dialog with no inputs, locale data pulled from DTD entities, string bundle properties and JavaScript.
<!-- omni.ja!/chrome/toolkit/content/mozapps/extensions/about.xul -->
<!-- chrome://mozapps/content/extensions/about.xul -->
<dialog id="genericAbout"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="init();"
buttons="accept"
buttoniconaccept="close"
onaccept="close();">
MDN: Dialogs and Prompts and MDN: dialog both mention something about attributes that are formed by concatenating (pseudo-regexp):
"button" + "(label|accesskey|oncommand)" + "(accept|cancel|disclosure|help|extra[12])"
For example: buttonlabelaccept.
However, I could not find any documentation about the use of icon. The word icon does not even show up on either of the above-mentioned pages! What does it do? What is the correct way to use it?
I'm trying to make my add-on about page more modular, without loading internal files from omni.ja(r), which pulls in a LOT of unnecessary code with it. I am developing a very streamlined version, that will style itself appropriately depending on calling context.
I want it to look like Firefox's official About < addon.name > dialog if called from about:addons context-menu, or from my add-on's status-bar context-menu. I want a slightly different appearance if viewed from within the Options dialog as an iframe inside a XUL. I already have that structure set up. Just tweaking the little quirks.
This is not critical design or feature wise, and indeed the entire API will go away in a few months, but it just bothers me to not really understand this, so I want to figure it out before I let it go an move on to more important things. But I will if I absolutely can't find an answer. But it's one of those stupid little things that will just bother me a disproportionate amount. =D
If you can point me to documentation I may have missed, or even specific Mozilla source code, and a few examples, or a more complete explanation and typical use-cases, that would be great.
If you check the "blame" for about.xul, you'll see that the line was added to fix bug 422763. Judging from the screenshot in the bug, GNOME (Linux) has (had?) a convention of putting icons on dialog buttons, and this attribute allows overriding the default icon (inferred from the button type).
If you search for buttonicon, you'll find the code that handles this attribute in toolkit/content/widgets/dialog.xml.
Two clients have contacted me with this problem immediately upon upgrading from WordPress 3.5 to 3.5.1. I've posted to the WP support forum, but have yet to see any traffic on my question. Thought I'd try here, since it does appear to be on the Facebook side of things.
When we post a URL to Facebook, the preview comes up with no image (not a blank image square, but no image at all), the title is the URL, and the description is the URL. Two weeks ago, prior to upgrading to 3.5.1, the Facebook link preview worked exactly as one might expect.
I checked the code- the og:image tag is set correctly on all posts in question.
This morning, I tried the debug tool here: https://developers.facebook.com/tools/debug. For one of the problematic links, (http://dezignlicious.com/blog/2013/02/a-new-york-story-discovering-city-knickerbocker/), the og tags are incomplete (url, title, description) BUT the image tag is correct and the preview shows the correct title and description.
Here's the rub: after I ran the URL through the debug tool, I was able to successfully post to Facebook and got a completely correct link preview.
THE QUESTION: Will updating the URL, title, and description og tags fix this problem? I assume there is a WordPress plugin that will allow me to add these additional tags per post. Can anyone recommend a plugin that they like for this functionality? I'm tempted to use "WP Facebook Open Graph protocol", but there is not enough data to confirm that it works with WP3.5.1 (which has been the case for every plugin I've looked at this week!).
I am attempting to embed Youtube videos into some of the infowindows in the following KML file:
http://www.jonangfoundation.org/files/newdef.kml .
The videos show up fine on Google Earth and KML Builder, but on this page they do not show up at all:
http://www.jonangfoundation.org/taktentest
Anyone know what could be keeping them from showing up?
Unfortunately your 'test' page does not load - Page Not Found error.
However, I think you need to set the correct MIME type for .kml files. Your newdef.kml is presented in my browser window as XML rather than downloaded as a .kml file. That might be your problem, it is hard to tell with nothing else to go on. check out this link for details about setting the right MIME
https://developers.google.com/kml/documentation/kml_tut#kml_server
Edit: I am not sure what is going on. Your KML code looks okay to me, and I see you have tried a few different approaches, none of which appear to work. I suggest you visit this SO question, as it's answer is something you could do to make it work.
Basically, you override the default behaviour when a placemark gets clicked, and allow iframes and javascript to be used in the balloon. It is the original way of getting around your problem (however I thought it was fixed in recent version of the plug-in. Maybe not?)
I believe your content is being scrubbed. See link for description and possible work around.
https://developers.google.com/earth/documentation/balloons#scrubbing
I've searched a series of forums and I've noticed that a lot of people had this same issue. I tried all the resolutions: using the longer Youtube URL like
http://www.youtube.com/watch?v=GkqS5DiF2_A
defining the width and height of the image, and I've tried using older versions of JQuery. I'm still receiving the error. I've linked all the images in the CSS file [incorrectly, but they are linked :)]. I've been trying to solve this for days and I'm not sure what I'm doing wrong.
Any help would be greatly appreciated. Thank you!
It appears that you have to add ?iframe=true to the end of the hyperlink
https://stackoverflow.com/===>http://stackoverflow.com?iframe=true
did the trick for me. Make sure you point direct to the web page you want to appear in the light box, not to the iframe.
I had the issue with WordPress,
I simply removed the alert.
file: /wp-content/plugins/prettyphoto-media/js/jquery.prettyPhoto.min.js
I use http://jsbeautifier.org/ to unfold the code
and comment line 350:
//alert("Image cannot be loaded. Make sure the path is correct and image exist.");
The links to the youtube video are not direct, you are using some kind of redirects. i suggest you use direct links to the youtube video
here is a demo of your site http://www.mediafire.com/?vj3l062uza7ov61 , see the left video