WordPress.org

Ready to get started?Download WordPress

Forums

Tiga 1.0.2 Not Showing Widgets In WP 2,2 (28 posts)

  1. JeffC71
    Member
    Posted 7 years ago #

    I just upgraded to WP 2.2. I fallowed all the directions in the Upgrade guide and all seemed to have went well. When I went to widgets in the dashboard they were all set up the way they should have been. I clicked save and it told me that my widgets had been saved. However, when I view my site it is showing the default sidebars and not my widgets.

    Is there a fix for this as I really don't want to change my theme.

    Thanks,
    ~Jeff C.

  2. syntax
    Member
    Posted 7 years ago #

    i'm having the same problem w/tiga after the upgrade. i'm guessing that it's a compatibility issue with 2.2.

    i'm sure there's a way to hack tiga into submission to get it to work with the new-style widgets, but i'm very uncomfortable with fiddling w/php code...

  3. webophir
    Member
    Posted 7 years ago #

    can I see your sidebar.php from your current active theme?

    does your sidebar.php contain this code?

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    .
    .
    .
    <?php endif; ?>

  4. liquidengineer
    Member
    Posted 7 years ago #

    webophir,

    I'm running the latest Tiga, and I just looked at sidebar.php. It doesn't seem to have the exact structure you mention, but it does have the following.

    function has_dynamic_sidebar($name) {
    if (!function_exists('dynamic_sidebar'))
    return false;

    global $registered_sidebars, $registered_widgets;

    $index = sanitize_title($name);

    $sidebars_widgets = get_option('sidebars_widgets');

    $sidebar = $registered_sidebars[$index];

    if ( empty($sidebar) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
    return false;

    $did_one = false;
    foreach ( $sidebars_widgets[$index] as $name ) {
    $callback = $registered_widgets[$name]['callback'];

    if ( is_callable($callback) ) {
    $did_one = true;
    }
    }

    return $did_one;
    }
    ?>

    This function is used to check for the existence of "Tiga Left Sidebar," and "Tiga RIght Sidebar," the two default sidebars.

    Any help or suggestions would be greatly appreciated.

  5. Tarindel
    Member
    Posted 7 years ago #

    I am having the same issue and would like to see a resolution.

  6. MichaelH
    Member
    Posted 7 years ago #

    If you have the Sidebar Widget plugin installed delete all the files related to that plugin.

    I just downloaded the 1.0.2 on a 2.2 blog and it is working just fine, dragging and dropping widgets. Remember widgets are now native to 2.2 so you don't need the widget plugin anymore.

  7. Tarindel
    Member
    Posted 7 years ago #

    I deleted the widgets directory and it didn't make a difference. This (and only this) theme ignores my widgets settings (using the new widget functionality) under 2.2.

    Apparently another theme that uses the Tigarator also has similar problems... so it's probably related to that.

  8. Tarindel
    Member
    Posted 7 years ago #

    I was mucking around with Tiga's sidebars.php tonight, and tried this:

    <?php
    function has_dynamic_sidebar($name) {
    if (!function_exists('dynamic_sidebar'))
    return false;
    if (!dynamic_sidebar($name))
    return false;
    return true;
    }
    ?>

    <!-- ##################################### Begin - Left Sidebar ##################### -->

    <?php if (has_dynamic_sidebar('Tiga Left Sidebar')) { ?>
    <ul class="left-sidebar">
    <?php dynamic_sidebar("Tiga Left Sidebar"); ?>

    <?php } else { ?>
    <?php } ?> <!-- End checking of 'dynamic_sidebar' -->

    <!-- ##################################### End - Left Sidebar ####################### -->

    <!-- ##################################### Begin - Right Sidebar #################### -->

    <?php if (has_dynamic_sidebar('Tiga Right Sidebar')) { ?>
    <ul class="right-sidebar">
    <?php dynamic_sidebar("Tiga Right Sidebar"); ?>

    <?php } else { ?>
    <?php } ?> <!-- End checking of 'dynamic_sidebar' -->

    <!-- ##################################### End - Right Sidebar ###################### -->

    -------------------------------------------------------

    Basically, I changed has_dynamic_sidebar() to match what I saw in other themes, and deleted the default widgets that are populated if the user doesn't populate the sidebar widgets.

    The good news is that this gets us close -- if you populate the widgets under presentation->widgets, the sidebars now show up with the correct widgets!

    The bad news is that the left sidebar is being double-populated -- once with the correct sidebar look and feel, and once with the selected widgets for both sidebars but without any formatting. Try it and you'll see. I'm not sure why that is occuring. I'm hoping someone else will have some ideas.

  9. MichaelH
    Member
    Posted 7 years ago #

    Okay, I was wrong--even though I can drag and drop widget in admin, what's appearing on the site is the standard non-widget stuff. Must have been a dream.

  10. Tarindel
    Member
    Posted 7 years ago #

    I have developed a fix to this problem! The solution is available to anybody who wants it at:

    http://learncpp.com/?p=20

    MichaelH, two questions for you:
    1) Is it possible to change your password on this site?
    2) Would it be appropriate to link to this fix from http://codex.wordpress.org/Themes/Theme_Compatibility/2.2?

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    That is a really bad way to do widgets and a sidebar. There's absolutely no need for the has_dynamic_sidebar() function at all. The only reason he's using that has_dynamic_sidebar function is that he appears to not want to change the default sidebar from DIVs to a proper UL/LI method. Which is just silly, of course. The sidebar should be using either divs or a ul regardless of whether he's using widgets or not, not one way for one and the other way for the other.

    The theme could be fixed, mind you. I'm just amazed to see that much trouble gone to avoid such a simple fix.

  12. MichaelH
    Member
    Posted 7 years ago #

    Tarindel
    1. Password change for the Forums is available via the Edit button under View your Profile. Password change for the Codex is under your Preferences.
    2. Not problem linking as you want there.

  13. hell-man
    Member
    Posted 7 years ago #

    Hello!

    I'm running my blogg ( http://www.hell-man.se ) on this theme, Tiga, but now I've been informed that Tiga is not compatibile with the new release of WordPress, version 2.2.

    The reason is said to be that WP 2.2 has an inbuildt handing of widgets. As I've been told, there is needed to be an upgrade of Tiga to fix this.

    Is there anyone out there knowing if there will be such an upgrade?

    I love this theme. It is 100 % fitting my needs. I absolutely don't like to change to some other theme.

    Regarding this post in this discusion:

    "I have developed a fix to this problem! The solution is available to anybody who wants it at:

    http://learncpp.com/?p=20 "

    After that post, it seems that not everybody agree this is an sollution, so my question is, how would you have done if you were me?

    Thanks in advance! Feel free to mail me on hell-man@hell-man.se, if you prefer that.

    Regards,

    /Linus

  14. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Here's how the sidebar.php file should really look.

    I would post this over at wordpress.pastebin, but it's blocked for me for the moment. Mod, feel free to post it over there for me and link to it if you want...

    [moderated code pasted at http://wordpress.pastebin.ca/523651

    and thanks for that Otto ;) ]

  15. Tarindel
    Member
    Posted 7 years ago #

    Otto is correct in saying that the sidebars and widgets were poorly coded in this theme. The fix I made available does not correct the poor coding. What the fix does is update the function that the theme's author wrote to detect whether the user has overridden the default widgets to a version that works with WordPress v2.2.

    Is it the best solution possible? No, the best solution possible would be to recode the theme correctly.

    Is it the best solution available? Yes, until the author (or someone else) recodes the theme properly.

    Does the fix work? Yes, and it won't leave you any worse off than you were under v2.1.3.

  16. hell-man
    Member
    Posted 7 years ago #

    Thanks! You're an super heroe, Tarindel!! Shall change it all in some day or so.

  17. MichaelH
    Member
    Posted 7 years ago #

    That fix from Otto42 (see link to pastebin above) works for me. Even works if not widgets are specified for the two sidebars.

    Thanks Otto42

  18. syntax
    Member
    Posted 7 years ago #

    that's it. i'm going to name my first-born child otto, regardless of his or her gender.

    your fix worked flawlessly, otto. thank you!

  19. Tarindel
    Member
    Posted 7 years ago #

    Yup, Otto's fix worked for me as well, and it's a cleaner solution. Why couldn't you have come up with this yesterday, Otto? ;)

    As a side note, Otto's fix made some funky dots just to the left of the right sidebar when using the default widget set. They looked like unordered list dots. But since I'm not going to be using the default widget set (and I suspect that's true for all of us), it's pretty irrelevant.

  20. MichaelH
    Member
    Posted 7 years ago #

    Okay syntax, I vote for Otther if it's a girl ;-)

  21. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Add this to the style.css file to eliminate the dots (I think):

    ul.right-sidebar, ul.left-sidebar {
    list-style: none;
    }

    Also, I made a slight adjustment to the sidebar.php that will put the H2's inside the LI's correctly for the default sidebars (no widgets). Won't make a difference if you actually have widgets, but still, here's the fixed version:
    http://wordpress.pastebin.ca/525862

  22. Torley
    Member
    Posted 7 years ago #

    Oy, I have a child I'd like to name Otto too! Thanks also for your efforts in fixing this, Tarindel, and all for the helpful comments... it's soooo appreciated because I realy like the Tiga theme, but it hasn't been updated in a long time, and altho it's so nice, it has some unorthodoxies about it.

    I was aghast, aghast I tell you (!) when I upgraded to WordPress 2.2. And then, I found this thread upon a googling. So, again, my appreciation is yours. I'll apply this extra fixed version now...

    this inevitably leads into, "If Tiga could be improved further, now that it works with WP 2.2, what would you add?" :)

  23. Tarindel
    Member
    Posted 7 years ago #

    The two things I really wanted to add to my Tiga themed site were a hyperlinked header graphic and a "recent news" box to my static front page. If either of those would be of interest to you, you can find details in the Tiga category of my blog at http://www.learncpp.com/?cat=8.

  24. IcelandDream
    Member
    Posted 7 years ago #

    I've already named my kids but I'll name my next pet Otto. :)

    I use a modified version of tigopedia which is based on tiga. I was able to put these changes into the theme and fix the 2.2 problem. Thanks a million!

  25. ccassinelli
    Member
    Posted 7 years ago #

    As a newbie blogger and WordPress user I must say I am completely impressed with the community support for this blogging platform. My widgets are now widgetting away. Thanks Otto for the fix!!!

  26. Lynn
    Member
    Posted 7 years ago #

    WP 2 has builtin widgets. I get that. But I can't get to the sidebar code that the widgets handled in the previous version. That is, there is nothing in the Admin panel to manage what was formerly in my widgets, and the code is not in the sidebar. Stuff shows up, but can't be edited.
    [Example: Everything in "IF YOU SAW IT ON ARTSMONTANA" at the bottom of my left sidebar does show up, but I can't edit it.
    See: http://www.artsmontana.com

    I read that I should still be able to handle widgets from the Admin panel, but there is no Widgets tab anywhere to be found.

    Any ideas?

  27. mistressemilie
    Member
    Posted 6 years ago #

    I'm using WP 2.3.1 and Otto's fixed just worked for me, too.

    BUT, the "link" widget isn't displaying my blogroll. My site is here in case anybody wants to see: http://www.mistressemilie.com/submit The blogroll should be on the bottom left. Thanks for any advice.

    PS. My blog content is about S&M and fetish stuff so if that offends you, don't look.

  28. Tarindel
    Member
    Posted 6 years ago #

    Mistressemilie, I released a fix for Tiga that corrects the blogroll issue under 2.3. It incorporates Ottos's 2.2 fix as well.

    http://www.learncpp.com/wordpress/wordpress-tiga-22-23-upgrade/

Topic Closed

This topic has been closed to new replies.

About this Topic