Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Okay, I’ve been having this problem for a week now. It’s kinda getting tiring. I’m about to just uninstall the plug-in. I liked it when it was working, but now…

    Any plans to fix this?

    Forum: Fixing WordPress
    In reply to: RSS editing
    Thread Starter guesst

    (@guesst)

    I wish there was a plug in. As for a plug in I wish there was one. I would write my own, but I’m knee deep in other projects right now.

    Forum: Fixing WordPress
    In reply to: Adding a favicon?
    Thread Starter guesst

    (@guesst)

    Dog gonnit! Why did they make them so similar?

    One little bit about next_post_link that they don’t make obvious is the default value for the link is ‘%title’. Would be good if their examples used that instead of “Next in category” the way they do.

    Thanks!

    Oh, I see. You’ve got that stickied post or whatever at the top, and the podcast for it is below the one that it’s in.

    Okay, here’s my thoughts. Do you have a “home.php”? If no make one by coping your index.php. Take the contents of that stickly post and put it directly into your home.php making sure to enclose it in a <div></div> with a unique id and delete that sticky post.

    Forum: Fixing WordPress
    In reply to: RSS editing
    Thread Starter guesst

    (@guesst)

    Yes, I can, but all it has is what I quoted above. Generally speaking the words “deprecated” and “backwards compatibility” mean “it’s not done like THIS anymore.” So how is it done? How do i fix it?

    Basically I’d like to add images and dynamicly created links to my feeds, like I do for my programs.

    I don’t understand. it looks okay to me. that being the case, I’ll bet it looks okay to your audience too.

    I had no idea we could do this! Still, I’ve got a page peel for this sort of thing.

    Holy smokes, didn’t even know we could do that! Awesome.

    Forum: Fixing WordPress
    In reply to: Adding a favicon?

    Sometimes you don’t even need to do that. Just put it into your directory and most modern browsers will still find it.

    but to be complete, yeah, add that code between the <head></head> tags in your header.php

    You mean you want your comments to appear under each post on the page? Are you sure you want to do that? It could get long and messy.

    Check this link out.

    If you have FTP access you can do as samboll suggested. If not you’ll need to host your files on a free hosting service and link to them there. Personally I use blogger for it’s free hosting and link to them occasionally. The risk of using a third party hosting is you never know when they’ll decide it’s time to purge their database and you’ll lose your files.

    Forum: Plugins
    In reply to: Category from template
    Thread Starter guesst

    (@guesst)

    Sometimes I think I only ask so that I’ll find my own solutions.

    <!-- Program posting template -->
    <?php $proggy = strtolower(the_title('','',FALSE)); $format = "c";
        $posttags = get_the_tags();
          if ($posttags) {
            foreach($posttags as $tags) {
              $tag = strtolower($tags->name);
              if(strstr("$tag", "cpp")  !== FALSE) $format = "cpp";
            }
          }
    ?>
    <p align="center"><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.exe"><img src="/images/buttonexe.gif" alt="Download this program as a pre-compiled EXE for windows." /></a><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.pdf"> <img src="/images/buttonpdf.gif" alt="Download the code in a formated PDF for print." /> </a><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.<?php _e($format); ?>"><img src="/images/button<?php _e($format); ?>.gif" alt="Download the source code." /></a></p>
    <p align="center"><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.pdf"><img src="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>thumb.gif" border="0" alt="<?php _e($proggy); ?>.C" /></a></p>
    
                      <?php }
                    } ?>
    
              <?php the_content() ?>

    Forum: Plugins
    In reply to: Category from template
    Thread Starter guesst

    (@guesst)

    Okay, I’ve hacked an ugly index.php that mostly does what I’m looking for, but there’s one little caviat: sometimes I need to have the download link be for a C file and sometimes for a CPP file.

    Is there a way I can search the tags and if I see a CPP tag to change a variable?

    Wanna see what I’ve got so far?

    <?php get_header();?>
    
    <?php $postnum = 1; $showadsense1 = 1;?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php the_date('','<h2>','</h2>'); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    	 <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
             <?php foreach((get_the_category()) as $cat) {
               $cats =  $cat->cat_name . ' ';   if(strstr("$cats", "Programs")  !== FALSE) {
                 if(function_exists('the_ratings')) {
                 /* Little PostRatings Mod */
                 /* Replaces all <div> tags with <span> tags to fix display problems on some themes */
                   ob_start();
                   the_ratings();
                   $remove_divs = ob_get_contents();
                   ob_end_clean();
                   echo str_replace('div', 'span', $remove_divs);
                 }
               }
             } ?>
    </h3>
    	<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
    
    	<div class="storycontent">
              <?php if (is_single()) { ?>
              <p align="center"><?php previous_post_link('&laquo; &laquo; %link', '%title', 'yes'); ?> | <?php next_post_link('%link &raquo; &raquo; ', '%title', 'yes'); } ?></p>
    
                    <?php foreach((get_the_category()) as $cat) {
                      $cats =  $cat->cat_name . ' ';   if(strstr("$cats", "Programs")  !== FALSE) { ?>
    
    <!-- Program posting template -->
    <?php $proggy = strtolower(the_title('','',FALSE)); ?>
    <p align="center"><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.exe"><img src="/images/buttonexe.gif" alt="Download this program as a pre-compiled EXE for windows." /></a><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.pdf"> <img src="/images/buttonpdf.gif" alt="Download the code in a formated PDF for print." /> </a><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.c"><img src="/images/buttonc.gif" alt="Download the source code." /></a></p>
    <p align="center"><a href="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>.pdf"><img src="/pages/<?php _e($proggy); ?>/<?php _e($proggy); ?>thumb.gif" border="0" alt="<?php _e($proggy); ?>.C" /></a></p>
    
                      <?php }
                    } ?>
    
              <?php the_content() ?>
    
              <?php if (is_single()) { ?>
              <p align="center"><?php previous_post_link('&laquo; &laquo; %link', '%title', 'yes'); ?> | <?php next_post_link('%link &raquo; &raquo; ', '%title', 'yes'); } ?></p>
    
    	</div>
    
    	<div class="feedback">
    		<?php wp_link_pages(); ?>
    		<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    	</div>
    
    </div>
    
    <?php comments_template(); // Get wp-comments.php template ?>
    
    <?php if ($postnum == $showadsense1) { ?>
    <p align="center">
    <script type="text/javascript"><!--
    google_ad_client = "pub-7691058508257211";
    /* 468x60, created 4/29/08 */
    google_ad_slot = "3195266714";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </p>
    <?php } ?>
    <?php $postnum++; ?>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php posts_nav_link(' — ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
    
    <?php get_footer(); ?>

    I have found this little code block that maybe will do what you want. I found it in relation to the ratings plug in:

    /* Little PostRatings Mod */
      /* Replaces all <div> tags with <span> tags to fix display problems on some themes */
                   ob_start();
                   the_ratings();
                   $remove_divs = ob_get_contents();
                   ob_end_clean();
                   echo str_replace('div', 'span', $remove_divs);

Viewing 15 replies - 1 through 15 (of 20 total)