Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.284.152 Times

Post Revision Display 0.8.1

  Date Added: June 15, 2013  |  Visits: 350

Post Revision Display

Report Broken Link
Printer Friendly Version

Product Homepage
Download (19 downloads)

Want a way to show an "audit trail" for blog posts? Possible uses: * For web publishers, to allow the freedom of updating stories without worrying about confusing or deceiving readers. Anyone can see the changes. * For academic/student use of blogs, so students can't "sneak" posts around submission deadlines by futzing around with the publish date.On single post views, this plugin will display a list of all post-publication revisions, showing revision times, authors, and links to view them. When viewing a previous revision, differences ("diffs") between the previous and current revision will be shown.Also when a previous revision is displayed: will be added to the page header if the standard hook is used in the theme's header file.CSSYou'll probably want to add styling for the diffs so they look as pretty as they do in the screenshots tab. For example:table.diff { width: 100%; }table.diff th { text-align: left; }table.diff .diff-deletedline { background-color:#fdd; width: 50%; }table.diff .diff-deletedline del { background-color:#f99; text-decoration: none; }table.diff .diff-addedline { background-color:#dfd; width: 50%; }table.diff .diff-addedline ins { background-color:#9f9; text-decoration: none; }table.diff .diff-context { display: none; }Other CSSThe revision-header is the note shown above the content when a previous revision is displayed. Possible styling to make it stand out:.revision-header { background-color: yellow; border: 1px solid #3a8b8c; padding: 10px; }div.revision-header { padding: 0 10px; }See the plugin page for more samples and info about the CSS.Automatic vs. Manual ModeIn "automatic mode," once you activate the plugin, revision information will show up on single post views (e.g. single.php) as shown in screenshots one and two. There is no need to modify theme files.With "manual mode," you can specify where in your theme you want revision info to be displayed. Maybe you want to have the note about viewing a previous revision to appear above the post title, or maybe you want the revision list and diffs to appear below other meta information at the end of the post.Most commonly, you'll make calls from single.php to:Which I think are pretty self-explanatory. One of these will have to come before the_content so that when filters are applied on post content, the plugin will know it is in manual mode and won't do the automatic stuff. To me it makes the most sense to have the note at the top as a warning for when a previous revision is displayed, which will take care of this requirement. (Even on current revision posts where there is no note, it will still set the manual flag.)If you insist on putting all the function calls after the post content, you can place before the_content is called in your theme.Manual mode allows you to show revision info on "pages" (page.php) in addition to single post views. (See FAQ for how you can do this in automatic mode also.)You can also put revision info on pages with multiple posts (e.g. the main index.php page or archive pages), although in those cases it only makes sense to show the revision list. When calling the_revision_list_prd() from within "the loop," you'll need to force an update of the revision info for each post by using the first optional parameter, $refreshGlobals:the_revision_list_prd(true)(When you call the three _prd functions, the first call will load all the revision info into a set of global variables. Without forcing the update with $refreshGlobals=true, you'd see the revision list for the first post for every following post displayed on the page.)In manual mode, you can also specify your own header text for the revision list and diff sections. This is the second optional parameter for the function:the_revision_list_prd($refreshGlobals=false, $header=REV_LIST_HEADER)Where the default REV_LIST_HEADER is Revision List:The header is the first and only optional parameter for the function:the_revision_diffs_prd($header=REV_DIFFS_HEADER)Where the default REV_DIFFS_HEADER is Changes:An example of calling these from single.php:Installation : 1. Upload post-revision-display.php to the /wp-content/plugins/ directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. By default in automatic mode, it should "just work," although you'll want to include CSS for styling the diff/revision comparison and probably also the note at the top indicating when a revision is displayed. See the description tab for sample CSS and instructions on how to use "manual" mode to control where things are displayed.

Requirements: No special requirements
Platforms: PHP
Keyword: Automatic Content Default Displayed Fgtlt Fphp Header Manual Optional Parameter Plugin Posts Previous Revision Single Styling Tablediff Views You039ll
Users rating: 0/10

License: Freeware Size: 102.4 KB
Networking  -  Omit Passworded Posts From Search 1.0.1
NOTE: This plugin is no longer necessary as of WordPress 2.8 as this functionality is now built-in.Prevent passworded posts from being included in site search results.By default, WordPress's built-in search feature searches the contents of...
10 KB  
Networking  -  Post & Page Notes 0.1.1
When you want to place a small text rule, an advertisement or something else at the top or bottom of your post or page, it is possible to edit your theme. But you lose all your changes when you update you theme.With Post & Page Notes, shortly...
10 KB  
Networking  -  thumbGen 2.5.4
This plugin is made for developers.It creates a function called thumbGen() that allows to show any image in the specified size. Additionally you can specify the way it crops the image and you can generate it in grayscale.It saves all generated...
10 KB  
Modules  -  WordPress Facebook Grabber 3.3
Wp Facebook Grabber plugin provide a way to take public content from facebook and insert in your WordPress pages or posts. It works usin graph facebook api and json php/jquery function.Actually the plugin support Facebook Photo Album and Feed data...
112.64 KB  
Modules  -  Image cycle 6.x-1.1
Integrates with Image module to allow image galleries to be displayed as sideshows using the jquery cycle plugin. The module provides the ability to set a different effect for each image gallery along with any jquery arguments or CSS.This module...
10 KB  
Modules  -  OnlyWire for WordPress [OFFICIAL] 1.6.6
OnlyWire syndicates your content and articles to the web's top social networking sites with a single button click. Used by thousands of bloggers and publishers, OnlyWire simplifies the process of submitting your content to over 30 social...
419.84 KB  
Libraries  -  Apache::CryptHash 3.03
Apache::CryptHash is a Perl module with encrypted tokens for cookies. Creates an encrypted cookie-like string with a MAC (checksum) from a hash of critical and non-critical values. The MAC is created on only the critical values. Decryption will...
13.31 KB  
Modules  -  Photoframe 5.x-1.x-dev 1.0
Photoframe uses jQuery to wrap image-based 'frames' around content after the page has been loaded and is invoked by adding a single CSS style to any element. The API allows extensible styles, is easy to use, and avoids unnecessary...
Networking  -  Content Switcher 1.8.5
Content Switcher allows you to easily insert into posts, pages and widgets of your website random numbers, and random or variable contents. You can use it, for example, to display COOKIE, ENV, GET, POST, SERVER or SESSION variables. Content...
51.2 KB  
Networking  -  FW SubPageInADiv 1.0
Displays the content of a subpage named "spiad" in a div element for specific pages. For example, you may have a special area in your sidebar with a default content. If you want to display something else in this area for specific pages, just...
10 KB  
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Networking  -  Shortcode Autolink 0.1
Lets you create links automatically on the basis of internal research results, and everything through Shortcode !Installation : 1. Upload the plugin folder to your /wp-content/plugins/ folder. 2. Go to the Plugins page and activate the plugin. 3....
10 KB  
Networking  -  Pixel Sitemap 1.0.0
Pixel Sitemap Plugin allows with the use of widget to display in sidebar links on the posts in compact way, namely as a rows of 1 pixel pictures.The main features are: * Support cache for links * Display links in random order or by date * Easy...
10 KB  
Networking  -  Contexture Page Security 0.7.1
Contexture Page Security adds some much-needed "page security" to WordPress, allowing admins to limit or restrict access to individual pages or entire sections of their website. To do this, admins create "groups" of users that can be added to...
10 KB  
Networking  -  Vertical scroll recent post 8.0
This will scroll the recent post title in site side bar or any desired template location.In version 4.0 three new option added. 1. Categories selection. 2. select display Orderbys. 3. select display orderFeature * User can see the newest post at...
10 KB  
Networking  -  Wp-o-Matic-Authors 1.0
"Wp-o-matic-Authors" is an add-on to Wp-o-Matic. It automatically creates a new author for each campaign (even if already fetched). Then, each post imported by Wp-o-Matic will have as author the name given by this plugin instead of a name already...
10 KB