Forum Replies Created

Viewing 15 replies - 76 through 90 (of 178 total)
  • Forum: Plugins
    In reply to: rollover US map plugin
    Thread Starter buskerdog

    (@buskerdog)

    Ok check this out:
    http://tinyurl.com/28rm6h
    It’s an all-CSS rollover map.

    Pro:
    -All-CSS format means it would probably be easy to use with WordPress in order to have little excerpt previews and things like that

    Con:
    -The rollover field has to be a rectangle, obviously not good for a map. But I guess you could put the state initials in the middle of each state (or down the side for the smaller states) and just have that be the rollover hot spot… So not fatal
    -It would be a lot of work doing this for all 50 states, but that’s not a big deal. I have access to caffeinated drinks.

    Thoughts?

    Thread Starter buskerdog

    (@buskerdog)

    carlowens: thanks!

    kjagen: thanks!

    It’s not iNove, it’s a completely custom theme. I coded it just as a static html page with static lists for the menus until it looked right, then I started adding WP markup to it.

    The menu and sidebar are set up with different divs. The menu is a list of pages with only a few included and the sidebar is a list of 4 included categories followed by a list of 4 included pages (or I might have used exclude here in case the client wants to add more, don’t remember.)

    Finally the sidebar in the blue box is another list of included pages that the client wanted to highlight specifically. Each of these lists has its own style. Feel free to explore the code:

    Here’s the CSS: http://tinyurl.com/d4kt7d

    Thread Starter buskerdog

    (@buskerdog)

    thanks for the first note. Gonna fix that now.

    as for the second, I thought about that but never got around to addressing it… Maybe I will. Thanks! (although looking at it again, the tops and bottoms are usually straight… maybe I’ll play with it…)

    Thread Starter buskerdog

    (@buskerdog)

    Cool. No rush for me because I ended up doing something else. But I think it would make your very nice plug-in even nicer!

    Thread Starter buskerdog

    (@buskerdog)

    That didn’t do it.

    However, it seemed that the “preview” that comes up when you switch themes was getting hung up on some sort of weird loop that doesn’t actually occur in the live site. I don’t know why that was happening (and why it didn’t happen before the name change I mentioned) but at least now it seems to be working. Weird mystery. Hopefully it’ll not cause problems in the future.

    Thread Starter buskerdog

    (@buskerdog)

    Yeah, I thought about that. I’m trying to keep my customization to my themes as much as possible to prevent upgrades from becoming a mess.

    Thread Starter buskerdog

    (@buskerdog)

    Any ideas? This is the sort of mess I feel like I can live with and then I’ll upgrade to a new WP version and it won’t recognize my theme any more or something like that.

    Thread Starter buskerdog

    (@buskerdog)

    If anyone finds this thread later trying to do what I wanted to do here’s how it finally looks:

    <div class="entry">
    <?php $content = get_the_content();
          $content = strip_tags($content);
          echo substr($content, 0, 255);
    ?>…<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">click for more...</a>
    </div>

    The whole point of this was to free up my excerpt for something else.

    Thread Starter buskerdog

    (@buskerdog)

    heh should have refreshed. I had a feeling it was strip_tags but for some reason I was trying everything else first. Thanks!

    Thread Starter buskerdog

    (@buskerdog)

    I’m looking through post-template.php for a clue as to what I can do to $content to strip that stuff out but I’m not finding it. Thoughts?

    Thread Starter buskerdog

    (@buskerdog)

    Pretty crafty. Any idea how to get it to strip out <img src>s and <a href>s?

    i.e. do to it something similar to what the excerpt function does.

    Thread Starter buskerdog

    (@buskerdog)

    Actually I think I’m just going to use category descriptions instead. But I’d still be curious to know if this could be done.

    Thread Starter buskerdog

    (@buskerdog)

    Thanks but that doesn’t do it. That’s just the regular edit link. I’m talking about when using the “Category Page” plugin (aka page2cat)

    The plugin associates a page with a category and then sticks the content of the page in the category’s archive so you can use it as an introduction before the posts are listed. I’m probably looking for a hack for the plugin since I can’t get in touch with its creator.

    Thread Starter buskerdog

    (@buskerdog)

    Boom! I think that solved it. Yeah, I don’t know who was playing with it but there were a few other little changes that I probably wouldn’t have noticed otherwise. Thanks!

    Thread Starter buskerdog

    (@buskerdog)

    Well, it’s only supposed to show the last 10 posts but instead it’s looping the most recent post infinitely.

    This custom theme has been working. I don’t know what changed (I set up the site, I don’t maintain it)

    Here’s the home.php

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    
    <div id="content">
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    <?php if ( is_home() ) query_posts('posts_per_page=2'); else query_posts(); ?>
    <div class="post">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="contenttext">
    <?php the_content('Read more &raquo;'); ?>
    </div>
    
    <p class="postinfo"><strong>Posted:</strong> <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.<br />
    <?php the_tags('Tags: ', ', ', '<br />'); ?>
    <a href="<?php comments_link(); ?>"><strong>Comments:</strong> <?php comments_number('none','1','%'); ?></a>
    <?php edit_post_link('[e]',' | ',''); ?></p>
    </div>
    
    <?php endwhile; ?>
    
    <div class="navigation">
    <p><span class="prevlink"><?php next_posts_link('&laquo; Previous entries') ?></span>
    <span class="nextlink"><?php previous_posts_link('Next entries &raquo;') ?></span></p>
    </div>
    
    <?php else : ?>
    <h2>Not found!</h2>
    <p>Could not find the requested page. Use the navigation menu to find your target, or use the search box below:</p>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    <?php endif; ?>
    
    </div>
    <?php get_footer(); ?>
Viewing 15 replies - 76 through 90 (of 178 total)