Tag: ‘tips’

Переводить не буду, т.к. в основном это как памятка для себя… :smoking:

There are a lot of tutorials available for editing the quicktags.js file in the WordPress wp-includes folder, but they all seem to want you to edit the file directly. That’s a Bad Idea because the next time you upgrade, your changes are kaput. [...] There are some perfectly capable plugins for adding new buttons, too. [...]

The quicktags.js file

1. Go into the /wp-includes/js folder and find quicktags.dev.js. Copy it to your template folder (or any subfolder) and rename it quicktags.js.

2. Edit the file. The code has some localization in it which we’re about to break, so search for quicktagsL10n and replace every instance with an appropriate, quoted string.

For example:
prompt(quicktagsL10n.enterURL, defaultValue);

Should be something like:
prompt('Enter the URL', defaultValue);

Overriding the original

Now we just need to change which script gets called when you’re in the post editor. Add the following to your theme’s functions.php file:

function bt_load_admin_scripts() {
  if ( is_admin() ) {
    wp_deregister_script('quicktags');
    wp_register_script('quicktags', ("/path/to/your/quicktags.js"), false, '', true);
  }
}
if (is_admin()) {
  add_action('init', bt_load_admin_scripts);
}

Modify the path in wp_register_script to point to the location where you put your quicktags.js file. This will tell WordPress to load your file instead of its own.

Now, edit a new post (in the HTML editor, not the Visual editor) to test out your changes. If everything is correct, modified and new buttons should show up and function the way you want. Your changes will persist, even after a WordPress upgrade!

© BrettTerpstra.com

:th-up: :smoking:

Most image search engines offers an option to filter the results by size, but you can only choose between small, medium and large images. Google Image Search has an undocumented parameter that lets you specify the exact dimension of the results:

imagesize:WIDTHxHEIGHT.

google-search-sizes

via Google Operating System

Пост, как памятка для себя, чтобы не забыл и пользовался…

Сидел customize-ил один другой блог и заинтересовался одним из Template Tag-овthe_content(), а в частности тэгом <!–more–>, не однократно используемым мной при написание постов…

Не буду вдаваться в подробности, что именно меня там интересовало, т.к. речь о случайной и весьма полезной/интересной “находке” – узнал, что вместо статичного текста, прописанного в template темы и отображаемого на главной, можно использовать любой текст:

custom_read-more

Собственно, на картинке все показано… А делается это очень просто:

<!--more Your custom text -->

У кого есть ЖЖ и кто умеет пользоваться <lj-cut> знают, что там всегда можно было дефолтный текст заменять, а в WordPress-e этого не было. Не знаю когда они успели добавить эту возможность и, быть может, она там уже давно, но более чем уверен, что когда я только завел блог, этого не было, т.к. было несколько plugin-ов, которые позволяли использовать любой текст… Даже помню, что не мог их использовать, т.к. они или глючили или кириллицу не поддерживали…

Мелочь, а приятно… :smoking:

http://codex.wordpress.org/Customizing_the_Read_More#Having_a_custom_text_for_each_post

Увы, но LiveJournal Crossposter не распознает такой <!–more–> тэг…

awesomebar.jpg

Много всего написано было про “AwesomeBar“, еще до официального выхода по интернету гуляли различные мнения. Кто-то был(и остаются) без ума от этого нововведения, кому-то оно совершенного не понравилось. Я лично где-то посередине – что-то нравиться, а что-то нет. Вот нарыл несколько способов “поизвращаться” над НиибацаБар-ом. Сам все еще не попробовал…

Начну с самого простого, не требующего особых “усилий”..

Add-Ons
  1. oldbar – Oldbar makes the location (URL) bar look like Firefox 2. If you need another alternative to this, try out Old Location Bar. Why two add-ons that do the same thing? I don’t know either.
  2. Hide Unvisited – You too can hide pages (bookmarks) that you haven’t visited (since deleting or clearing history) from showing in the AwesomeBar.
  3. Enter Selects – This Extension allows you to press enter in the AwesomeBar to select the first result (without pressing down).
  4. Hidden Places – Stop URLs from specified domains being added to places and the AwesomeBar.
  5. Edit Middle – Show AwesomeBar results when editing in the middle (not just at the end).

© Firefoxfacts.com Read more »

Долго лежал этот пост в draft-ах.. все никак дописать не мог..

Bookmarklet, в двух словах, это JavaScript, который прописываеться в поле “Location” у Bookmark-a или вместо адреса внутри тэга <a>, и который выполняет какое-то одно действие. Но это лично моё “понимание” того, что они такое. http://en.wikipedia.org/wiki/Bookmarklet – там, впринципе, тоже самое написано.

new-bookmark.gif
Resize Не трудно, думаю, догадаться, меняет размеры окна на 1024 х 768
Другие (если надо): 800×600 , 1152×864 , 1280×1024
Resize to… – универсальный resize boolmarklet.

* Эти bookmarklet-ы работают только при default-ном значении для “dom.disable_window_move_resize”“false”

Как сохранять bookmarklets?

1. Просто "перетянув" в "Bookmark Toolbar" (Left click & Hold -> Move to Bookmark Toolbar & Release)
2. Right click -> Bookmark This Link...

Почему именно “Bookmark Toolbar”? Потому что так ими удобней всего пользоваться. По крайне мере, мне так удобней всего. Когда что-то надо – делаю toolbar видимым, когда нет в них надобности – прячу.
Read more »

Cleaning up old bookmarks & stuff I’m too lazy to post separately :shades: :smoking:

——

The new features cover the full range from huge and game-changing to ones so subtle you may not notice them until you realize that using Firefox is just somehow easier and better. The range of improved features is similar — whole back-end systems have been rebuilt from scratch, while other features have been tweaked slightly or redesigned in small ways. Overall the result is the fastest, safest, slimmest, and easiest to use version of Firefox yet. We hope you like it.

dria.org/wordpress/archives/2008/06/12/655

© Debra Richardson

Here’s a list of the features covered in this Guide.

Познавательно :yes: :th-up:

gmail-firefox.jpgДолго не мог понять, почему Firefox виснет или вообще crash-иться, когда я пытался зайти на Gmail с работы.. Сначала думал, что это из-за того что все на работе сидят тоже в интернете и сжирают трафик, т.к. под вечер, когда никого практически нет, Gmail еще более менее шустро грузился, да и из дома тоже нормально заходил…

А сегодня решил таки поискать в чем же все таки проблема на самом деле, ведь у Gmail-а врядли такие уж слабенькие серваки, что надо супер-дупер быстрое подключение, чтобы без проблем заходить. Среди большого количества постов на эту тему, ответом стал вот этот вот вопрос и комментарии к нему.

Оказалось, что дело все в Add-On-ах, нужных мне для работы (duh!)… По поводу Firebug-а, что он замедляет Gmail, знал уже давно – в Gmail-е есть детектор включенного Firebug-a, который собственно и сообщает, что Firebug лучше отключить. Кроме Firebug-a, отключить (или заблокировать для “mail.google.com”) стоит HTML Validator и Web Developer.. Короче, все что обрабатывает source код стоит отключить или заблокировать, но не исключенно, что и другие какие-то Add-On-ы тоже “не дружат” с Gmail-ом…

В “Safe Mode” с отключенными всеми Add-On-ами практически моментально загружаеться.

Правда, это полностью не исправило проблему и все равно время от времени Firefox зависает, когда захожу на Gmail… Приходиться использовать “Basic HTML”…

firefox3beta5.png Будем надеяться, что с выпуском Firefox 3, который кстати состоится 17-го Июня, Gmail-ом можно будет нормально пользоваться… Хотя, думаю, что можно будет, т.к. наверно больше половины Add-On-ов еще не обновлены для третьей версией..

Да, кстати если надо, то Firefox 3 Release Candidate 3 можно уже скачать..

О переходе на Opera я уже даже и не думаю, т.к. недавно выпущенная Opera 9.50, хоть и быстрей и даже слегка “умней” в отношении отображения сайтов, стала уродской какой-то… :niasilil:

Добавили 13 экспериментальных “фичи” к Gmail-у :yay:

Gmail Labs allows you to try out experimental new features in Gmail and send feedback to us so we can improve them. If you’re going to brave the Labs world, it’s important to keep the following things in mind about these features:

* They may break at any time
* Similarly, they may disappear temporarily or permanently
* They may work so well that they graduate and become regular features

Сцылки по теме: Official Gmail Blog: Introducing Gmail Labs, Help Center: About Labs & Google Operating System: Experimental Gmail Features.

gmail-labs.jpg

Fixed width font
View a message in fixed width font
Signature tweaks
Place your signature before the quoted text in a reply
Quick links
1-click access to any bookmarkable URL in Google.com Mail
Pictures in chat
See your friends’ profile pictures when you chat with them
Old Snakey
Kick it old school with a game of snake
Mouse gestures
Use your mouse to navigate with gestures
Random signature
Rotates among random quotations for your email signature
Muzzle
Conserves screen real estate by hiding your friends’ status messages
Custom date formats
Allows the date and time format to be changed independent of language
Superstars
Adds additional star icons
Custom keyboard shortcuts
Lets you customize keyboard shortcuts
Hide unread counts
Hides the unread counts for inbox, labels, etc.
Email addict
Lets you take a break from email and chat

Лично меня очень порадовало “Superstars” :th-up: :smile:

gmail-superstars.jpg

Google совсем недавно обновили iPhone версию Google Reader-a и, даже если у вас нет iPhone, у вас есть возможность посмотреть как выглядит обновленный Google Reader для iPhone.

Он замечательно помещается в sidebar-e:

google-reader-sidebar.jpg

1. Bookmarks -> Organize Bookmarks…
2. File -> New bookmark…
3. Location: http://www.google.com/reader/i/ and check "Load this bookmark in the sidebar".
4. Save ("OK").

google-reader-bookmark.jpg

via mozillalinks.org

В двух словах по-русски: после install-a XP SP3, если был установлен IE7, его нельзя будет uninstall-ить. Чтобы сделать uninstall, надо сперва вернуться к SP2, т.е. двойной геморой.. Если устанавливали IE7 после инсталяции SP3, то возможность uninstall-нуть его останется.

Internet Explorer 6 Users

XPSP3 will continue to ship with IE6 and contains a roll-up of the latest security updates for IE6. If you are still running Internet Explorer 6, then XPSP3 will be offered to you via Windows Update as a high priority update. You can safely install XPSP3 and will have an updated version of IE6 with all your personal preferences, such as home pages and favorites, still intact.

If you are currently running IE7 or IE8 on Windows XP SP2 (XPSP2) and you are thinking of upgrading to XPSP3, read on.

Internet Explorer 7 Users

If you are currently running IE7 on XPSP2, Windows Update will offer you XPSP3 as a high priority update. If you choose to install XPSP3, Internet Explorer 7 will remain on your system after the install is complete. Your preferences will be retained. However, you will no longer be able to uninstall IE7. If you go to Control Panel->Add/Remove Programs, the Remove option will be grayed out.

[...]

If you must uninstall IE7 after you have upgraded to XPSP3, then you have to first uninstall XPSP3, and then uninstall IE7. After this series of uninstalls, you will be reverted back to a XPSP2, and a stable version of IE6, so feel free to upgrade to XPSP3 again.

If you install IE7 after you install XPSP3, then you will be able to uninstall IE7 at any point and be reverted to the newer IE6 version that ships in XPSP3. The restriction on uninstalling only applies to when you install a Windows Service Pack release on top of a standalone IE release.

Keeping this in mind, you might want to uninstall IE7, upgrade to XPSP3 and then install IE7 again so you can uninstall IE7 in the future if need be.

http://blogs.msdn.com/ie/archive/2008/05/05/ie-and-xpsp3.aspx

Comment and Win a Userpic!

Recommended Stuff

This is a random selection from a list of stuff/posts I personally enjoyed a lot. Some sort of "My Favorites" or "Bookmarks"...

  • Milla Jovovich – Michael Tighe Photoshoot (1992)
  • Wake Up Cat
  • Robin Williams – Golf
  • Pirelli Calendar 2008
Bookmark and Share