I'm attempting to use LinkedIn's Membership Profile Plugin found here:
http://developer.linkedin.com/plugins/member-profile-plugin-generator
However, every time I paste the code generated into my HTML document, nothing seems so show up. Forgive my ignorance if I'm missing something, I'm fairly new to HTML and CSS. After doing some searching I've seen a lot of talk about their API. Do I need an API key to get this to work? Or am I just missing something in my code?
Here is an example of the code I'm attempting to use:
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="(Profile URL)" data-format="inline"></script>
Thanks for any help.
It definitely has to do with the fact that you are accessing it through file://C:\ ... \mypage.html instead of hosting it on a server like http://myserver.com/mypage.html.
You can see the error in Chrome if you press F12 for Developer Tools, under Console. It is hard to find the original reason, because all of it is run in those scripts.
But the scripts work, and you can see it running if you just paste it in somewhere like W3Schools TryIt page
Try with your "linkedin short url". For Example: "https://www.linkedin.com/in/xy":
You can customize your public profile URL when you edit your public profile. Custom public profile URLs are available on a first come, first served basis.
1.Move your cursor over Profile at the top of your homepage and select Edit Profile.
2.Click the URL link under your profile photo. It will be an address like www.linkedin.com/in/yourname
3.Under the Your public profile URL section on the right, click the Edit icon next to your URL.
4.Type the last part of your new custom URL in the text box.
5.Click Save.
Related
So yesterday i was happily editing the theme of my tumblr blog and everything was working fine. Go into same blog to day and it brings up thsi when i click save:
"Un oh! We could't save your theme. Looks like your custom theme references assets from non-HTTPS Urls. Please try again using only HTTPS Urls."
Super confusing because not urls have been add since yesterday and everything was fine then. Same thing is happening with my other blogs with custom themes. I even went through and deleted all the urls on the html page just to see if it would do anything and the same alert came up. What is going on ??
Please help
Cheers
Just had the same problem. Tumblr updated their Encryption policies.
If you're a theme developer and you'd like to ensure your themes
support HTTPS, make sure that any externally hosted resources, such as
Cascading Style Sheets (CSS) or Javascript files, and even images, are
served using HTTPS.
As we now know that Tumblr requires that we use HTTPS instead of HTTP, here's how can we solve the error:
Make sure that you are in the customize section and access "Edit HTML":
In the "Edit HTML", press Ctrl+F (or press the Settings button and then "Find and replace"):
Search for "http" and Replace with "https" - apply that to all.
As the previous step can cause some links to be "httpss", this needs to be fixed. By accessing the Find and Replace and Search for "httpss" and Replace with "https".
The steps bellow should solve your problem. If they don't, see "Extra considerations" below, more specifically, point 1.
Extra considerations
I've done all the above, but it didn't solve my problem. What should I do?
When one has android-app://, for example:
<link rel="alternate" href="android-app://com.tumblr/tumblr/x-callback-url/blog?blogName=goncalomperes" />
One will need to add [https], as following:
<link rel="alternate" href="android-app:https://com.tumblr/tumblr/x-callback-url/blog?blogName=goncalomperes" />
As #mchid suggested in the comment, apart from android-app://, we will also need to do the above for: "//, ios-app://, and http-equiv.
Accordingly to Tumblr support:
Yet another update: SSL is now being turned on by default for ALL
Tumblrs that use our Official theme on the web. Even though we don’t
recommend it, you can still turn it off in your blog settings.
So changing the Encryption section to allow SSL should not be the problem.
Ok im a goose. Looks like tumblr has changed their requirements on http. I know it sounds obvious but i couldn't tell why it was happening on every theme apart from their default theme. The reason is you need to go in and change the tumblr links to css and java from http to https "http://static.tumblr.com/xlsgtjb/WEMoeha97/style.css becomes https://static.tumblr.com/xlsgtjb/WEMoeha97/style.css" If you still get the alert after this try searching for other urls and delete or change them to https
I have the same problem, and I thought all I have to do was changing the encryption to "Always serve blog over SSL" in the blog settings, like this: Blog settings, encryption
Apparently not, because the problem isn't just in the blog URL but also in the customization section.
So you need to enter the section, go through all the code, find the http URLs and change them into https URLs.
Before you begin, make a backup of your existing html in case there is an issue. There are a few ways to do this but I recommend doing both of the following.
First, select all in the Tumblr html editor and copy and then paste the contents into a text file text editor on your computer and save the file. This backup is preferred.
Next, save a copy of the html for your main tumblr page. You can use wget which will result in an index.html file or you can right-click on your page, select "view source" and then select all, copy, and then paste that into a text editor. If the preferred backup fails for whatever reason, this one can be used as an alternative.
Now, to fix the problem.
First, open the Tumblr html editor and left-click anywhere in the html code and then press CTRL+F to use the "Search For" and "Replace With" feature.
Search for: http:// and replace with: https:// and then click on All to replace all.
Search for: "// and replace with: "https:// and then click on All to replace all.
Search for: android-app:// and replace with: android-app:https:// and then click on All to replace all.
Search for: ios-app:// and replace with: ios-app:https:// and then click on All to replace all.
Search for: http-equiv and replace with: https-equiv and then click on All to replace all.
Finally, click on Update Preview to verify your changes. If everything looks good and your page displays fine, click Save.
As mentioned by others, the CSS fields are most important. If you are still getting an error, Search For css and click through the results while inspecting the code that follows under each CSS section to make sure all links are https. This is how I discovered "//
However it should be noted that, at least for me, the code did update despite the error. Even when I got an error, I noticed that the changes were applied and remained after closing and reopening the html editor.
I am searching for a best way to show WeChat profile in app after user click on link on some website.
I found some solution here but it's not working for me.
For example I tried these URIs:
link
Or in href attribute:
weixin://contacts/profile/{wechatId}
It's not working for me. After I click on this, WeChat app is opened and immediately closed. Or it show me not found error on Tips tab..
Is there some way to do it?
I think WeChat has not public profile webpage like facebook for now, you can only access other people's profile in the WeChat app by scanning a QR code or search by WeChat id/phone number. The code snippets that you mentioned above has been discarded by WeChat Official(But you may still can see it in some old official documentations).
If you still want to achieve this function, I recommend you just post your QR code in your webpage.
However, some people using the weixin:// as a bug to link WeChat to others apps. You still can generate a tickets like weixin://dl/business/?ticket=***. The *** contains your wechatid and is encrypted by some specific algorithms, which is not opened by WeChat official. And also, buying some third-part server tickets like this to get the jump link works for now but not stable.
Is there a site I can open in my browser like Codepen, JSbin, etc that actually serves my code instead of just runs it in the current window?
There are cloud IDEs and so on but I just want a way to throw up some code as easily as Codepen but puts it on a static server and gives me the URL.
You talk about using Codepen in your question. Currently, Codepen does provide a way to serve a static version of anything you post, with a static URL. To get the URL, open the Codepen pen, and look for the button that says "Editor" (at the time of posting this, it has an aqua bar near it). Click on the Editor button, and look for "Full Page". Just to the right of "Full Page", there should be a small link you can click that reads "Get URL".
I'm unsure if this answers your question, as the question is a tad unclear, but I believe I've done what I can to parse what you're asking.
It's my first time to add a python script into by blog, after some Googling i found that i easiest way is to use Gist, i posted my python script into Gist, i choose a python language and create public Gist, the result "Embed this gist" was a javascript
<script src="https://gist.github.com/anonymous/7842985.js"></script>
now when i paste this code into my blog and click on preview or publish, nothing appear but the same java script !
any idea please .
1.Sign in to blogger and create/edit a post
2.Click on "HTML" and not "compose" and then paste your script.The save without again clicking on compose.
(source: ctrlv.in)
Just change to “Interpret typed HTML” under Post Options -> Compose Settings in blogger
You need to switch to HTML mode instead of WYSIWYG editor. Then add the JavaScript code in place you need.
However if you switch back to Compose mode the snippet won't appear!
You have to click Preview to see it.
Also try solution mentioned here Issues adding github gist to my blog
I am new to this.
Can any one tell me why my HTML page which is hosted in Google Drive, cannot redirect to a particular webpage while URL is shortened in GDRIV .
my html file content was
<html>
<body>
<p>you will be redirected soon.</p>
<meta http-equiv="refresh" content="0; url=http://examplesite.com">
</body>
</html>
I shared the Folder to the public and it was working fine, but the URL was bitty flabby like
https#://googledrive.com/host/0BXXXXXXXXXXXXXMGM/site.html
So I shortened the URL with the help of GDRIV
and i got a decent short URL something like
http#://gdriv.es/XXXX/site.html
But the redirecting function is no more working while using the shorten URL and work fine with that clumsy URL
Can any one tell me why this happen and well I think it is irrelevant to ask you tat ' Can i use PHP coding in Google drive hosted sites? '
It works. I did same thing in above example you provided and it did redirect my gdriv.es shortened address to redirected website.
Of course I assume you are aware of typo you made by adding # in your URL.
If it still doesn't work for you there is a "Send Feedback" link at the bottom of gdrive.es main page.
Fill that form and I'm sure they'll check that problem.
For your second question: No, you can not use PHP or any other server side scripting language on Google Drive Hosted Web Sites.
However you can use Google Apps Script which works under Google Drive and it uses Javascript language. You can do many things with GAS, one of them provides you a facility similar to PHP: HTML Service.
One caveat though: It has a javascript sanitization mechanism called CAJA. Meaning you can't just run any javascript code you like. Check last link for restrictions.