Tag Archives: Twitter

Bootstrap 3 – Tooltip width

Say i have the following text field which i would like to show the tooltip on the right.

<input type="text" class="form-control" name="nickname" rel="txtTooltip" title="tooltip text" data-toggle="tooltip" data-placement="right"/>

 

Let’s invoke the tooltip in Javascript as follow:

$('input[rel="txtTooltip"]').tooltip();

 

The tooltip above has a limited width.
bootstrap-3-tooltip-width-1
Continue reading Bootstrap 3 – Tooltip width

Setup Yeoman in Windows PowerShell

Update @ 2015-09-23: Using PowerShell is just my personal preference, You could use MS-DOS in Windows if your machine doesn’t have PowerShell installed.

1. Download Node.js and install it and make sure you have the npm package manager selected before the installation.
setup-yeoman-in-powershell-1
 
Continue reading Setup Yeoman in Windows PowerShell

Create Google Plus Share hyperlink for specific URL

We have talked about how to create share link on Facebook and Twitter.
Create Facebook Share hyperlink for specific URL
Create Twitter Share hyperlink for specific URL

So this time is the Google Plus share link.

https://plus.google.com/share?url=<url>

 

https://plus.google.com/share?url=https://eureka.ykyuen.info/about
Continue reading Create Google Plus Share hyperlink for specific URL

Create Twitter Share hyperlink for specific URL

We can create a Twitter share hyperlink just like what we did for Facebook share as we mentioned before.
Create Facebook Share hyperlink for specific URL

For Twitter sharing, it can be done as follow.

http://twitter.com/intent/tweet?text=<tweet>&url=<url>

 

Try the following link.
http://twitter.com/intent/tweet?text=About+Eureka!&url=https://eureka.ykyuen.info/about
Continue reading Create Twitter Share hyperlink for specific URL

twitteroauth – Force User Login

twitteroauth is the first PHP Library to support OAuth for Twitter’s REST API. It is developed by Abraham Williams. You can download the source code @ GitHub and the example inside is quite easy to follow.
GitHub – abraham / twitteroauth
 

Unlike the Facebook API, the Twitter API does not support logout. If you want to increase the security, you can force user login every time when he/she clicks the Signin with Twitter button. This can be down by adding the force_login parameter in the GET oauth/authenticate request.
Twitter API – GET oauth/authenticate Continue reading twitteroauth – Force User Login