WordPress.org

Ready to get started?Download WordPress

Forums

Audio Tube
[resolved] Showed in post preview but not on published (18 posts)

  1. jh0nnyrosa
    Member
    Posted 1 year ago #

    The topic title says everything, the plugin works well and nicely on the post PREVIEW, even in the preview of already published posts, but it get messed up in the actual published post, showing video images and not the sweet bar. WordPress 3.5.1

    http://wordpress.org/extend/plugins/audio-tube/

  2. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, jh0nnyrosa,
    I cannot reproduce the same error.
    Probably this is a conflict with another plugin or with the theme.

    Did you use Audio Tube before or is this your first installation?

    thanks for the feedback!

  3. jh0nnyrosa
    Member
    Posted 1 year ago #

    Thanks for the reply brasofilo, maybe that happens because the blog is on maintenance mode?

  4. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    That would be strange...

    But did this started to happen suddenly? Or after entering in maintenance, or after WP update, other plugins update?

  5. jh0nnyrosa
    Member
    Posted 1 year ago #

    i've tested it without maintenance, same problem. Its a new WP installation, last version, ive not used this plugin before.

  6. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    Just installed it in a new site that I did a few days ago and it works ok..

    Are there any Javascript errors in the browser console?

    I can only think that this is a conflict with another plugin or with the theme... The normal troubleshooting is disable all other plugins and swap the theme, as described in this official guide.

    Audio Tube is a very simple plugin, basically a YouTube embed resized to show only the Control Bar... I'd recommend finding where is the origin of this issue (the other plugin or theme), because it may give you troubles with other plugins...

  7. jh0nnyrosa
    Member
    Posted 1 year ago #

    i cant try that right now cause i have to get all site content back asap, but ill do this test and post here, the other plugin apparently works normal, the theme im using is pinboard btw. Thanks for your atention.

  8. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    Depending on your plugin list, I could try to simulate.

    Nonetheless, I'd appreciate the feedback, thanks!

  9. jh0nnyrosa
    Member
    Posted 1 year ago #

    plugin list:

    404 redirect
    akismet
    better wp security
    broken link cheker
    cms tree page view
    disqus
    dp maintenance mode lite
    facebook
    fast secure contact form
    feedburner feedsmith extend
    google analyticator
    google xml sitemaps
    hotfix
    links manager
    mini twitter feed
    nrelate related content
    P3 (plugin performance profiler)
    regenerate thumbnails
    shareaholic
    simple image widget
    simple local avatars
    theme check
    ultimate tinyMCE
    user role editor
    video thumbnails
    viperbar
    wordpress editoral calendar
    wordpress importer
    wordpress SEO
    wp youtube lyte (used it to replace audio tube)

  10. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    big list o_O
    and very good too ;)

    but, well, I downloaded it, and it is pinboard that's producing the bug :-?¿

    <strike>Didn't count on that, seems a CSS rule overriding AT display...</strike>

    Update
    The theme resizes via jQuery all Vimeo, YouTube and Kickstarter objects in the page to

    position: absolute;
             top: 0;
             left: 0;
             width: 100%;
             height: 100%;

    So, it's not a bug, it's a feature!

  11. jh0nnyrosa
    Member
    Posted 1 year ago #

    got it, so i cant solve that without mess up my theme's code?

  12. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    Well, the script is fitvids.js and it's only used to resize all those sources to that values.

    It's being enqueued in the function pinboard_register_scripts.

    You can deregister or dequeue it in the child theme functions.php or using a functionality plugin.
    See:
    http://wordpress.stackexchange.com/a/77813/12615
    http://wordpress.stackexchange.com/q/73031/12615

  13. jh0nnyrosa
    Member
    Posted 1 year ago #

    so i add somthing like that to my functions php?

    add_action( 'wp_enqueue_scripts', 'pinboard_register_scripts' );

    function pinboard_register_scripts()
    {
    if( something to tell that audio tube is on page )
    {
    wp_dequeue_script('fitvids');
    // etc
    }
    }

    sry im not a coder so this is a bit dificult to me

  14. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    The callback name has to be unique:

    add_action( 'wp_enqueue_scripts', 'your_prefix_deregister_scripts' );
    
    function your_prefix_deregister_scripts()
    {
    	if( has_shortcode( 'audiotube' ) )
    	{
    		wp_dequeue_script('fitvids');
    	}
    }

    And the handy has_shortcode function that I just found here :))

  15. jh0nnyrosa
    Member
    Posted 1 year ago #

    Thank you very very much, i'll try this as soon as i can :D

  16. brasofilo
    Member
    Plugin Author

    Posted 1 year ago #

    Gostei de ter aprendido o truque has_shortcode
    Saudações :P

  17. jh0nnyrosa
    Member
    Posted 1 year ago #

    entao eu podia ter conversado contigo o tempo todo em portugues? xD valeu

  18. jh0nnyrosa
    Member
    Posted 1 year ago #

    Funcionou, muito obrigado!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic