Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

Reddit Widget

Àpèjúwe

Requirements

  • WordPress 2.2 or 2.0.x/2.1.x with WordPress Widgets
  • PHP 4.3.0 or greater (needed for function file_get_contents)

Features

  • Displays your latest liked items (on reddit.com)
  • Completely customizable display
  • Caching for large traffic sites

Formatting

There are 3 parts needed to format the output.

The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just <ul>.

The second part, called items end, is the ending of the widget. By default, this is:
</ul>
<a href=”%profile%” style=”float:right;”>%username%</a>

The third part is what is called for each item. By default, this is:
<li style=”list-style-type: none;”><a href=”%link%”>%title%</a> (<a href=”%more%”>more</a>)</li>

The premise of calling each value is this:

  1. start
  2. item
  3. item
  4. item
  5. end

The formatting for items is:

  • %title% Ìtumọ̀ Yorùbá: – Title of the item
  • %link% Ìtumọ̀ Yorùbá: – Link to the item
  • %desc% Ìtumọ̀ Yorùbá: – Description of the item Ìtumọ̀ Yorùbá: – Just [link] [more] links
  • %date% Ìtumọ̀ Yorùbá: – Date the item was submitted (ISO)
  • %more% Ìtumọ̀ Yorùbá: – More link Ìtumọ̀ Yorùbá: – The link to the comments
  • %number% Ìtumọ̀ Yorùbá: – The number of the current item

The formatting for start and end is:

  • %username% Ìtumọ̀ Yorùbá: – Your username
  • %profile% Ìtumọ̀ Yorùbá: – Link to your profile
  • %rss% Ìtumọ̀ Yorùbá: – Link to your profile’s RSS feed
  • %count% Ìtumọ̀ Yorùbá: – Number of items shown

Àwọn àwòrán ìbòjú

Ìgbéwọlẹ̀

  1. Download reddit-widget.zip
  2. Extract and upload reddit.php to the plugins/ directory
  3. Enable reddit Widget in the Plugin admin panel
  4. In widget admin panel, place reddit in the sidebar, and edit it to enter your username

FAQ

Nothing shows up when I try it or I get an error that file_get_contents doesnÌtumọ̀ Yorùbá: ’t exist

This script relies on the function file_get_contents to fetch the RSS feed. If your host doesnÌtumọ̀ Yorùbá: ’t allow the use of it, but allows the use of curl, you can replace

$stories = file_get_contents($uri);

with

$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $uri);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$stories = curl_exec($ch);
curl_close($ch);
What does cache time mean?

ItÌtumọ̀ Yorùbá: ’s the number of seconds before the content will be requested again. You can set this to be 0 or -1 to not use the caching system. If you edit any of the widgets in the widget admin panel, the cache is cleared.

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“Reddit Widget” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “Reddit Widget” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.