Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 32 33 34 35 36 ... 147
Writes to a text file, test.txt, instead of email for the purposes of testing.
0 1493 posted 14 years ago by hotdiggity
PHP 4.1
0 1514 posted 14 years ago by hotdiggity
Add to bottom of your theme's functions.php file
0 1330 posted 14 years ago by RainyDayMedia
Once we login and are in the backend of WordPress, there is another small logo of WordPress displayed on top. It’s small but if you wish to change it, then add below code to the same functions.php file we created in above step.
0 1438 posted 14 years ago by jamiebrwr
When a client wants to access the WordPress admin, the first thing they will notice is the login page with a WordPress logo. Wouldn’t it be better if this page had the logo of your client’s company or maybe yours? There are many simpler ways to d...
0 1630 posted 14 years ago by jamiebrwr
Change the small logo at the top of the dashboard: Just add to the bottom of your theme's functions.php file
0 1540 posted 14 years ago by RainyDayMedia
Add to bottom of your theme's functions.php file
0 1301 posted 14 years ago by RainyDayMedia
Removing the generator tag for security purposes... add to the bottom of your theme's functions.php file
0 1385 posted 14 years ago by RainyDayMedia
Add to the bottom of the your theme's function.php file. Change to your site's name
0 1820 posted 14 years ago by RainyDayMedia
For those of use who use Wordpress as a CMS, this gives you the option of hiding all your dashboard widgets, for all users. <br>**Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it at the bottom of y...
0 1828 posted 14 years ago by RainyDayMedia
add this in functions.php
0 2656 posted 14 years ago by IronMANro
Paste this code at the top of your .php file. You can choose this new site template when creating a new wordress site.
0 803 posted 14 years ago by rofthedeep
<?php> will random load images named (in this example) image_1.jpg up to image_5.jpg
0 2590 posted 14 years ago by DeluxiveState
With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable t...
0 1893 posted 14 years ago by FatFolderDesigner
You can use this in Joomla extensions where you need to get the current language locale for example to use with Facebook Connect/Like plugins etc. in the "en_US" format. With facebooj JS, all you have to do is replace the default locale with the resu...
0 1871 posted 14 years ago by burconsult
It's not immediately clear from the `context_set()` function how to trigger a context to be "active" using code. Do it like this:
0 1402 posted 14 years ago by jonathanpglick
This small snippet can be used to get the children and grand children of a Wordpress page. See the comments for how it works
0 2278 posted 14 years ago by jvandemerwe
0 2553 posted 14 years ago by jose_506
1 2883 posted 14 years ago by jose_506
0 1390 posted 14 years ago by jose_506
Using the ID of a page, you can get the content, the featured image and the title to power widgets in your template.
0 1484 posted 14 years ago by mejamiewilson
0 1271 posted 14 years ago by distribuida
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0 2985 posted 14 years ago by TimoZachi
A couple of ideas and options...
0 1256 posted 14 years ago by stefpretty
A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.
0 2023 posted 14 years ago by TimoZachi
This code snippet gets all information from a YouTube video (title, description, duration, thumbnail url, thumbnail width, thumbnail height, etc..) using the video id and YouTube API.
0 4556 posted 14 years ago by TimoZachi
0 2255 posted 14 years ago by kspal
1 ... 32 33 34 35 36 ... 147