WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Validation errors and Wp-TopBar (11 posts)

  1. niska
    Member
    Posted 2 years ago #

    Just added Wp-topbar to my blog. No special settings. And then I validated the HTML.

    2 Errors:

    - An extra " is added before the href attribute ("href="")
    - The plugin adds html code before the body-tag

    Can this be fixed?

    http://wordpress.org/extend/plugins/wp-topbar/

  2. thatwastaxing
    Member
    Posted 2 years ago #

    Yes, please fix the issue with the code appearing within the head tags rather than the body. Otherwise, works great.

  3. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    I moved the HTML from the HEAD tags to prepended to the BODY via javascript. Try version 3.03.

  4. niska
    Member
    Posted 2 years ago #

    Nice try - but I still get validation errors.

    Could you consider adding the top bar using

    add_action('wp_footer', 'your_function');

    and then moving it via javascript? Then the page will validate. Thanks

  5. thatwastaxing
    Member
    Posted 2 years ago #

    Now I get no TopBar at all. :(

  6. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    I can't help with out having more info... what is your website

  7. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Niska, that is how the code is written.

    See line 64 in v 3.03

    add_action('wp_footer', array( __CLASS__, 'wptb_add_TopBar_Header_html' ), 15);

    Bob

  8. thatwastaxing
    Member
    Posted 2 years ago #

    Bob g: It's on a local server. I've uninstalled and reinstalled. With the topbar in the head tags, it worked. After you fixed the validation errors, it stopped working.

  9. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Append &debug to the wp-topbar admin page URL. When you reload the admin page, it will print out a number of messages. Copy all of them into a reply to this thread. The messages tell me how you have configured the topbar.

    &debug sets a timer and will show the debug messages on the wp-topbar admin page for about a minute, So, if you remove &debug from the URL, the debug messages will still show up for about a minute. It will also add messages to the WordPress debug log for any page views of your website, if you have debug turned on, for that same time period.

    Bob

  10. thatwastaxing
    Member
    Posted 2 years ago #

    Here you go:

    WP-TopBar Debug Mode: in wtpb_check_for_plugin_upgrade
    WP-TopBar Debug Mode: Version 3.05
    WP-TopBar Debug Mode: end of wtpb_check_for_plugin_upgrade
    WP-TopBar Debug Mode: Server Timezone:UTC
    WP-TopBar Debug Mode: Current Time :1333485289-2012-04-03 20:34:49 (UTC)
    WP-TopBar Debug Mode: Starting Time:0-0-1970-01-01 00:00:00 (UTC)
    WP-TopBar Debug Mode: Ending Time  :0-0-1970-01-01 00:00:00 (UTC)
    WP-TopBar Debug Mode: Start Time is zero
    WP-TopBar Debug Mode: End Time is zero
    WP-TopBar Debug Mode: TopBar will display due to time settings and because it is enabled
    WP-TopBar Debug Mode: Cookie Name: wptopbar_adb2e8c677ecccd883ebf44735d2f094
    WP-TopBar Debug Mode: Cookie not found
    WP-TopBar Debug Mode: Not an iPhone/iPad/iPod Device
    WP-TopBar Debug Mode: Filename:/home/annabita/public_html/wp-content/plugins/wp-topbar/lib/
    WP-TopBar Debug Mode: --------------------------------------
    WP-TopBar Debug Mode: Using these "wptbAdminOptions" Values:
    WP-TopBar Debug Mode:  [wptb_version]: 3.05
    WP-TopBar Debug Mode:  [enable_topbar]: true
    WP-TopBar Debug Mode:  [topbar_pos]: header
    WP-TopBar Debug Mode:  [text_color]: #000000
    WP-TopBar Debug Mode:  [bar_color]: #d7e9f3
    WP-TopBar Debug Mode:  [bottom_color]: #86b2c9
    WP-TopBar Debug Mode:  [link_color]: #333333
    WP-TopBar Debug Mode:  [bottom_border_height]: 3
    WP-TopBar Debug Mode:  [include_pages]: 0
    WP-TopBar Debug Mode:  [invert_include]: no
    WP-TopBar Debug Mode:  [delay_time]: 5000
    WP-TopBar Debug Mode:  [slide_time]: 200
    WP-TopBar Debug Mode:  [display_time]: 0
    WP-TopBar Debug Mode:  [start_time]: 0
    WP-TopBar Debug Mode:  [end_time]: 0
    WP-TopBar Debug Mode:  [start_time_utc]: 0
    WP-TopBar Debug Mode:  [end_time_utc]: 0
    WP-TopBar Debug Mode:  [font_size]: 14
    WP-TopBar Debug Mode:  [padding_top]: 8
    WP-TopBar Debug Mode:  [padding_bottom]: 8
    WP-TopBar Debug Mode:  [margin_top]: 0
    WP-TopBar Debug Mode:  [margin_bottom]: 0
    WP-TopBar Debug Mode:  [respect_cookie]: ignore
    WP-TopBar Debug Mode:  [cookie_value]: 1
    WP-TopBar Debug Mode:  [past_cookie_values]: Array
    WP-TopBar Debug Mode:  [allow_close]: no
    WP-TopBar Debug Mode:  [close_button_image]: http://localhost/test/wp-content/plugins/wp-topbar/lib/images/close.png
    WP-TopBar Debug Mode:  [close_button_css]: float:right;
    WP-TopBar Debug Mode:  [link_target]: self
    WP-TopBar Debug Mode:  [bar_link]: http://localhost/test/contact/
    WP-TopBar Debug Mode:  [bar_text]: Our site is now in beta! We\'d love to hear your feedback, ideas, and suggestions.
    WP-TopBar Debug Mode:  [bar_link_text]: Drop us a line.
    WP-TopBar Debug Mode:  [text_align]: center
    WP-TopBar Debug Mode:  [bar_image]:
    WP-TopBar Debug Mode:  [enable_image]: false
    WP-TopBar Debug Mode:  [custom_css_bar]:
    WP-TopBar Debug Mode:  [div_css]: position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;
    WP-TopBar Debug Mode: --------------------------------------
    WP-TopBar Debug Mode: Tue, 03 Apr 2012 20:34:49 (UTC)
    WP-TopBar Debug Mode: Loading Options
    WP-TopBar Debug Mode: Completed Updating Options
    WP-TopBar Debug Mode: Version 3.05
    WP-TopBar Debug Mode: Displaying Options Page
  11. thatwastaxing
    Member
    Posted 2 years ago #

    Aha! The problem is with text. The apostrophe isn't being escaped, it seems. I removed it and it works fine again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags