Tag Archives: web

How to encode WordPress content properly for sharing at Twitter? (Twitter web intents & share)

Wordpress encoding content for Twitter intent
If you want to create your own Twitter share button at your WordPress blog probably you’d hit an issue related with how content & URL variables are handled which causes some special characters like “&” to break the Twitter web intent/share URL . You have to encode the piece of content that you pass as a variable.

Twitter asks for proper encoding of your variables. You can read more about at Twitter web intents docs.

For the developers this issue is probably easy to solve with some common php functions like urlencode()

Meanwhile, if you’re a WordPress user and if some of titles of your posts involve special characters, you experience a glitch and at Twitter sharing window instead of a correctly typed symbols, you receive encoded characters. Most common case is receiving “%26”s instead of “&”s .

If you’re a wordpress user but not an avid developer, below is my solution that is based on javascript:

Share this information at Twitter

<a onclick="var msg='<?php the_title(); ?>';var url='<?php the_permalink(); ?>';var link='https://twitter.com/intent/tweet?url=' + encodeURIComponent(url) + '&text='+ encodeURIComponent(msg) + '&related=ogomogo&via=ogomogo'; window.open(link);" href="#" title="Twitter">Share on Twitter</a>

You have to insert this into your single.php file or index.php file or wherever you want the Twitter share button to appear inside the Loop.

“Hooking Users In 3 Steps: An Intro to Habit Testing”

The truly great consumer technology companies of the past 25 years have all had one thing in common: they created habits. This is what separates world-changing businesses from the rest. Apple, Facebook, Amazon, Google, Microsoft, and Twitter are used daily by a high proportion of their users and their products are so compelling that many of us struggle to imagine life before they existed.

Hooking Users In 3 Steps: An Intro to Habit Testing | Nir and Far.

cigarettes - habits - ashtray

“Safari is released to the world”

Insights and brief history of early days of Safari by Don Melton, one of the creators of Apple’s browser and WebKit project:

Safari is released to the world

During the early development of Safari, I didn’t just worry about leaking our secret project through Apple’s IP address or our browser’s user agent string. It also concerned me that curious gawkers on the outside would notice who I was hiring at Apple.

 

 

 

 

Sims @ Tusjuegos

Cualquiera quien jugaba los Sims en los años 90s va a tener una grata sorpresa al ver la sección de tusjuegos.com dedicado a los Sims.

Tusjuegos nos permite ver casi todas las versiones de los Sims juntas. Es divertido visualmente! Es verdad… Los Sims es uno de misjuegos! Esa malla de iconos a la vez es una muestra de la estrategia de como expandir el mercado proponiendo diferentes opciones a un publico muy diverso usando un idea y un producto inicial. No sabia que habian sacado una versión Medieval de Sims! sip

He sido jugador de vídeo juegos! Me gustan los juegos retro 🙂 y siempre buscaba vias alternativas para conseguir juegos que comprar juegos en cajas. Así mismo justo cuando descarga de juegos como todos los demás contenidos digitales esta despegando Tusjuegos llega en buen momento…