ThemeShaper Forums » Thematic

[closed]

Index Insert (She's gone...)

(19 posts)
  • Started 4 years ago by LegendsCrazy
  • Latest reply from Chris
  • This topic is resolved
  1. Hi all,

    When I installed 0.9.5 today, (Love it BTW!) I lost my Index Insert widget. I tried doing a reset within Thematic Options and even a Reset Widgets and it still won't show. Any suggestions?

    Thanks in advance.

    Posted 4 years ago #
  2. tonyjansen
    Member

    Hi,

    I ran into that as well. copying index.php to the childtheme directory seems to have fixed it, albeit not an elegant solution.

    Cheers,
    Tony

    Posted 4 years ago #
  3. Thanks Tony, but that didn't work for me either. It's still not showing up.

    Posted 4 years ago #
  4. .. need to check this.

    Cheers,

    Chris

    Posted 4 years ago #
  5. tonyjansen
    Member

    Odd, had the same thing on another blog after upgrading to 0.9.5. copying the index.php fixed it one more time. I did notice that under wp-admin - reading - 'frontpage displays' both options were unchecked.

    Posted 4 years ago #
  6. ... did a quick test .. yes, we do have an issue with the current version 0.95 .. give me 15 minutes and I'll post a fix that can be included into your child theme's functions.php. More details will follow.

    Posted 4 years ago #
  7. Ok .. here's the code to fix the gone Index Insert .. add it to your child theme's functions.php:

    function remove_index_loop() {
    	remove_action('thematic_indexloop', 'thematic_index_loop');
    }
    add_action('init', 'remove_index_loop');
    
    function fix_index_loop() {
    	global $options;
    	foreach ($options as $value) {
        if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
        else { $$value['id'] = get_option( $value['id'] ); }
        }
    		/* Count the number of posts so we can insert a widgetized area */ $count = 1;
    		while ( have_posts() ) : the_post() ?>
    
    			<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
        			<?php thematic_postheader(); ?>
    				<div class="entry-content">
    <?php thematic_content(); ?>
    
    				<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>
    				</div>
    				<?php thematic_postfooter(); ?>
    			</div><!-- .post -->
    
    				<?php comments_template();
    
    				if ($count==$thm_insert_position) {
    						get_sidebar('index-insert');
    				}
    				$count = $count + 1;
    		endwhile;
    }
    add_action('thematic_indexloop', 'fix_index_loop');

    Mea culpa .. I missed this one during my final tests.

    Instead of integrating the above mentioned fix into a new release, I'm going to rewrite the code dealing with the theme options. This should be available during the weekend.

    Again .. sorry for this inconvenience.

    Cheers,

    Chris

    Posted 4 years ago #
  8. I looked all over for this thread after I got the response through RSS. I've been stickied! LOL. Thanks for the reply Chris. Good to see you back on the forums! Unfortunately, I'm getting a parse error of unexpected endwhile though.

    Parse error: syntax error, unexpected T_ENDWHILE in .../legendscrazy.net/functions.php

    When you post these code snippets do we still put:

    <?php } Before and

    ?> After? Or just pop them in as is?

    And Thanks tonyjanson too for trying to help out!

    Posted 4 years ago #
  9. Just drop it in as it is .. copied the code from my existing functions.php

    Posted 4 years ago #
  10. She's back and I'm all good to go again. Thanks Chris!

    Cheers,

    Dale

    Posted 4 years ago #
  11. tolmarc
    Member

    thx for the fix.

    is this something that will be needed in our functions.php, or is there an theme update that coming soon? I just need to know to build a child theme.

    Posted 4 years ago #
  12. Hi,

    will take this weekend to rewrite the options part of the code. Depending on this, we might release a new version pretty soon. In addition I'll come up with a revised code that checks the Thematic version and can be left in the code without any problems.

    Chris

    Posted 4 years ago #
  13. japani
    Member

    @Chris,

    thx for the quick reply. I think that it will be better to have this version fixed without another version (unless there are more features). if this was a bug, than it can create more confusion if you start doing version checks. anyway, it's up to you, and again, thanks!

    Posted 4 years ago #
  14. sober
    Member

    Something wierd is happening on my local wordpress install where despite adding this, the widget is not showing up. The strange thing is that another installation is working fine with the code. I even copied that install's function.php but even then it is not showing up

    Posted 4 years ago #
  15. sober
    Member

    The index insert does not show when you have only one post to show on the home page, but when i made another, it popped up .

    Posted 4 years ago #
  16. spirituality
    Member

    I'm also not getting the index insert working. I have thematic 0.9.5.1 installed - is that the version that's fixed or is this bug still in? I disagree with those that say it should not be a new version - I think it's confusing if a fixed version has the same no. as the unfixed one. Now I don't know if this bug is something else I did or I should be updating.

    Oh, I do have several posts on my index page. I've used this blog of mine for about four months now, so I could have the fixed version, or the unfixed version. What do I do?

    Posted 4 years ago #
  17. Just downloaded thematic .9.5.1 an hour ago and I noticed this issue as well...
    Thanks for the fix, Chris. =)

    Posted 4 years ago #
  18. I can't seem to change the position of the insert via settings...it's always after the 2nd post.

    Posted 4 years ago #
  19. Strange .. works here according to what is defined in Thematic options.

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.