Plugin Directory

Changeset 505833


Ignore:
Timestamp:
02/16/2012 10:44:21 AM (14 years ago)
Author:
davidn.de
Message:

Removed internal urls from relevanssi excerpts.

Location:
e-paper/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • e-paper/trunk/epaper.php

    r496210 r505833  
    11<?php
    22/**
    3  * @package continent7
    4  * @version 1.9
     3 * @package davidn.de
     4 * @version 1.11
    55 */
    66/*
     
    99Description: This Plugin provides a custom post-type e-paper.
    1010Author: David Nellessen (continent7 Bartels & Nellessen GbR)
    11 Version: 1.10
     11Version: 1.11
    1212Author URI: http://davidn.de
    1313*/
     
    1717# Filename:         epaper.php
    1818# Type:             php
    19 # Version:          1.10.0
    20 # Last Change:      27.01.2012
     19# Version:          1.11.0
     20# Last Change:      16.02.2012
    2121# Created:          10.06.2011
    2222# Authors:          David Nellessen (info@davidn.de)
     
    2828#
    2929# This is the main file of the epaper plugin for wordpress written
    30 # by continent7.
    31 #
    32 # Features:
    33 # - Creates a custom post-type "E-Paper"
    34 # - E-Paper are equipped with most of the posts' features ('title', 'editor',
    35 #   'author', 'thumbnail', 'excerpt', 'custom-fields', ) plus 'edition number'.
    36 # - Content of epaper can be stored page-wise for searching-purpose. We recommend
    37 #   using relevanssi (http://wordpress.org/extend/plugins/relevanssi/)
    38 # - Full support for Relevanssi. Content of E-Papers is searched by relevanssi
    39 #   AND displayed in results if relevanssi is configured to
    40 # - The epaper data is IP-protected giving access only to users that are able to
    41 #   open the epaper post the data relates to.
    42 # - Access protection compatible with UAM
    43 #   (http://wordpress.org/extend/plugins/user-access-manager/)
    44 # - Support for epaper created with Flipviewer Xpress Creator
    45 #   (http://www.flipviewer.com/): Uploaded
    46 #   archives are automatically processed (content detection, url-detection, ...)
    47 #
    48 # Requirements:
    49 # - Wordpress 3.1 (or higher) installed, fulfilling the common requirements
    50 # - Apache Module mod_access with all directives order, deny, allow
    51 # - PHP ext. SimpleXML http://www.php.net/manual/en/simplexml.requirements.php
    52 # - WP function unzip_file should work properly. Don't worry about it, if the
    53 #   installation of plugins and themes works fine.
    54 #
    55 # Guidelines:
    56 # - Version format is: major.minor.bugfix
    57 # - The following license is a MIT license
    58 #
    59 # Note for Cyrillic:
    60 # Cyrillic is not supported due to a combination of a wordpress bug when
    61 # importing some of the XML extracted strings that are corrupted and lag in
    62 # support for Cyrillic in forceUTF8.php
    63 #
     30# by David Nellessen.
     31#
     32# See readme.txt for more documentation.
    6433#
    6534################################### LICENSE ####################################
    6635#
    67 # Copyright (c) 2010,2011 continent7
     36# Copyright (c) 2012 David Nellessen
    6837#
    6938# Permission is hereby granted, free of charge, to any person obtaining a copy
     
    12291  'epaper_meta_realepaper',
    12392  'epaper_meta_pdf',
     93  'epaper_meta_pages'
     94);
     95$frontendfields_reduced = array(
    12496  'epaper_meta_pages'
    12597);
     
    912884  if ( $post->post_type != EPAPER_POST_TYPE_NAME ) return $content;
    913885 
    914   global $frontendfields;
    915   foreach($frontendfields as $field){
     886  global $frontendfields_reduced;
     887  foreach($frontendfields_reduced as $field){
    916888    //pay attention to $single (http://codex.wordpress.org/Function_Reference/get_post_meta)
    917889    $field_value = get_post_meta($post->ID, $field, TRUE);
     
    995967    else
    996968      return FALSE;
    997 } 
     969}
  • e-paper/trunk/readme.txt

    r496210 r505833  
    22Contributors: davidn.de
    33Donate link:
    4 Tags: e-paper, paper, publication, custom-post-type, FlipViewer, publisher, Relevanssi, UAM
     4Tags: e-paper, paper, publication, custom-post-type, FlipViewer, publisher, Relevanssi, relevance, user access manager
    55Requires at least: 3.1.0
    66Tested up to: 3.3.1
    7 Stable tag: 1.10
     7Stable tag: 1.11
    88
    99With E-Paper-plugin you can easily integrate your e-paper
     
    5252work out of the box**.
    5353
    54 The plugin stores e-paper data in wp-content/uploads/epaper.
    55 
    5654= Relevanssi Support =
    5755
    5856The E-Paper Plugin integrates into
    59 [Rellevansi](http://wordpress.org/extend/plugins/relevanssi/). To set it up
     57[Relevanssi](http://wordpress.org/extend/plugins/relevanssi/). To set it up
    6058go into the Relevanssi settinga panel and add __epaper_meta_editionnumber,
    6159epaper_meta_realepaper, epaper_meta_pdf, epaper_meta_pages__ to
     
    8886
    8987== Frequently Asked Questions ==
    90 Nothing yet...
     88= Where does the E-Paper Plugin store the e-paper data? =
     89The plugin stores e-paper data in wp-content/uploads/epaper. Make sure it is
     90writeable!
    9191
    9292== Screenshots ==
     
    9595== Changelog ==
    9696
    97 = Version 0.1.0 (10.06.2011) =
    98 * Implementation of post-type epaper with basic features
    99 * Plugin Template for the_content
    100 * Implementation of 'edition number': Admin Interface & the_content
    101 
    102 = Version 0.2.0 (13.06.2011) =
    103 * Implementation of 'Epaper-URL': Admin Interface & the_content
    104 * Implementation of 'PDF-URL': Admin Interface & the_content
    105 * Implementation of an Upload field & unziping file
    106 
    107 = Version 0.3.0 (14.06.2011) =
    108 * Implemented validation possibility on save_post
    109 * Validation for file upload implemented
    110 * Implemented ip-based file protection following
    111   http://stackoverflow.com/questions/2187200/using-php-apache-to-restrict-access-to-static-files-html-css-img-etc
    112 * Implemented support for UAM
    113 * Implemented possibility to upload archives
    114 * Implemented autodetection of E-Paper-URL and PDF-Url for uploaded archives
     97Version format is: major.minor.bugfix
     98
     99= Version 1.11.0 (16.02.2012) =
     100* Minor improvement of documentation.
     101* Removed internal urls from relevanssi excerpts.
     102
     103= Version 1.10.0 (27.01.2012) =
     104* Further preps for submission to wordpress rep.
     105* created readme.txt
     106
     107= Version 1.9.0 (26.01.2012) =
     108* Prepared plugin for submission to wordpress rep.
     109* 'show_in_menu' fix
     110
     111= Version 1.8.1 (09.11.2011) =
     112* Bugfix for searchterms with higher asci characters like �
     113
     114= Version 1.8.0 (24.10.2011) =
     115* changed url-parameter "search" to "keyword" for compatibility with new flipviewer versions
     116
     117= Version 1.7.0 (12.08.2011) =
     118* changed page detection to xml attribute pageNumber
     119
     120= Version 1.6.0 (12.08.2011) =
     121* Added searchterm to the_content
     122* updated language file
     123
     124= Version 1.5.0 (09.08.2011) =
     125* Bugfix: Internal Server Error if xml-file-convention is ignored
     126
     127= Version 1.4.0 (07.08.2011) =
     128* Improved "link page in epaper after search results"
     129
     130= Version 1.3.0 (04.08.2011) =
     131* Fixed wp-nonce bug
     132
     133= Version 1.2.0 (22.07.2011) =
     134* link page in epaper after search results
     135
     136= Version 1.1.0 (21.07.2011) =
     137* removed edition number
     138* improved pdf recognition
     139* search message
     140
     141= Version 1.0.1 (20.06.2011) =
     142* Small changes and cleanup
     143* Testing
     144
     145= Version 1.0.0 (19.06.2011) =
     146* Fixing the file system problem by using 0777 permission by default
     147* Optimization of frontend/backend and some cleanup
     148* Testing on different server
     149* Documentation
     150
     151= Version 0.5.0 (16.06.2011) =
     152* Better Relevanssi support with you filter
     153  http://wordpress.org/support/topic/snippets-not-created-from-custom-fields?replies=23
     154* Performance optimization
     155* Backend UI improved with jQuery UI and some cleanup
     156* Frontend styling
     157* looking for epaper-the-content.php in theme directory for templating the_content of epaper posts
    115158
    116159= Version 0.4.0 (15.06.2011) =
     
    125168   http://wordpress.org/support/topic/plugin-relevanssi-a-better-search-bug-report-wrong-use-of-get_post_meta
    126169
    127 = Version 0.5.0 (16.06.2011) =
    128 * Better Relevanssi support with you filter
    129   http://wordpress.org/support/topic/snippets-not-created-from-custom-fields?replies=23
    130 * Performance optimization
    131 * Backend UI improved with jQuery UI and some cleanup
    132 * Frontend styling
    133 * looking for epaper-the-content.php in theme directory for templating the_content of epaper posts
    134 
    135 = Version 1.0.0 (19.06.2011) =
    136 * Fixing the file system problem by using 0777 permission by default
    137 * Optimization of frontend/backend and some cleanup
    138 * Testing on different server
    139 * Documentation
    140 
    141 = Version 1.0.1 (20.06.2011) =
    142 * Small changes and cleanup
    143 * Testing
    144 
    145 = Version 1.1.0 (21.07.2011) =
    146 * removed edition number
    147 * improved pdf recognition
    148 * search message
    149 
    150 = Version 1.2.0 (22.07.2011) =
    151 * link page in epaper after search results
    152 
    153 = Version 1.3.0 (04.08.2011) =
    154 * Fixed wp-nonce bug
    155 
    156 = Version 1.4.0 (07.08.2011) =
    157 * Improved "link page in epaper after search results"
    158 
    159 = Version 1.5.0 (09.08.2011) =
    160 * Bugfix: Internal Server Error if xml-file-convention is ignored
    161 
    162 = Version 1.6.0 (12.08.2011) =
    163 * Added searchterm to the_content
    164 * updated language file
    165 
    166 = Version 1.7.0 (12.08.2011) =
    167 * changed page detection to xml attribute pageNumber
    168 
    169 = Version 1.8.0 (24.10.2011) =
    170 * changed url-parameter "search" to "keyword" for compatibility with new flipviewer versions
    171 
    172 = Version 1.8.1 (09.11.2011) =
    173 * Bugfix for searchterms with higher asci characters like �
    174 
    175 = Version 1.9.0 (26.01.2012) =
    176 * Prepared plugin for submission to wordpress rep.
    177 * 'show_in_menu' fix
    178 
    179 = Version 1.10.0 (27.01.2012) =
    180 * Further preps for submission to wordpress rep.
    181 * created readme.txt
     170= Version 0.3.0 (14.06.2011) =
     171* Implemented validation possibility on save_post
     172* Validation for file upload implemented
     173* Implemented ip-based file protection following
     174  http://stackoverflow.com/questions/2187200/using-php-apache-to-restrict-access-to-static-files-html-css-img-etc
     175* Implemented support for UAM
     176* Implemented possibility to upload archives
     177* Implemented autodetection of E-Paper-URL and PDF-Url for uploaded archives
     178
     179= Version 0.2.0 (13.06.2011) =
     180* Implementation of 'Epaper-URL': Admin Interface & the_content
     181* Implementation of 'PDF-URL': Admin Interface & the_content
     182* Implementation of an Upload field & unziping file
     183
     184= Version 0.1.0 (10.06.2011) =
     185* Implementation of post-type epaper with basic features
     186* Plugin Template for the_content
     187* Implementation of 'edition number': Admin Interface & the_content
    182188
    183189== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.