Support » Plugin: podPress » [Plugin: podPress] Bugfix: Post short version / Versiones cortas de entradas

  • Resolved dayanayfreddy

    (@dayanayfreddy)


    In Podpress 8.8.6.3 even I used the “Before <!- More -> tag” option set to “No” the player and file link showed in short versions of posts in homepage, archives and searches.

    That’s because my theme doesn’t use the “more-link class”.

    After a while, I could fix it by changing podpress_class.php in lines arround 824:

    From This:

    if (is_home() or is_archive()) {
      if (FALSE !== strpos($content, 'class="more-link">')) {
      return $content;
    }

    To This:

    if (!is_feed() and !is_single() and !is_page()) {
      return $content;
    }

    With this I had the desired behavior and could hide the player in posts short versions by setting “Before <!- More -> tag” podpress option to “No”.

    I hope you found this fix helpfull.

    Spanish Translation / Traducción al Español

    En Podpress 8.8.6.3, aunque estaba usando la opción “Before <!- More -> tag” puesta en “No”, El reproductor y el enlace al archivo seguía mostrándose en las versiones cortas de las entradas en la página de inicio, en los archivos y en las búsquedas.

    Todo eso porque mi tema no utiliza la clase “more-link”.

    Después de un rato, pude arreglarlo cambiando el archivo podpress_class.php en las líneas alrededor de la 824:

    De Esto:

    if (is_home() or is_archive()) {
      if (FALSE !== strpos($content, 'class="more-link">')) {
      return $content;
    }

    A Esto:

    if (!is_feed() and !is_single() and !is_page()) {
      return $content;
    }

    Con esto ya tuve el comportamiento deseado y pude ocultar el reproductor en las versiones cortas de las entradas poniendo la opción “Before <!- More -> tag” de podpress en “No”.

    Espero que encuentres últil este arreglo.

    Un saludo / Greets

    http://wordpress.org/extend/plugins/podpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ntm

    (@ntm)

    Your are right. The if (FALSE !== strpos($content, 'class="more-link">')) { condition is probably unnecessary. I will look into this and take this modification over into the next version.

    Thank you for your report and for providing this solution!

    off topic:
    I’m astonished and thrilled that you have written you explanation in Spanish, too.

    Would you like to translate the text passages of the admin pages and elements of podPress?

    I have used the Poedit program to edit the German languages. An updated and prepared .po file is in the repository resp. in the .zip file of podPress. You could take the podpress-xx_XX.po and name it e.g. podpress-es_ES.po.

    Regards,
    Tim

    off topic:

    Sure, sounds great!. I’m spanish native speaker so it will be fun to help with the translation. In a few days I’ll send you a first version… To where can I send it?

    Greets

    Plugin Author ntm

    (@ntm)

    off topic:

    I’m glad that you want to this. I guess most uncomplicated way is to send via email to me: timberge at cs dot tu-berlin dot de

    Currently, I’m working on a new version of podPress which will most likely have the version number 8.8.8. This version will include some new text passages on the Feed/iTunes Settings page and a lot of modified passages in both Widgets.
    If you start with the file of 8.8.6.3 it would be a good idea to leave these sections out and to begin with other sections.
    Or if you are familiar with a SVN client and if you have a test/demo blog somewhere then you may download the latest nightly build version from http://plugins.svn.wordpress.org/podpress/branches/8.8.8_cutomizable_feeds
    But in the next two weeks I’m going to finish put this branch in the trunk-folder and it will be easier to download for the beta testers.

    However, it is possible to update such a language file with already translated passages, so that all new phrase will be added and none of the translated lost. Poedit also marks modified passages. But in cases when passages changing very much, Poedit or at least old versions of this program did not kept the translated part. That is why you should start maybe with the Player Settings, General Settings, Statistics pages and the podPress elements below the editor. They will mostly stay unmodified.

    I hope that I have not forgotten something but in case I have, I will post it here or write you an email. You can of course ask me question every time and I will try answer them as fast as possible.

    Regards,
    Tim

    Plugin Author ntm

    (@ntm)

    podPress v8.8.8 beta 10 is now available as the Development Version in the list of Other Versions.

    Your proposal is in it. If you want try this beta version then use a testing blog or/and backup the data base of the blog and be sure that you know how to make a roll-back to the last stable version or how-to restore the backup. It is a beta version and may contain bugs.

    All mayor modifications are in this beta version and the languages files (which are now in the sub folder languages/) are up to date. I’m confident that there will be no further changes of the text passages. If you like you can use the podpress-xx_XX.po file and rename it e.g. podpress-es_ES.po.

    Regards,
    Tim

    Plugin Author ntm

    (@ntm)

    One more notice for using v8.8.8: It will be necessary to reconfigurate the widgets of podPress because the technique behind them and their functions have changed a lot.

    If you discover a bug then please post it in the podPress v8.8.8 beta testing thread.

    Thank you for your help!

    Regards,
    Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: podPress] Bugfix: Post short version / Versiones cortas de entradas’ is closed to new replies.