Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
bei joomla in alle index.php - index3.php dateien schreiben die im root und im administrator Verzeichnis zu finden sind.
0
608
posted 15 years ago by nico65
Recently moved my Wordpress blog to a tumblr account while I was removing a hosting account, wrote this script to do the transfer for me using Wordpress' Export feature and Tumblr's API.
It's rough around the edges but gets the job done!
2
1352
posted 15 years ago by shakefon
This is a simple script that will allow you to crop an image that you upload from a form.
1
880
posted 15 years ago by aristoworks
Transform text (eg. from a WYSIWYG) into nicely formatted HTML paragraphs. (Credits: Ludo Magnocavallo's LightPress).
[this is a solid starting point - but a lot of HTML elements are missing]
3
659
posted 15 years ago by iroybot
This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.
3
1388
posted 15 years ago by kristarella
This provides a teaser, with content from a custom feild, or the excerpt if no field exists. Everything except the title and edit link need to be turned off in the options.
3
826
posted 15 years ago by kristarella
displayed filename and line number.
//normal use
d( $arg );
//some arguments
d( $arg1 , $arg2 , ... );
0
634
posted 15 years ago by ikimozu
Generates an options list of years for a select box, going from current year backwards through the number of years specified in the first variable.
Useful for birthday fields on signup forms.
eg. 2009, 2008, 2007, 2006 ... 1912, 1911, 1910, 190...
3
1103
posted 15 years ago by iridium
this is how to automatically get short urls for your blog posts in wordpress,
What you need
is to decide which tinyurl service you will be using and get its api URL,
for example rinyurl.com , bit,ly, tr.im,
here are the api URLS for the mo...
0
906
posted 15 years ago by nerdsane
This is a snippet to assign an active class to active links when the navigation is included in a php file.
1
705
posted 15 years ago by grazz
Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules
2
642
posted 15 years ago by sfjalar
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
3
765
posted 15 years ago by goddess