Title: Reddit Widget
Author: sk33t
Published: <strong>21. marca 2008</strong>
Last modified: 6. januára 2009

---

Vyhľadať plugin

Tento plugin **nebol testovaný s najnovšími 3 hlavnými vydaniami WordPress**. Už
nemusí byť udržiavaný alebo podporovaný a môže mať problémy s kompatibilitou pri
použití s novšími verziami WordPress.

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

# Reddit Widget

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

[Stiahnuť](https://downloads.wordpress.org/plugin/reddit-widget.zip)

 * [Podrobnosti](https://sk.wordpress.org/plugins/reddit-widget/#description)
 * [Recenzie](https://sk.wordpress.org/plugins/reddit-widget/#reviews)
 *  [Inštalácia](https://sk.wordpress.org/plugins/reddit-widget/#installation)
 * [Vývoj](https://sk.wordpress.org/plugins/reddit-widget/#developers)

 [Podpora](https://wordpress.org/support/plugin/reddit-widget/)

## Popis

#### 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

## Obrázky

[⌊Default Display⌉⌊Default Display⌉[

Default Display

[⌊Admin Panel⌉⌊Admin Panel⌉[

Admin Panel

## Inštalácia

 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

## Časté otázky

  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.

## Recenzie

Pre tento plugin nie sú žiadne recenzie.

## Prispievatelia a vývojári

“Reddit Widget” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli
nasledujúci ľudia.

Prispievatelia

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

[Preložiť „Reddit Widget“ do vašho jazyka.](https://translate.wordpress.org/projects/wp-plugins/reddit-widget)

### Máte záujem o vývoj?

[ Prehľadávajte zdrojový kód](https://plugins.trac.wordpress.org/browser/reddit-widget/),
preskúmajte [SVN repozitár](https://plugins.svn.wordpress.org/reddit-widget/), alebo
sa prihláste na odber [vývojárskeho logu](https://plugins.trac.wordpress.org/log/reddit-widget/)
cez [RSS](https://plugins.trac.wordpress.org/log/reddit-widget/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Verzia **1.2**
 *  Posledná aktualizácia **Pred 18 rokov**
 *  Aktívne inštalácie **10+**
 *  Verzia WordPress ** 2.0.2 alebo novšia **
 *  Testované do verzie **2.7**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/reddit-widget/)
 * Značky
 * [reddit](https://sk.wordpress.org/plugins/tags/reddit/)[widget](https://sk.wordpress.org/plugins/tags/widget/)
 *  [Rozšírené zobrazenie](https://sk.wordpress.org/plugins/reddit-widget/advanced/)

## Hodnotenia

Zatiaľ neboli odoslané žiadne recenzie.

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

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

## Prispievatelia

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

## Podpora

Máte čo povedať? Potrebujete pomoc?

 [Zobraziť fórum podpory](https://wordpress.org/support/plugin/reddit-widget/)

## Podporiť

Chceli by ste podporiť pokrok tohto pluginu?

 [ Prispieť na plugin ](http://ja.meswilson.com/blog/)