Link in Zend view is encoded with strange characters [closed] - zend-framework

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I'm using Zend view with phtml template file and trying to render a link
<a href="<?php echo $this->link; ?>" target="_blank">
It seems I have a problem with url link:
For instance, a part of the url is &ID=1234. The problem is that for some reason, the & and especially the = chars in the url are converted to %20 or something weird and override the ID value, thus clicking on the link returns a broken link which looks like this- &ID%20709 (it changes the ID value completely).
Here is a real example for the original link
https://www.Domain?view=fmv&id=117096916228&person_id=117096916228&photo_id=11098893743
and what it looks like when it renders in the view
https://www.Domain?view=fmv&id%207096916228&person_id%207096916228&photo_id%20098893743
Please advise.

Try changing manually the '&' and '=' to an Html entity - http://dev.w3.org/html5/html-author/charref
This would be a 'hack' but might work.

Related

Can't register app in SoundCloud developer [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
When I try to register app SoundCloud page redirect me to Google Forms, where I fill all inputs. On submit I receive a message: "Looks like you have a question or two that still needs attention.", but there are no blank inputs. Any advice?
I had this issue also and when I changed the app URL and the redirect URI to something simple, for example 'http://www.appname.com' (as oppose to my localhost address), it seemed to work.
I have to say the new app sign-up on SoundCloud is pretty terrible, used to be so much more straight forward.
Hope this helps!
If you look at the API docs it specifically says that the scheme needs to be https, but after 6 hours trying to install the SSL, giving up on it the and one last look at the google docs I realize that it said http or https!

How can I get the highlighted text from PSPDFKit? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I am using PSPDFKit to let users highlight text in a document. Is there anyway to get the actual text that was highlighted? So in the following example, I would like to get the text "the good and bad" when the user highlights it.
Looking at the PSAnnotations, I've tried the value and contents properties but neither gives me what I want.
I'm the CEO of PSPDFKit GmbH.
All you need to do is get the PSPDFHighlightAnnotation (e.g. via annotationsForPage:type: in PSPDFDocument and then call highlightedString on it.
Please be aware that this is only an approximation. We only know the position of each individual glyph on the page, and from that, PSPDFKit tries to reconstruct words, lines and text boxes. So highlightedString might not always return 100% what you'd expect, especially if the PDF is not well-designed. But in general, it's quite good.

I want to choose specific thumbnail from post when I share Blogger post to my FB page. [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
FB sometimes offers me a couple of pics from the blog post as thumbnails, but other times just my blogger profile pic which I DO NOT want to use. I have trawled though questions but actually don't understand the answers. Sorry. I speak 3 foreign languages but html is not one of them.
Please could someone explain in simple language what to do?
I reiterate - I have in the past received a a choice of pics, and that was incredibly easy. I don't understand why this has stopped and now I suddenly need a degree in computer programming to do what Facebook offered without problem previously.
Hmmm, its not that complicated. Go to the below link and provide your URL. It will list all the meta tags it sees on the page. To keep it simple, meta tags are just few more extra lines of HTML used to describe your page.
https://developers.facebook.com/tools/debug
Among the shown items, your should see a attribute named "og:image". OG image however have a set of rules to be followed like size and dimensions. The OG image is the image shown on the post. I would suggest that, you test your URL here before posting to Facebook. If it shows a image different that the one you wanted, try adding the below line inside the HEAD tag of your HTML.
<meta property="og:image" content="<URL_TO_YOUR_IMAGE>" />
Replace the <URL_TO_YOUR_IMAGE> with the actual URL to the image that you want to appear in your post. I hope I have given simple enough instructions to follow. In your case, since you are using a blogger, I'm not sure how you can control the SEO tags (or meta tags) in the website. In wordpress, there is a SEO plugin which we use to set the SEO properly.

How can I change Facebook comment iframe position? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In my Wordpress blog, I want to change the Facebook comment iframe position in my single posts.
It is currently at the end of the post but I want to move it to under the line to the "No Comments yet." part.
You have added the code in the wrong position.
You need to remove the code from inside <div class="entry"> place and move it the bottom inside of <div id="comments">.
If you provide us with the simplified code you are using, we can show you where it needs to be placed.
Update: Since you are using wordpress, then you may have to contact the developer to ask them to change it. If you are using placeable code, then please show us.
Like #Jason said, 1) ask the developer or 2) edit the plugin yourself (kinda hard).
3) Use the Facebook comments https://developers.facebook.com/docs/reference/plugins/comments/ and place it as you like!

How can I use mailto in a MVC Html.ActionLink? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am currently moving a site over to MVC with great success, but I have a couple of pages which have a mailto link on them. Is there a way to get this to work with Html.ActionLink?
LinkText
With MVC model
E-mail
Html.ActionLink is meant to do just that, render a link to an action method URL; a mailto: link is a special case, a pseudo-protocol which is acted upon by the client's browser.
Just use a straight HTML anchor tag in your view, there's nothing wrong with doing that.