Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Create excerpts from text block from your wordpress content and add links page / post from the guid.
0
1723
posted 15 years ago by prwhitehead
works in all the major browsers that support adding to bookmarks, FF, IE, Opera. Safari and Chrome dont support this, so for them, a nice message :)
1
1854
posted 15 years ago by prwhitehead
In the User settings, there is a web form called Contact Info. It has input fields for the user’s AIM account, Yahoo IM account, and so on.
But how about Twitter? What about Facebook? Out of the box, the Contact Info panel doesn’t have these i...
0
1733
posted 15 years ago by blueocto
This is a great place to add your own custom Help text for a client. You can even customize it for different Admin panels. For example, you can add a different Help text for the Add New Post panel and another one for the Comments panel.
Here’s h...
0
1564
posted 15 years ago by blueocto
It’s possible to disable it conditionally for each WordPress user by going to Users > Your Profile. However, if you want to remove it completely, you can add the following filter:
0
1541
posted 15 years ago by blueocto
The special characters in the file name caused problem when the exported to iphone application.
0
1613
posted 15 years ago by punuhan
I pinched the get_avatar() function from the wp/wp-includes/pluggable.php file and commented out the setting of the avatar as an <img> tag and returned the actual image url instead.
0
1445
posted 15 years ago by camdagr8
This is how you can add a file/image upload tool to your forms and have AJAX store the file with PHP and return a thumbnailed version to the user for display on the form. Nice.
2
1821
posted 15 years ago by jquery4u
Use jQuery get rss (with JavaScript) to get a blogs (or websites) display rss feed on your web page.
1
1405
posted 15 years ago by jquery4u
This is how you can create page box elements that are loaded via AJAX and can be refreshed instantly without a whole page reload.
0
1342
posted 15 years ago by jquery4u
These days when you are using forms you need some sort of protection from bots and spammers.
2
1321
posted 15 years ago by jquery4u
So today I created a html image map which creates dynamic links based on the color of the pixel that the user clicked.
0
1457
posted 15 years ago by jquery4u
simple pass the file name and that file will be available for download
0
2572
posted 15 years ago by kumar_sekhar
Simply define your POSTURL and POSTVARS in name = value string format. It will post the form.
0
1869
posted 15 years ago by kumar_sekhar
An example of Karatsuba algorithm for multiplication of n digit numbers.
0
1578
posted 15 years ago by josepino
Brilliant solution using Object.prototype.toString()
Test cases included (commented out)
0
1300
posted 15 years ago by wizard04