Double action links - hyperlink

I am building business websites for multiple clients and I would like to be able to create links that do two things at once. Specifically, when visitors click an image on the website, in addition to going to the location the link specifies, I would also like to send a pre-determined text to the business owner's cell phone. Is this possible.

It is indeed possible. You'll need to call a php file with two parameters. One parameter should be the link where the user should be redirected, the other parameter would need to be the message you want to send to the owner.
i.e. your link would need to look like this:
link text or image
Then you need to prepare your php to get these parameters. First you need to send the text message, (tutorial for this can be found on this link: http://davidwalsh.name/send-text-message , and after the message is sent you need to redirect to the link you've got from the parameter. In php, you can read the above sent parameters like
$redirectlink = $_GET['url];
$message = $_GET['message'];
I hope this helps you resolve your issue.

Related

Twitter Card Validator - Link to specific URL

I would like to give someone a link to check how a URL would look on a Twitter card. Currently, I send them to https://cards-dev.twitter.com/validator and ask them to type in the URL. It would be more convenient to simply give a link that auto adds their URL.
Like this example:
https://cards-dev.twitter.com/validator?url=https://google.com
Any way to do this?
The Twitter cards validator does not support having URLs passed in like that, so unfortunately this is still a two step process.

Canonical URL formatting issue causes Facebook to interpret mobile URL as a different URL

I need to format this canonical URL and I cant figure out how! I've looked around the web and this site a lot and I've realized that I need a specific answer.
Problem Description:
My BLOG's desktop view has (say) URL: www.x.com/page.html
The same page in mobile view URL would be: www.x.com/page.html?m=1
Its all good and dandy to this point, but the problem comes when I use facebook comments with this. It parses url based on this: www.x.com/page.html
So, it is identifying ?m=1 in the end of the first URL as an entirely different URL.
i.e
It is treating those two URL as different
Both of them are URL for the same page and I want them to be treated the same
Could anyone provide me a way to check if the loading page is ?m=1 and if it is ?m=1 then remove the ?m=1 when sending it to facebook?
I WOULD GREATLY APPRECIATE IT IF THE SOLUTION IS INLINE if it is not inline, oh well, I just need a solution right now.
Current code snippet used is this:
<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' height='110' width='560'/>
Let me break the question into small parts(incase someone is not a native speaker and wants to help/learn about this problem)
I want to detect if the loading page has ?m=1 in its URL or not. The canonical URL for this is data:post.url applied as
expr:href='data:post.url'
If a ?m=1 is detected from data:post.URL , I want to remove it and send the remaining URL into expr:href= so that both my URLs
are identified the same when my website displays facebook comments.
Click the image link below to look at this image please. This is the same URL but the
comments are being sent to me as if they're from different URLs. I
want them to appear under the same thread.
This is it--> http://i.stack.imgur.com/M7fK2.png
I haven't found this particular answer anywhere and I am hopeful that
some creative solutions will pop out in this site!
In your code
<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' height='110' width='560'/>
Use data:post.canonicalUrl instead of data:post.url
This is the Blogger's layout tag for getting the Canonical URL of a blog post (This will always default to the blogspot.com domain, so there won't be ccTLD issues as well)

Google Analytics Custom URL Reorting

I have used custom url builder to build custom url and submitted to different directories.
URL is
?utm_source=directory&utm_medium=referral&utm_campaign=DirectoryReferrals
Now i am stuck with reporting coz it shows source as "directory" thats what i need it to show but full referral part is showing as not set.
How can i get full url of the referral source? Need help as soon as possible.
Is there any way to get the url of the referral?
I think you may be misunderstanding the usage of the utm_source parameter in the context of custom campaigns. It wouldn't be used to get the source URL that you used when tagging your campaign, but rather it should show the source where the campaign is originating from, for example advertiser, site (eg. "google"), publication (eg. "newsletter", "billboard"). More information on campaigns can be found here: https://support.google.com/analytics/answer/1033863. Also some good info on why you are getting "not set": https://support.google.com/analytics/answer/2820717?hl=en.
If you are trying to see where traffic is coming from, eg. www.google.com, www.facebook.com, then you wouldn't use custom campaigns for that.
Hope this helps.
I agree with Nyuen, you might have misunderstood the concept of UTM tracking code.
I would suggest that if you want to know that from which referral source you got the traffic then you can write it under UTM_SOURCE.
Suppose if you have promoted your post in the Facebook and Google, then in the UTM_SOURCE you can write Facebook there.
Example:
http://www.grazitti.com/resources/webinars/5-must-have-features-for-your-service-cloud-implementation.html?utm_source=Twitter&utm_medium=Webinar_Tweet&utm_term=Service_Cloud&utm_campaign=Social
Hope this Works :)
You always able to find your refferal traffic under > Acquisition > referral even you tagged link with utm.
If it's not help, please upload some screenshot.

Using Gmail message source, generate direct link

So using the gmail message source is it possible to generate, a link to the message/thread in GMail's own interface?
on http://productforums.google.com/forum/#!topic/gmail/goChl1gG0NQ they use the following
https://mail.google.com/mail/#all/<HexEncodeMessageID>
Is this related to the Message=ID header found in the mail's source?
Message-ID: <SomeID#SomeID.mail>
The discussion Find Gmail url-IDs via IMAP seems to only give IMAP based solutions.
Update
This bookmarklet no longer works. See Benjamin Ziepert's update.
Original Answer
I decided to make a bookmarklet to help automate this.
javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: <(.*)>/i)[1])+"/"+encodeURIComponent(window.location.search.toString().slice(1).split('&').filter(function(x){return x.slice(0,3) == "th="})[0].slice(3));
Save this link on your bookmarks bar.
To get a direct link to a message, choose "Show original" on the dropdown for that message, and then click the bookmarklet on the new page that opens.
If anyone has suggestions for a clean way to do this without having to click show original, I'm all ears.
The "HexEncodeMessageID" that you refer to (and that occurs in links such as https://mail.google.com/mail/#inbox/14197d2548c9da1a) is unfortunately different from the RFC822 message ID (which occurs in the source of the email).
I do not know of any way to get a direct link to an email using the RFC822 message ID, but it is possible to search for a particular RFC822 message ID in Gmail (see GMail doc):
in:anywhere rfc822msgid:SomeID#SomeID.mail
You can turn this into a link:
https://mail.google.com/mail/#search/in%3Aanywhere+rfc822msgid%3ASomeID#SomeID.mail
(Don't forget that the message id should be URL-encoded. You can also just type the search in your GMail and copy the resulting URL afterwards.)
The problem with this link is that it does not send you to the mail directly, but to a search result page with a single hit. But this might be good enough for some applications.
The advantage is: The RFC822 is the same in your account and in the account of the sender. So if you want to refer to a given email in an email/chat, you can provide this search link (assuming the recipient also uses GMail). With the "HexEncodeMessageID" this would not work, because it is different in every account (according to my own experiments).
One last thing: the link only works when you are already logged in.
Here's an updated bookmarklet over what Benjamin Ziepert suggested. Basically with removed /u/0 part to make it a little more account-independent.
javascript:window.open("https://mail.google.com/mail/#search/rfc822msgid%3A" + encodeURIComponent(document.getElementsByClassName('message_id')[0].innerHTML.slice(4, -4)), "_self");
Usage: Save this link on your bookmarks bar. To get a direct link to a message, choose "Show original" on the dropdown for that message, and then click the bookmarklet on the new page that opens.

putting userid (or username) in url as querystring in Desire2Learn

I need to put a link in D2L to an external website. When the user click the link, his username should be included in the url, something like: www.abc.com/index.aspx?username=user1
Is there any parameter that can allow me do that easily? Like: index.aspx?username={userid}
Thanks!
I believe that the user name of the currently-logged-in user is one of the replacement strings that you can use in links placed in the LMS' UI. However, replacement strings do not get processed in all the places you could put a link in the LMS: for example, if you write a link into a discussion thread post or the like, I'm not sure that a replacement string used there would get expanded.
If you search on the web for "Desire2Learn replacement strings", you'll find a variety of pages hosted by various educational institutions that document a list of replacement strings that might work for you (in fact, {UserName} seems to be the one you want).
You should be aware thought that when you use a replacement string in an outbound URL that sends the information in the clear through the network: you may want to do this with caution, for privacy/security reasons.

Resources