WordPress.org

Ready to get started?Download WordPress

Forums

TwitterCounter
[resolved] Twittercounter only shows one Style of TwitterCounter badge (14 posts)

  1. jshare
    Member
    Posted 1 year ago #

    I just upgraded to Twittercounter 1.6, after upgrading to WordPress 3.4.2.

    I had been on TC 1.2.

    With the latest version, the avatar style is always displayed in my theme no matter which style I choose in the settings page.

    Any ideas how to fix this?

    Jacob

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

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Are you changing the settings from the Widget under Appearance > Widgets > TwitterCounter?

  3. jshare
    Member
    Posted 1 year ago #

    No. My theme is old and not widget-enabled, so when I click Appearance > Widgets, it just says No Sidebars Defined.

    Regardless, the Twittercounter badge currently appears in my blog's header, not the sidebar.

  4. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Are you using the manual install option?

  5. jshare
    Member
    Posted 1 year ago #

    I'm calling it with <?php do_action('echo_tc'); ?> in my theme, if that's what you mean?

  6. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Can you try replacing the do_action code with

    <?php decho ald_tc(); ?>

  7. jshare
    Member
    Posted 9 months ago #

    Actually, it should be <?php echo ald_tc(); ?> but that didn't work either.

    It only shows the first version, with the embedded avatar image, which is nice, but breaks my theme so I still need the old feedburner-like image.

  8. Ajay
    Member
    Plugin Author

    Posted 9 months ago #

    Which of the options are you setting up in the Settings page? The 3rd?

  9. jshare
    Member
    Posted 9 months ago #

    Under 'Select Style of TwitterCounter badge', it doesn't matter which one I choose, or if I choose something under 'Older buttons'. Regardless, it's the embedded avatar image that gets displayed.

  10. Ajay
    Member
    Plugin Author

    Posted 9 months ago #

    Can you try this:

    <?php echo ald_tc('custom') ?>
  11. jshare
    Member
    Posted 9 months ago #

    That did it. I can now pass any of the options like 'custom' or 'avatar' or 'black' and get the one that I want.

    I guess this is a bug? The choice in the UI is being ignored and needs to be hardcoded?

  12. Ajay
    Member
    Plugin Author

    Posted 9 months ago #

    It's because I pass the default value in the function definition and so it was ignoring the settings page.

    I plan on releasing a new version of the plugin with better controlled settings (not the one I pushed through last night).

  13. jshare
    Member
    Posted 9 months ago #

    Got it, thanks all around

  14. Ajay
    Member
    Plugin Author

    Posted 9 months ago #

    Your welcome

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.