Plugin Directory

Changeset 525103


Ignore:
Timestamp:
03/29/2012 04:02:15 PM (14 years ago)
Author:
brokenlibrarian
Message:
 
Location:
simplesmileyreplace/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simplesmileyreplace/trunk/SimpleSmileyReplace.php

    r520719 r525103  
    22/*
    33Plugin Name: SimpleSmileyReplace
    4 Plugin URI: http://brokenlibrarian.org/tinyplugins/?page_id=15
    5 Description: Replaces standard smilies with one from a theme folder
    6 Version: 0.3
     4Plugin URI: http://brokenlibrarian.org/tinyplugins/simplesmileyreplace/
     5Description: Replaces standard smilies with ones from a theme folder
     6Version: 0.4
    77Author: Christian Wagner
    88Author URI: http://brokenlibrarian.org/tinyplugins/
    9 License: WTFPL
     9License: Apache v2
    1010*/
    1111?>
     
    2929<?php
    3030
    31 function simple_replace_smilies_src ($img_src, $img, $siteurl){
     31function simple_replace_smilies_src ($img_src, $img, $siteurl) {
    3232    return get_bloginfo('template_url').'/images/smilies/'.$img;
    33   }
     33    }
    3434
    35 if (file_exists(get_theme_root().'/'.get_template().'/images/smilies/'))
    36  { add_filter('smilies_src','simple_replace_smilies_src',1,10); }
    37  
     35if (file_exists(get_theme_root().'/'.get_template().'/images/smilies/')) {
     36    add_filter('smilies_src','simple_replace_smilies_src',1,10);
     37    }
     38
    3839?>
  • simplesmileyreplace/trunk/readme.txt

    r520719 r525103  
    1 ===SimpleSmileyReplace===
     1=== SimpleSmileyReplace ===
    22Contributors: brokenlibrarian
    33Donate link: http://brokenlibrarian.org/tinyplugins/
     
    55Requires at least: 3.3.1
    66Tested up to: 3.3.1
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88
    99== Description ==
    1010
    11 SimpleSmileyReplace is a plugin that checks for the existence of a "images/smilies/" folder in a theme. If that folder exists, WordPress uses the smiley files in that folder instead. The plugin assumes that the smilies have the usual filenames ("icon_rolleyes.gif", etc).
     11SimpleSmileyReplace is a plugin that checks for the existence of a _images/smilies/_ folder in a theme. If that folder exists, WordPress uses the smiley files in that folder instead. The plugin assumes that the smilies have the usual filenames (_icon_rolleyes.gif_, etc).
    1212
    1313It has no extra requirements and has been tested on the twentyeleven and twentyten themes.
    1414
    15 http://brokenlibrarian.org/tinyplugins/
    16 brokenlibrarian@gmail.com
     15http://brokenlibrarian.org/tinyplugins/ 
     16brokenlibrarian@gmail.com 
    17173/17/2012
    1818
    1919== Installation ==
    2020
    21 1. Create a folder named `/wp-content/themes/[ThemeName]/images/smilies/` and put a complete set of custom smilies in it, with the standard WordPress filenames.
    22 2. Upload the SimpleSmileyReplace folder to your `/wp-content/plugins/` folder and activate it.
     211. Create a folder named _/wp-content/themes/[ThemeName]/images/smilies/_ and put a complete set of custom smilies in it, with the standard WordPress filenames.
     222. Upload the SimpleSmileyReplace folder to your _/wp-content/plugins/_ folder and activate it.
    23233. No further configuration is required. The smiley codes and filenames are unaltered, only the location of the files is changed.
    2424
    2525== Frequently Asked Questions ==
    2626
    27 =What are the standard WordPress filenames?=
     27= What are the standard WordPress filenames? =
    2828
    29 An up-to-date list of smilies and filenames can be found in `/wp-includes/functions.php` by searching for the `$wpsmiliestrans` variable. As of WordPress version 3.3.1, this is the list (cut-and-pasted):
     29An up-to-date list of smilies and filenames can be found in _/wp-includes/functions.php_ by searching for the _$wpsmiliestrans_ variable. As of WordPress version 3.3.1, this is the list (cut-and-pasted):
    3030
     31`
    3132:mrgreen: => icon_mrgreen.gif
    3233:neutral: => icon_neutral.gif
     
    7273      :!: => icon_exclaim.gif
    7374      :?: => icon_question.gif
     75`
    7476
    7577== Screenshots ==
     
    7981== Changelog ==
    8082
     83= 0.4 =
     84* readme and source code cleanup, no other changes
     85
    8186= 0.3 =
    8287* initial release
     
    8489== Upgrade Notice ==
    8590
     91= 0.4 =
     92* optional update, code cleanup, no changes
     93
    8694= 0.3 =
    87 initial release
     95* initial release
    8896
    89 ==License==
     97== License ==
    9098
    9199   Copyright 2012 Christian Wagner
Note: See TracChangeset for help on using the changeset viewer.