Антиреклама: плагин Tweet This
Posted: Ноябрь 28th, 2009 | Author: Golan | Filed under: Twitter, Wordpress | Tags: Вордпресс, плагин, Твиттер | 2 Comments »В последнее время во всяких руководствах по скрещению Вордпресса и Твиттера пишут про плагин Tweet This. Он работает вроде addthis или sociable: ставит после поста кнопочки для быстрого постинга в социалки.
Отличие от других плагинов в том, что он сразу генерирует для поста ссылку в каком-нибудь url shortener’е. (Надо сказать, что с распространением Tweetmeme все эти плагины пошли ровным строем в утиль).
Поставил я его на одном из моих блогов. На тот момент там было всего-то 145 постов, и пощу я в него 3-4 поста в месяц. Через месяц залез зачем-то в БД: ОМГ… 3,5 килозаписей в таблице конфигурации! и все такая херня:
O:9:”magpierss”:17:{s:6:”parser”;i:0;s:12:”current _item”;a:0:{}s:5:”items”;a:0:{}s:7:”channel”;a:6:{ s:2:”id”;s:46:”tag:search.twitter.com,2005:search/is.gd/*****”;s:4:”link”;s:48:”http://search.twitter.com/search?q=is.gd%*****”;s:9:”link_self”;s:51:”http://search.twitter.com/search.atom?q=is.gd/*****”;s:5:”title”;s:28:”is.gd/**** – Twitter Search”;s:11:”link_search”;s:40:”http://search.twitter.com/opensearch.xml”;s:7:”updated”;s:25:”2009-08-28T14:26:31+00:00″;}s:9:”textinput”;a:0:{}s:5:”ima ge”;a:0:{}s:9:”feed_type”;s:4:”Atom”;s:12:”feed_ve rsion”;N;s:5:”stack”;a:0:{}s:9:”inchannel”;b:0;s:6 :”initem”;b:0;s:9:”incontent”;b:0;s:11:”intextinpu t”;b:0;s:7:”inimage”;b:0;s:13:”current_field”;s:0: “”;s:17:”current_namespace”;b:0;s:19:”_CONTENT_CON STRUCTS”;a:6:{i:0;s:7:”content”;i:1;s:7:”summary”; i:2;s:4:”info”;i:3;s:5:”title”;i:4;s:7:”tagline”;i :5;s:9:”copyright”;}}
Ну не звездец ли, дорогие товарищи??
Пошел я к разрабу в блог, задал вопрос: типа, мил человек, а не пишет ли твой плагин чего в БД? На что он честно ответил:
Yes. Two rows are added to the wp_options table: tweet_this_settings and tweet_this_password. The first stores your Tweet This settings in a serialized array of over 60 values, and also your Twitter username. The second stores your Twitter password (if you have provided it) in plain text. This is necessary because the password must be sent unencrypted to the Twitter API, and other Twitter plugins do the same thing.
Four rows per post are added to the wp_postmeta table: tweet_this_url, tt_auto_tweet (true/false), tt_auto_tweet_text, and tt_tweeted (true/false).
When you deactivate Tweet This, tweet_this_password and the tweet_this_url custom fields are deleted, but the other data remains.
Но на хрена в _options что-то записывать?!
Вот мудак.
Кроме того, в коде обнаружилась какая-то адсенсовская реклама. Непонятно, где она выводится, но вообще все это бесит.
Так что: будьте бдительны, дорогие собратья оптимизаторы, и держитесь подальше от торфяных болот.
(Эта статья была впервые опубликована на nulled.ws. Авторство мое).




I’m having a hard time viewing this information from my iPhone. Maybe you could upgrade the site and make it more accessible from my phone. Thatd be real cool!
Couldn’t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!