Title: Reddit Widget
Author: sk33t
Published: <strong>21. март 2008.</strong>
Last modified: 6. јануар 2009.

---

Претражи додатке

Овај додатак **није испробан са последња 3 главна издања Вордпреса**.Можда се више
не одржава или подржава и можда има грешке са усклађеношћу са новијим издањима Вордреса.

![](https://s.w.org/plugins/geopattern-icon/reddit-widget.svg)

# Reddit Widget

 [sk33t](https://profiles.wordpress.org/sk33t/)

[Преузимање](https://downloads.wordpress.org/plugin/reddit-widget.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/reddit-widget/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/reddit-widget/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/reddit-widget/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/reddit-widget/#developers)

 [Подршка](https://wordpress.org/support/plugin/reddit-widget/)

## Опис

#### 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. …
 5. item
 6. end

The formatting for items is:

 * %title% – Title of the item
 * %link% – Link to the item
 * %desc% – Description of the item – Just [link] [more] links
 * %date% – Date the item was submitted (ISO)
 * %more% – More link – The link to the comments
 * %number% – The number of the current item

The formatting for start and end is:

 * %username% – Your username
 * %profile% – Link to your profile
 * %rss% – Link to your profile’s RSS feed
 * %count% – Number of items shown

## Снимци екрана

 * [[
 * Default Display
 * [[
 * Admin Panel

## Постављање

 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

## ЧПП

  Nothing shows up when I try it or I get an error that file_get_contents doesn’t
exist

This script relies on the function file_get_contents to fetch the RSS feed. If your
host doesn’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’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.

## Прегледи

Нема рецензија за овај додатак.

## Сарадници и градитељи

„Reddit Widget“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

[Преведите „Reddit Widget“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/reddit-widget)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/reddit-widget/), проверите
[SVN складиште](https://plugins.svn.wordpress.org/reddit-widget/) или се пријавите
на [белешку градње](https://plugins.trac.wordpress.org/log/reddit-widget/) преко
[RSS-а](https://plugins.trac.wordpress.org/log/reddit-widget/?limit=100&mode=stop_on_copy&format=rss).

## Мета

 *  Version **1.2**
 *  Last updated **17 година раније**
 *  Active installations **10+**
 *  WordPress version ** 2.0.2 или новије **
 *  Tested up to **2.7**
 *  Language
 * [English (US)](https://wordpress.org/plugins/reddit-widget/)
 * Tags
 * [reddit](https://sr.wordpress.org/plugins/tags/reddit/)[widget](https://sr.wordpress.org/plugins/tags/widget/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/reddit-widget/advanced/)

## Оцене

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/reddit-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/reddit-widget/reviews/)

## Сарадници

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/reddit-widget/)

## Донирај

Желите ли да подржите напредак овог додатка?

 [ Донирај овом додатку ](http://ja.meswilson.com/blog/)