Title: A Year Before
Author: Ralf
Published: <strong>27.03.2007</strong>
Last modified: 19.05.2019

---

ჩადგმების ძებნა

ეს პლაგინი **არ დატესტილა WordPress-ის 3 ძირითად ვერსიაზე**. როგორც ჩანს, ის უკვე
აღარ არის მხარდაჭერილი და შესაძლოა არ იყოს თავსებადი WordPress-ის მიმდინარე ვერსიასთან.

![](https://s.w.org/plugins/geopattern-icon/a-year-before.svg)

# A Year Before

 ავტორი: [Ralf](https://profiles.wordpress.org/wuerzblog/)

[ჩამოტვირთვა](https://downloads.wordpress.org/plugin/a-year-before.1.0.3.zip)

 * [დეტალები](https://ka.wordpress.org/plugins/a-year-before/#description)
 * [მიმოხილვა](https://ka.wordpress.org/plugins/a-year-before/#reviews)
 *  [დაყენება](https://ka.wordpress.org/plugins/a-year-before/#installation)
 * [დეველოპმენტი](https://ka.wordpress.org/plugins/a-year-before/#developers)

 [მხარდაჭერა](https://wordpress.org/support/plugin/a-year-before/)

## აღწერა

With “A Year Before” you can show the titles of the articles which were written 
a certain time ago. So you can show in a “historical corner”, what happend in your
blog e.g. 30 days, 6 months or a year before. You also can use the “anniversary-
mode”, which will display all the posts through the years, which were written on
this day and month.

You can use it as a wordpress-widget or put it in your theme as a php-function with
parameters.

### Configuration

#### Using the widget

Just click on the configuration-button of the widget an use the selfexplaining popup-
dialog.
 Use the output-pattern to define the look of the found articles. Possible
patterns are:

 * %title% The title of the article
 * %link% The link to the article
 * %date% The date of the article
 * %excerpt% The excerpt of the article. You can define the number of displayed 
   characters bei appending the number like %excerpt80%, which will display 80 characters.
 * %thumbnail% The featured image of the article.

#### Not using the widget

You can call the plugin with a PHP-statement in a WordPress-Theme and pass some 
parameters in this scheme
 parameter1=value1&parameter2=value2&parameter3=value3…

You can use the following parameters

 * day : the number of days ago you want to show the articles.
 * month : the number of month ago you want to show the articles.
 * year : the number of years ago you want to show the articles.
 * before : piece of HTML to insert before the title of the articles. Default `<
   li>`
 * after: piece of HTML to insert after the title of the articles. Default `</li
   >`
 * range: number of days the plugin will search back in the future (relative to 
   the values of day, month and year above) for an article. Meant as a “round about
   this day”-feature. Default 0
 * showdate: shows the date (showdate=1) before every title or not (showdate=0)
 * dateformat : dateformat as used by PHP. Default ist the german shortform “d.m.
   y”
 * notfound: the text the plugin will output, if no article is found on the defined
   date.
 * anniversary: if set to 1, the plugin will display all articles ever blogged with
   the same number of day and month. The parameters “day”, “month”, “year” and “
   range” will be ignored if used.
 * private: show private posts? 0: only public posts 1: private and public posts
   2: only private posts. Default 0
 * showpages: show pages? 0: No, 1: Yes. Default 0
 * posts_max: number of articles to be shown. 0 means ‘all’. Default 0

#### Examples

    ```
    ayb_posts("day=30&before=&after=<br />&showdate=0");
    ```

Shows the titles of the articles written 30 days ago without showing the date. The
articles will not been showed as a HTML-list but simply seperated by a linebreak`
<br />`.

    ```
    ayb_posts("month=6&day=14&notfound=Nothing blogged on this day.");
    ```

The titles of the articles written half a year and two weeks before, also showing
the date . If there was no article written on that day, the output will be »Nothing
blogged on this day.«

    ```
    ayb_posts("range=14&dateformat=y-m-d");
    ```

Looks up a year back for written articles. If none are found, the plugin will check
the next 14 days in the future. If a article is found on some of this days, all 
articles of this day will be listed with a “year-month-day”-format.

    ```
    ayb_posts("anniversary=1");
    ```

Shows the title of all posts, which were posted on the same day in the same month,
independend of the year. E.g. on chistmas day you will see all posts, which are 
posted on december 24th since the blog was started.

### Styling

If you like CSS, you can style the date with the class `ayb_date`, the link of the
article with the class `ayb_link` and the notfound-message by using the class `ayb_notfound`.

### Uninstall

Deactivate the plugin, then select “delete” in the plugin-panel. The files _and_
the options of this plugin will be deleted. Thank you for using “a year before”.
😉

## დაყენება

#### Using widgets in wordpress

 1. Download the plugin and put the directory “a-year-before” in the plugin-folder 
    of your wordpress-installation.
 2. Then activate the plugin.
 3. Go “Themes/Widgets” and pull the widget in the sidebar. Ready to go! Configure 
    it, if you want.

#### Not using widgets in wordpress

 1. Download the plugin and put the file ayb_posts.php in the plugin-folder of your
    WordPress-installation.
 2. Then activate the plugin.
 3. In your template – e.g. the sidebar – you can insert the following PHP-code:
 4.     ```
        <?php if (function_exists("ayb_posts")) { ?>
        <div class="einjahr">
        <h2>Vor einem Jahr</h2>
          <ul>
             <?php ayb_posts('day=7'); ?>
          </ul>
        </div>
        <?php } ?>
        ```
    

## მიმოხილვები

![](https://secure.gravatar.com/avatar/7be0487b429229544c79f1493b07e23aa1a14704a9784c96b4759daf94936f9a?
s=60&d=retro&r=g)

### 󠀁[Genau richtig!](https://wordpress.org/support/topic/genau-richtig-2/)󠁿

 [HDS home](https://profiles.wordpress.org/hds-home/) 20.05.2019

Danke für die Anpassungen und Optimierungen mit der Version 1.0.3 – genau das habe
ich gebraucht!

![](https://secure.gravatar.com/avatar/ca1682fc78899ede01e09fabd1237e769b08dd1e421e082827c6e0d35e627f67?
s=60&d=retro&r=g)

### 󠀁[An essential plugin for diary-like blogs](https://wordpress.org/support/topic/an-essential-plugin-for-diary-like-blogs/)󠁿

 [sonofbruce](https://profiles.wordpress.org/sonofbruce/) 05.11.2017

Works like a charm. My daily microblog would be so much less interesting without
it.

![](https://secure.gravatar.com/avatar/dee29cff117aa28df66b38f1cc55c77e04838962060fc44e915afc1747e38092?
s=60&d=retro&r=g)

### 󠀁[patch for php 5.6 compatibility](https://wordpress.org/support/topic/patch-for-php-5-6-compatibility/)󠁿

 [zuHause](https://profiles.wordpress.org/zuhause/) 18.07.2017

I like the plugin: does what I need it to do. Nevertheless my website needs an update,
PHP 5.3 is more or less an ‘ancient custom’… @@ -358,7 +358,7 @@ function ayb_posts(
$ayb_para = ”) { $ayb_parameter = explode(‘&’, $ayb_para); foreach ($ayb_parameter
as $ayb_temp) { – $b = preg_split(‘=’, $ayb_temp); + $b = split(‘=’, $ayb_temp);
$instance[$b[0]] = $b[1]; }//$ayb_parameter as $ayb_temp $widget_arr = array();

![](https://secure.gravatar.com/avatar/5252968bcd4596edb032502c74f6a22981c92798b6fa822e49aafd76ac72b166?
s=60&d=retro&r=g)

### 󠀁[Sehr leicht modifizierbar, aber ein wenig buggy](https://wordpress.org/support/topic/sehr-leicht-modifizierbar-aber-ein-wenig-buggy/)󠁿

 [mrmeeeseeks](https://profiles.wordpress.org/mrmeeeseeks/) 03.09.2016

Das Plugin ist relativ leicht installierbar, gut anpassbar (aber auch nur wenn man
die Anleitung auf der Webseite des Autors anguckt) und funktioniert auch. Leider
kann man die Jahreszahlen nicht ausstellen (weder über PHP, noch über Widget). Sehr
häufig wird das Datum eines Ereignisses mehrmals aufgelistet.

 [ 5 რევიუს წაკითხვა ](https://wordpress.org/support/plugin/a-year-before/reviews/)

## მონაწილეები & დეველოპერები

“A Year Before” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს
მის განვითარებაში.

მონაწილეები

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

[გადათარგმნეთ A Year Before თქვენს ენაზე.](https://translate.wordpress.org/projects/wp-plugins/a-year-before)

### დაინტერესებული ხართ დეველოპმენტით?

[დაათვალიერეთ კოდი](https://plugins.trac.wordpress.org/browser/a-year-before/), 
შეამოწმეთ [SVN რეპო](https://plugins.svn.wordpress.org/a-year-before/), ან გამოიწერეთ
[შექმნის ჟურნალი](https://plugins.trac.wordpress.org/log/a-year-before/) : [RSS](https://plugins.trac.wordpress.org/log/a-year-before/?limit=100&mode=stop_on_copy&format=rss).

## ცვლილებები

#### 1.0

Add: #thumbnail’-pattern to show featured imagages of articles

#### 0.9.5

Fixed some PHP-Notices (Patch by lostfocus https://gist.github.com/lostfocus/a68f0689d20feceb7911)

#### 0.9.4

Fix (again): Again sometimes other post-types (like menu-items) were shown.

#### 0.9.3

Fix: Error with PHP 5.3 when called by PHP-statement. Thanks to www.hisky.de for
reporting the error

#### 0.9.2

 * Fix: Sometimes other post-types than posts and pages were shown

#### 0.9.1

 * Fix possible display-error in plugin-list

#### 0.9

 * set number of articles to be listet
 * various fixes
 * changed url to my blog – http://herrthees.de is my new blog for programming, 
   design, journalism, etc

#### 0.8

 * show pages or not
 * public, private or both articles can be shown
 * widget output can be edited with patterns %link%, %title%, %date%, %excerpt% (
   thanks to Marcus from themenfreund.de for the excerpt-idea)
 * fixed bugs, i.e. timezone-bug
 * use of wordpress’s widget-class (plugin works now wordpress 2.8+ only)
 * OOP-programming

#### 0.7beta11

 * added uninstall-feature for wordpress 2.7+. if the plugin is deleted, the options
   of this plugin will be deleted in the wordpress-database.

#### 0.7beta10

 * fix: check if functions are already declared (for multiple use of the plugin)

#### 0.7beta9

 * unknown changes

#### 0.7beta8

 * kicked out debug-messages … =:-)

#### 0.7beta7

 * bit of cleanup
 * make date-calculation gmt-sensitive. the wordpress-timezone-option is used now.
   should fix problems, where articles, written a few hours (the timezone-difference)
   before or after midnight are not displayed correctly.
 * some minor bugfixes

#### 0.7beta4

 * adding anniversary-mode. if anniversary=0, all articles matching the current 
   day and the current month will be show, regardless of which year (beside the 
   actual year of course). all settings of day, month, year and range will be ignored.

#### 0.7beta3

 * using the wordpress timezone-offset

#### 0.7beta2

 * fixed: plugin generated invalid XHTML in some cases

#### 0.7beta1

 * added range-parameter. you can use e.g. year=1&range=7 if you want to look back
   one year for articles. if no article is found on this day, the plugin will look
   up to 7 days back and lists the articles of the day the first article was found.

#### 0.6.1

 * Fix for sidebars not named ‘sidebar’

#### 0.6

 * Minor clean-up

#### 0.6beta4

 * Fixed finding localization files

#### 0.6beta3

 * Localization
 * Added german language-file

#### 0.6beta2

 * Make sure the non-widget-use of the plugin

#### 0.6beta1

 * ‘Widgetize’ the plugin

#### 0.5.3

 * XHTML-Bugfix (unnecessary span)
 * Bugfix PHP 5 Error with empty function-parameter

#### 0.5.2

 * Bugfix for more tolerant date-values (e.g. day > 364). Thanks to AlohaDan for
   hinting and testing.

#### 0.5.1

 * Adjustment for MySQL-versions older than MySQL 4.1.1

#### 0.5

 * First public beta

## მეტა

 *  Version **1.0.3**
 *  Last updated **7 წელი წინ**
 *  Active installations **40+**
 *  WordPress version ** 2.8.0, ან უფრო მაღალი **
 *  Tested up to **5.2.24**
 *  Language
 * [English (US)](https://wordpress.org/plugins/a-year-before/)
 * Tags
 * [date](https://ka.wordpress.org/plugins/tags/date/)[history](https://ka.wordpress.org/plugins/tags/history/)
   [posts](https://ka.wordpress.org/plugins/tags/posts/)[time](https://ka.wordpress.org/plugins/tags/time/)
   [widget](https://ka.wordpress.org/plugins/tags/widget/)
 *  [დამატებითი ხედი](https://ka.wordpress.org/plugins/a-year-before/advanced/)

## რეიტინგები

 4.2 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/a-year-before/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/a-year-before/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/a-year-before/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/a-year-before/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/a-year-before/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/a-year-before/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/a-year-before/reviews/)

## მონაწილეები

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

## მხარდაჭერა

გაქვთ კომენტარი? გჭირდებათ დახმარება?

 [მხარდაჭერის ფორუმის ნახვა](https://wordpress.org/support/plugin/a-year-before/)

## შემოწირულობა

გსურთ ამ ჩადგმის განვითარების მხარდაჭერა?

 [ შეწირეთ თანხა ამ ჩადგმას ](http://flattr.com/thing/313825/Wordpress-Plugin-A-Year-Before)