melnikov.net.ru


Posts tagged with 'plugin'

Mask Wordpress version number

2008-02-09 08:03

This is the text of simple plugin that hide real Wordpress version number from evil eyes. Don’t treat it like the single security fix for your Wordpress install, it’s just one simple step in security process. (read more…)

Метки: plugin, security, WordPress | Comment this! »

Wordpress Plugin: Theme Icon for Admin Panel

2006-11-10 05:22

This plugin will show ’shortcut icon’ (usually from ‘favicon.ico’ file) from your current theme as shortcut icon for admin panel of your blog.

Usually you just need to drop your favicon.ico file in root of your html and it will shown without any plugins. But in my case I used one install of WordPress for couple of sites, so solution was to put icon to theme folder and specify it in theme ‘header.php’:
<link rel="SHORTCUT ICON" href="<?php bloginfo('template_url'); ?>/favicon.ico"></link>

But such solution works only for result pages, not the WordPress Admin Panel, so here is special (small) plugin. Download file, rename it to *.php, put to your plugins folder and activate in ‘Plugns’ menu.

Метки: plugin, WordPress | Comment this! »

Wordpress Plugin: Dates for Humans (Russian version)

2006-02-23 02:34

Сегодня написал ма-а-аленький плагин для WordPress, который решает две задачи:

  1. Функция mnr_human_date() показывает дату записи (или любую другую дату) в виде строки ‘Сегодня’, ‘Вчера’, ‘3 дня назад’, ‘61 день назад’ и т.д.

    Параметры:

    • $echo: true, если полученную строку сразу выводим на экран, false, если возвращаем строку в месте вызова
    • $date: дата в любом формате, который поймет PHP-функция strtotime(); если дата отсутствует, будет использоваться дата поста (внутри Wordpress The_Loop, естественно)
    • $firstLetterUpperCase: true, если надо начинать слова ‘Вчера’ и ‘Сегодня’ с большой буквы

    Собственно, это чуть переделанная функция из плагина Dates for Humans; его автор Troy Mcilvena).

  2. Функция mnr_numeral_noun_ru() подставляет после числа русское существительное с правильным окончанием (FixMe: дописать доку)

mnr-human-dates-ru.phps (v0.1)

Метки: plugin, WordPress | Comment this! »


  • Tags

    IT
    unix
    windows remote
    webTech
    inEnglish
    mobile
    xen
    linux
    php
    GPRS
    plugin
    GSM
    windows
    RAID
    USB
    grub
    ups
    serial
    hardware
    modem
    virtualization
    virtualBox
    DIY
    blogs
    Debian
    security
    humor
    psy
    wiFi Debian Ubuntu
    WordPress
    SPb
    laptop
    • about this site
    • contact me