Forum Replies Created

Viewing 15 replies - 406 through 420 (of 607 total)
  • Plugin Author rfgoetz

    (@rfgoetz)

    You did all the correct things to make it work.

    You do have a number of javascript errors on your page that may be preventing the TopBar from loading. It looks like that is stopping a number of scripts from running. Those errors do not show up on your home page.

    GET http://platform.twitter.com/widgets.js  tafeio.pt/:45
    Uncaught Error: Syntax error, unrecognized expression: [class*='wp-image-'] , jquery.js:2
    GET http://cdn.tynt.com/tc.js  classic.js:1
    Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://tafeio.pt". Protocols, domains, and ports must match.
    GET http://cc.simplereach.com/n?pid=4f67d94e396cef37c7000193&url=http%3A%2F%2Ft…F&authors=T%C3%A1Feio&channels=videos&tags=&cb=SPR.API.callbacks.cb6680957 404 (Not Found) slide.js:2
    Plugin Author rfgoetz

    (@rfgoetz)

    Also, you might need to edit wp-topbar.php

    Change lines 421/459 from “<p>”/”</p>” to “<div>”/”</div>”.

    (I’ll change this in the next release.)

    The code is above in my last response.. I added the ?> … <?php for you.

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Works for me. Did you echo out the above or stop/start PHP processing (via ?>....<?php?

    ?><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fwww.enimerwsi.gr&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=492132430837842" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe><?php

    Plugin Author rfgoetz

    (@rfgoetz)

    In the All TopBars view, click the box next to the word “ID” and then select bulk actions Delete. That will delete all your TopBars (on that screen.) Continue until you have no more TopBars. Now, you can start over.

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    The Text Area is for text — not HTML code.

    What code have you entered?

    Have you tried using the new PHP options to enter your custom code?

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Ok – -found out how to fix it.

    You need to edit wp-topbar.php

    Changes lines 421/459 from “<p>”/”</p>” to “<div>”/”</div>”.

    (I’ll change this in the next release.)

    You’ll need to add styling to your menu via CSS to make it pretty. You can use this to set your classes:

    $defaults = array(
    	'menu' => 'wptopbar-menu',
    	'menu_class'  => 'wptb-menu-class',
            'container_class' => 'wptb-container-class',
    	'echo' => 0
    );
    $menu = wp_nav_menu( $defaults);
    echo preg_replace("/\r\n|\r|\n/",'',$menu);

    Then style using .wptb-menu-class or .wptb-container-class (whichever you prefer.)

    Plugin Author rfgoetz

    (@rfgoetz)

    I did some more testing and it looks like it partially works only if you have the TopBar in the footer position.

    The reason? They way that WordPress creates the Menu, it breaks how I inject the TopBar into the HTML stream (using the JavaScript function – prepend()). WordPress includes characters that cannot be used in the prepend() function.

    Also, the prefix/suffix are the internal variable names I used. I should have written “before” and “after” PHP.

    OK — so how to fix this? I have a partial solution:

    Use this code in the “After” section instead of the code I gave you before.

    $defaults = array(
    	'menu'            => 'wptopbar-menu',
    	'echo'            => 0
    );
    
    $menu = wp_nav_menu( $defaults);
    echo preg_replace("/\r\n|\r|\n/",'',$menu);

    HOWEVER, for some reason, the HTML causes the menus to get generated after the TopBar. I’ve looked at the generated HTML — and I cannot find a reason why it is doing that. Maybe someone with more advanced CSS skills can help solve this one!

    Here is the generated HTML:
    <div id="topbar1" style="top: 40; padding:0; margin:0; width: 100%; z-index: 99999;"><p id="wptbheadline1" style="....">Get your own TopBar <a style="color:#c00000; " href="http://wordpress.org/extend/plugins/wp-topbar/" target="_blank">from the WordPress plugin repository</a><div class="menu-topbarmenu-container"><ul id="menu-topbarmenu" class="menu"><li id="menu-item-435" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-435"><a href="http://null.org">null</a></li><li id="menu-item-436" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-436"><a href="http://null.com">null</a></li></ul></div></p></div>

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Closing – no response in over a week.

    Plugin Author rfgoetz

    (@rfgoetz)

    Version 4.17 is updated with the Scroll Action. If you can, please rate the plugin and add a review — if you like my support and the plugin.

    Thanks,

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Plugin Author rfgoetz

    (@rfgoetz)

    Your functions.php is in your theme folder and is not changed when you upgrade WordPress. It is only affected when you upgrade/change your theme.

    I’ll have to walk through the various use cases and implications before I add this to the plugin. For example, do I allow each TopBar to have its own menu? If so, that can create dozens of menus to populate? Do I let have all TopBar’s share one? I have to work through all of those and then test them. So, it won’t be in the next release.

    Plugin Author rfgoetz

    (@rfgoetz)

    Ok – for #1 — I have it coded for the next release.

    Did #2 work for you?

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    For #1 —

    The would mean a jquery change to capture the scroll() event. Let me look at the for a future change.

    For #2 —

    In your functions.php file add this code to create a custom menu. Then use the standard WordPress Appearance | Menu to create the menu:

    //register the custom menus
    function register_wptopbar_menus() {
    register_nav_menus(
    array(
    'wptopbar-menu' => __( 'TopBar Menu' )
    )
    );
    }
    add_action( 'init', 'register_wptopbar_menus' );

    In the PHP (Prefix or Suffix – your choice)… use this code:

    wp_nav_menu(array('menu'=>'wptopbar-menu' ));
    Plugin Author rfgoetz

    (@rfgoetz)

    Yes you can, via the PHP PREFIX option. You’ll need to put your code there that creates your player.

    Regarding keeping the music going as the user browses your web pages – you’ll have to consult someone else for that since that is beyond the scope of the plugin.

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    I did a quick google search.. have you tried this?

    http://wpengineer.com/2051/use-wordpress-shortcodes-outside-the-editor/

    Bob

Viewing 15 replies - 406 through 420 (of 607 total)