Linux 软件免费装
Banner图

upPrev — NYTimes Style Next Post

开发者 jpelker
gkrzyminski
iworks
更新时间 2015年10月16日 11:40
PHP版本: 3.3 及以上
WordPress版本: 4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

post posts links seo slider featured notification related thumbnail animation related content rtl animated box fade previous post flyout previous posts fly-out new york times NYTimes

下载

3.3.30.1 1.3 1.3.2 1.3.3 1.3.4 1.4.0

详情介绍:

Video: http://www.youtube.com/watch?v=ZTrQGhWhCKs When a reader scrolls to the bottom of a single post, page or custom post type, a button animates in the page’s bottom right or left corner, allowing the reader to select the previous or random available post or posts in the selected configuration:
  1. Just previous
  2. Previous in category
  3. Previous in tag
  4. Random
  5. Related using YARPP (only post/pages)

安装:

  1. Upload upPrev to your plugins directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Configure upPrev plugin using Appearance -> upPrev

常见问题:

upPrev is activated, but I don't see the slide-in box. Now what?

First of all, check your template. Rof proper work plugin requires function wp_head and wp_footer. If your template dont use one of theme, upPrev will not work. If you cant check this action in your templates manualy use this code to check it: https://gist.github.com/378450

My website is not in English, will upPrev work?

upPrev plugin will work on websites in the following languages:

  • Brazilian Portuguese
  • Bulgarian
  • Czech
  • Dutch
  • French
  • German
  • Hebrew
  • Italian
  • Polish
  • Romanian
  • Russian
  • Simplified Chinese
  • Slovak
  • Spanish
  • Turkish
  • Vietnamese

How to add default image to post without thumbnail?

Use the iworks_upprev_image action: ` <?php add_action( 'iworks_upprev_image' , 'default_image' ); function default_image() { return ''; } `

How to change post thubnail to other image?

Use the iworks_upprev_get_the_post_thumbnail filter: <?php add_filter( 'iworks_upprev_get_the_post_thumbnail' , 'change_thumbnail' ); function change_thumbnail( $image ) { return '<img src="image.png" alt="" />'; }

How to add upPrev for pages or custom post types?

Yes. Just select post types on Appearance -> upPrev -> Content page in Select post types section.

How I can customize with my own styles?

See here: How I can customize with my own styles?

Need more snippets?

Visit: upPrev: snippet archive

Screenshots

  1. upPrev on post
  2. upPrev options: apperance
  3. upPrev options: content
  4. upPrev options: links
  5. upPrev options: cache

Changelog

3.3.30

  • Release date: 2015-10-13
  • Time to merge the fork (thanks, Marcin, for your hard work!)
  • BUGFIX: fixed a problem with showing the title if contains tags with attributes. Props for Ovidiu

3.3.29

  • Release date: 2015-09-01
  • IMPROVMENT: added Tagalog translation by Kel DC

3.3.28

  • IMPROVMENT: added Slovak translation by Daniel Schmidt

3.3.27

  • IMPROVMENT: added Dutch translation by Ruud Kok

3.3.26

3.3.25

  • IMPROVMENT: updated Simplified Chinese translation by Leo
  • IMPROVMENT: added filter 'iworks_upprev_box_title' for box title, return false to remove title

3.3.24

3.3.23

  • BUGFIX: default value only when is need thx to Jeff Offset Not Working
  • IMPROVMENT: updated IworksOptionClass to 1.7.7

3.3.22

3.3.21

3.3.20

  • IMPROVMENT: updated IworksOptionClass to 1.7.4
  • IMPROVMENT: check upPrev compatybility with WordPress 3.7
  • BUGFIX: fixed "last selected tab"

3.3.19

3.3.18

3.3.17

3.3.16

3.3.15

  • IMPROVMENT: added Hebrew translation by עמיעד

3.3.14

3.3.13

3.3.12

  • BUGFIX: fixed compatybility errors with YARPP 4.x version thx to adamdport
  • IMPROVMENT: add css to changed tabs class in WordPress 3.5
  • IMPROVMENT: check upPrev compatybility with WordPress 3.5

3.3.11

3.3.10

3.3.9

3.3.8

  • BUGFIX: critical update, plugin crash site if choose no post types

3.3.7

3.3.6

  • IMPROVMENT: added German translation by Mario Wolf

3.3.5

  • BUGFIX: fixed double output when using YARPP thx to gyutae
  • BUGFIX: hide developer admin option

3.3.4

  • IMPROVMENT: added Brazilian Portuguese translation by Leonardo Antonioli
  • BUGFIX: fixed minor description bug (thx Eva)

3.3.3

  • IMPROVMENT: added Vietnamese translation by Xman
  • BUGFIX: use crc32 to build ids for tabbed config, wich collapsed in other than utf8 charset

3.3.2

  • IMPROVMENT: added GA option: non-interaction to prevent events in bounce-rate calculation.

3.3.1

  • IMPROVMENT: added French translation by Eva

3.3

  • IMPROVMENT: added option to hide upPrevBox on mobile devices, matching imlemented from WP Mobile Detector ticket from forum

3.2

  • IMPROVMENT: added action iworks_upprev_image - you can add own code to produce icon, when them don't support post-thumbnails
  • IMPROVMENT: added thumbnail filter iworks_upprev_get_the_post_thumbnail - now you can easy change thumbnail
  • IMPROVMENT: added purging transient cache entries from $wpdb->options table when turn off this cache forum
  • IMPROVMENT: add check _gaq object exist
  • CHECK: checked compatybility to WordPress 3.3
  • IMPROVMENT: updated IworksOptionClass to version 1.0.1

3.1.1

  • IMPROVMENT: added ability to turn off "remove_all_filters" function

3.1

  • IMPROVMENT: change GA trackEvent syntax
  • IMPROVMENT: added Turkish translation by wpdestek

3.0.1

  • BUGFIX: fixed printing GA code when "I don't have GA tracking on site." is unticked. forum thx win101

3.0

  • BUGFIX: fixed end date filter for imported posts
  • BUGFIX: fixed javascript conflict on edit post screen
  • BUGFIX: fixed problem with unchecking 'Excerpts'. forum thx benjamin
  • BUGFIX: fixed sticky posts display loop
  • BUGFIX: fixed thumbnail display problem
  • IMPROVMENT: added filter 'iworks_upprev_box_item' for any item excerpt YARPPs
  • IMPROVMENT: added GA track: view box and click link
  • IMPROVMENT: added option ignore sticky posts
  • IMPROVMENT: added sanitize function for offset
  • IMPROVMENT: added thumbnail preview on posts/pages list
  • IMPROVMENT: cleaning empty styles from custom css field
  • REFACTORING: option managment

2.3.7

  • BUGFIX: fixed problem for defaults post_type if no one choosed forum

2.3.6

2.3.5

  • BUGFIX: fixed problem with using thumbnails in themes without thumbnail support

2.3.4

  • BUGFIX: fixed problem with default values and values saving (again)
  • IMPROVMENT: added correct way to enquene style and js files

2.3.3

  • BUGFIX: hide configuration link on plugins list page for WordPress MU
  • BUGFIX: fixed problem with post excerpt
  • BUGFIX: fixed problem with default values and values saving

2.3.2

  • BUGFIX: fixed translation bug
  • BUGFIX: removed date limit for random posts
  • BUGFIX: fixed open in new window bug
  • IMPROVMENT: added limit to display only on selected post types forum

2.3.1

  • BUGFIX: fixed small bug with display option

2.3

  • IMPROVMENT: added filter iworks_upprev_box
  • IMPROVMENT: added tabed options (based on Breadcrumb NavXT plugin
  • IMPROVMENT: added prefix and suffix to urls
  • IMPROVMENT: added option to allow open links in new window
  • IMPROVMENT: added integration with YARPP
  • BUGFIX: fixed Transients Cache Lifetime is set to wrong seconds
  • BUGFIX: fixed deactivation hook option names

2.2.1

  • BUGFIX: fixed display problem with document shorter than browser
  • IMPROVMENT: document post type as checkbox list

2.2

  • IMPROVMENT: added upPrev configuration link to admin bar
  • IMPROVMENT: added registered custom posts
  • BUGFIX: fixed error if the behavior of boxing display for html element
  • BUGFIX: fixed wrong method post_type selection

2.1.2

  • BUGFIX: remove margin-top for title element
  • IMPROVMENT: added display taxonomies limit

2.1.1

  • BUGFIX: When they scroll down again, the box flies out, which -- on a small screen -- can obscure a big chunk of the content. forum

2.1

  • IMPROVMENT: added box width option
  • IMPROVMENT: added box bottom and side margin option
  • IMPROVMENT: added transient cache for scripts and styles
  • IMPROVMENT: added actions: iworks_upprev_box_before and iworks_upprev_box_after, called inside the upPrevBox, before and after post. Now you can add some elements to upPrevBox whithout plugin modyfication.
  • IMPROVMENT: added option to display (or not) close button
  • IMPROVMENT: added post type choose: post, page or any.
  • IMPROVMENT: added random order for displayed posts

2.0.1

  • BUGFIX: fixed translation load
  • IMPROVMENT: added show box header option
  • IMPROVMENT: added stamp for cache key
  • IMPROVMENT: added Polish translation by Marcin Pietrzak

2.0

  • BUGFIX: fixed display upPrev box in case of an equal height of the window and the document
  • IMPROVMENT: added to use transient cache
  • IMPROVMENT: added thumbnail width (height depent of theme thumbnail)
  • IMPROVMENT: added prevent some options if active theme dosen't support it
  • IMPROVMENT: added activation & deactivation hooks (to setup defaults and remove config )
  • BUGFIX: remove all filters the_content for post in upPrev box

1.0.1

  • BUGFIX: added post_date as parametr, to get real previous post
  • BUGFIX: javascript error
  • IMPROVMENT: added header for simple method

1.0

Upgrade Notice

3.3.13

Add Czech translation.

3.3.12

Fixed using YARPP 4.x. Check upPrev compatybility with WordPress 3.5.

3.3.11

Add Bulgarian translation.

3.3.10

Add Spanish translation.

3.3.9

Add Russian translation.

3.3.8

Critical update to prevent site crash!

3.3.3.1

Add Brazilian Portuguese translation.

3.0

Add GA tracking for display and click. Add filter and action to modify result.

2.3

Add YARPP integration.

2.1

Add support to custom post type.

2.1

Add some apperance, cache improvments. Scripts and styles optimization. New order available: random.

2.0.1

Add a polish translation. Fix cache refresh missing after change plugin configuration.

2.0

More configuration options. Uses transient cache to store results. Optimization activation & deactivation process.