Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A way to check if a static block is enabled/disabled in the backend.
0
964
posted 11 years ago by apani
A fast description of an sql cell with comparison and response.
0
603
posted 11 years ago by cameronjrc
user modding for a forum based gaming website (file used in password protected directory)
0
645
posted 11 years ago by cameronjrc
This simple functions scans the user agent for the word "android" and returns true if found. Useful if there's something you only want android visitors to see (or not see).
0
1179
posted 11 years ago by stianlagstad
Automatically link Twitter usernames in WordPress - Paste the code into the functions.php of your theme
0
1196
posted 11 years ago by ederwp
This snippet is great for someone creating a wp theme which supports RTL as well as LTR since in enables you to use one function for multiple instances.
0
512
posted 11 years ago by sagive
- Check if any particular customer is currently logged in or not.
- Get all the logged in customers with their recent activity.
- Courtsey: <a href="http://ka.lpe.sh">http://ka.lpe.sh</a>
0
1049
posted 11 years ago by magefreak
In wordpress, if you want to auto convert all URLs in your string into clickable hyperlinks, you can actually do it using the built-in function make_clickable().
If you need to do that outside of wordpress, you can use the same function.
Example...
2
1997
posted 11 years ago by fackz
The module allows prestashop store owners to place Facebook comment box under each product / post page where users can post comments using their Facebook ID and this helps in reducing number of spam comments.
0
2713
posted 11 years ago by fmemodules
This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.
0
767
posted 11 years ago by laurikar
La función del SDKphp de facebook 'notifications' envia una notificación por parte de la aplicación al usuario que quieras (que haya aceptado tu aplicación).
0
796
posted 11 years ago by serialk89
this is a simple script to take iframe parameters and build an iframe via a shortcode
1
867
posted 11 years ago by bitsculptor
Here's the basic principal behind spiders. (ex: <a href="http://giochiflash.123homepage.it">Giochi Flash</a> $html = file_get_contents('http://www.example.com');
6
4407
posted 11 years ago by haydin
The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. (ex : <a href="http://giochionline1.123homepage.it"> giochi online...
0
1130
posted 11 years ago by haydin
Add this snippet to `wp-config.php` to remove the file editor links from the WordPress admin menus. Read more about... [disabling the WordPress file editor](http://www.orderofbusiness.net/blog/disable-wordpress-file-editor/)
0
736
posted 11 years ago by tacudtap
Validating an email address is one of the hardest feats on the web. A valid email can be marketing
gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular
expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-...
1
1013
posted 11 years ago by mafhh14
This is a combined version of Bill Erickson's hide post editor and rilwis' Metabox include for specific IDs. It hides the editor for a specified post ID. You can have multiple IDs, just separate with commas.
1
875
posted 11 years ago by rickahontas
This snippet shows how to retrieve information from the SEO plugin of Yoast, to be used for front-end use. This snippet is taken from the opensource free Nexus WP framework supporting front-end editing, custom layout and drag & drop.
0
882
posted 11 years ago by barkgj
This snippet is a lambda function (anonymous function) to create an xml from an array. It uses recursiveness.
1
1048
posted 11 years ago by abrahamsustaita
Monster.com Clone v6.3.8 is a ready Job-Portal and the best clone of Monster.com. The script comes packed with tons of essential features.
0
741
posted 11 years ago by iTechScripts
Disable (remove) some sidebars, or widgets at all in **Wordpress** on page template with suffix in the template name (*-no-widgets.php, *-no-sidebars.php)
1
835
posted 11 years ago by Internet-Uzver