Archive for the 'ajax' Category

29
Dec
11

Openinviter Twitter Plugin ‘Unable to get contacts’ Error Fix

If you’re using Openinviter, you probably got this error while trying to use the Twitter service:

'Unable to get contacts'

Same thing will happen using the online demo.

This is due to a recent Twitter update forcing SSL on mobile version (The Openinviter plugin is not using the official API methods but a clever interaction with the mobile version of Twitter).

To fix that issue, just open the /OpenInviter/plugins/twitter.plg.php file and change all the http references to https.

Btw, this will also fix the send invitations problem (if you ever succeeded to get contacts).

It should work flawlessly 

20
Dec
11

Facebook Open Graph tags for WordPress

Maybe you heard about the Opengraph Tags used by Facebook ? Basically “including Open Graph tags on your Web page, makes your page equivalent to a Facebook Page”:

http://developers.facebook.com/docs/opengraph/

And yes, you’ll get a nice like Thumbnail of your web page using this stuff (knowing that the share function is now deprecated: http://developers.facebook.com/docs/share/ and has been replaced with like).

This is a quick code for WordPress (minimal tags), just adapt, then copy & paste to your wordpress theme header:

Continue reading ‘Facebook Open Graph tags for WordPress’

20
Dec
11

Find out the source code source :]

Wondering about the license, version, and the original project of that piece of code you’ve got ? Just use this new search engine to find out:

antepedia

http://www.antepedia.com/

20
Dec
11

Howto: Display home link in wordpress menu

Good trick:

http://www.wpbeginner.com/wp-themes/how-to-show-home-page-link-in-wordpress-3-0-menu/

20
Dec
11

Get a rid of all IE7 problems

Internet Explorer 7 getElementById killer, this saved my life:

http://www.impressivewebs.com/avoiding-problems-with-javascript-getelementbyid-method-in-internet-explorer-7/

20
Dec
11

Using wordpress native lightbox

Don’t bother yourself installing 3rd party plugins, use the classy WordPress native lightbox, read more here:

http://manchumahara.com/2010/03/22/using-wordpress-native-thickbox/

11
Nov
11

Get RSS feed of a Twitter account

There’s a very simple trick to get the RSS feed of any Twitter account, check it out:

Twitter account: http://twitter.com/#!/w3c

RSS Feed: http://twitter.com/statuses/user_timeline/w3c.rss

Most of all, it works for any Twitter account !

 

25
Sep
10

Joomla Language Variables Override

I you’re already using Joomla Overrides , you’ve probably wondered how to also override language variables and not only output, here’s the solution:

  1. Create a language file for you template, ie:
  2. /language/en-GB/en-GB.tpl_templatename.ini

  3. Add the following line to your output overrides:
  4. JPlugin::loadLanguage( ‘tpl_templatename’ )

That’s it !

25
Sep
10

How to do a Chrome/Opera specific stylesheet

You’ve probably wondered how to load specific CSS stylesheets for Chrome, Safari and Opera, some kind of <!–[if Chrome]> CSS conditional comment. Unfortunately these conditional comments work only with the IE Series.

There’s an easy PHP solution to recreate this behaviour for other browsers, the excellent browser detecting script remade by Chris Schuld, this script will let you use this kind of code in your XHTML views:

<?php $browser = $browser->getBrowser();?>

<?php if($browser == Browser::BROWSER_CHROME || $browser == Browser::BROWSER_SAFARI):?>

<link href=”css/chrome-safari.css” type=”text/css” rel=”stylesheet” />

<?php endif;?>

In this example I deliberately took Chrome/Safari: Using a very similar version of Webkit HTML Engine, both render quite closely web pages, so you can use the same CSS file for both of them.

There’s an exhaustive list of supported browsers, even the iPhone Safari version and Lynx are handled by the script.

25
Aug
09

Howto: Enable localhost mail function on XAMPP

You’ll find a lot of tips about how to do that, this is what worked for me ( SMTP only icon_questiongif )

Open xampp\apache\bin\php.ini

Check the line :

[mail function]
; For Win32 only.

And enter your SMTP Server parameters :

SMTP = yoursmtpserver
smtp_port = 25

It should work.




Follow

Get every new post delivered to your Inbox.