Archive for the 'webdev' 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 !

 

26
Sep
10

MySQL Can’t create/write to file MYI Error

If you’re a McAfee Antivirus user and you get this kind of message in phpMyAdmin whenever you perform a query on your DB :

“Can’t create/write to file ‘xxx.MYI’ (Errcode: 13)”

Just exclude the MYI and MYD filetypes from your antivirus detection system (add them to Exceptions).

26
Sep
10

cannot send mail from localhost using smtp (xampp/wamp)

You’ve activated the email function using stmp (see this post ) in your localhost xampp/wamp and you still can’t send mails ?

This is maybe due to the fact that your ISP requires username/password authentication, this how to proceed:

  1. Open your php.ini file (xampp\apache\bin\php.ini for xampp users),  in [mail function] comment out the entire “Win32 only”section and uncomment the “Unix only” (sendmail) section:
  2. [mail function]
    ; For Win32 only.
    ;SMTP = localhost
    ;smtp_port = 25

    ; For Win32 only.
    ;sendmail_from = me@example.com

    ; For Unix only.  You may supply arguments as well (default: “sendmail -t -i”).
    sendmail_path = “c:\…\sendmail\sendmail.exe -t”

  3. Download this version of sendmail and replace your current sendmail file (\xampp\sendmail\sendmail.exe for xampp users)
  4. Open your sendmail.ini file (\xampp\sendmail\sendmail.ini for xampp users) and fill in the appropriate fields:
  5. smtp_server=
    smtp_port=
    auth_username=
    auth_password=

  6. Save and restart xampp/wamp

It should work.

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 !




Follow

Get every new post delivered to your Inbox.