Title: spencyb's Replies | WordPress.org

---

# spencyb

  [  ](https://wordpress.org/support/users/spencyb/)

 *   [Profile](https://wordpress.org/support/users/spencyb/)
 *   [Topics Started](https://wordpress.org/support/users/spencyb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/spencyb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/spencyb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/spencyb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/spencyb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/spencyb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help! Why Is Firefox 2.0.0.3 on “OS X” Not Rendering CSS My Site?](https://wordpress.org/support/topic/help-why-is-firefox-2003-on-os-x-not-rendering-css-my-site/)
 *  Thread Starter [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/help-why-is-firefox-2003-on-os-x-not-rendering-css-my-site/#post-541841)
 * Yeah, IE doesn’t like respecting that rule (and, apparently, there’s no solution–
   at least with the way my CSS is structured) . I reinserterd the hack that turns
   off that feature for IE users. Oddly enough, I think that the offsite image also
   played a role in randomly disappearing bottom borders between posts.
 * I also have a whitespace in lists issue in the sidebar. After I get these issues
   sorted, I plan to relase the theme for public consumption.
 * Thanks for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Need Help With PHP to Customize Password-Protected Post Notification](https://wordpress.org/support/topic/need-help-with-php-to-customize-password-protected-post-notification/)
 *  Thread Starter [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/need-help-with-php-to-customize-password-protected-post-notification/#post-532153)
 * OK, so to answer that final question (I’m kind of talking to myself here, no?)
   I had to hack my wp/includes/formatting.php:
 * in:
 * function wpautop($pee, $br = 1)
    I removed “form” and “input” from:
 * $allblocks = ‘(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|
   dt|ul|ol|li|pre|select|map|area|blockquote|address|math|style|script|object|param
   |p|h[1-6])’;
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help! Why Is Firefox 2.0.0.3 on “OS X” Not Rendering CSS My Site?](https://wordpress.org/support/topic/help-why-is-firefox-2003-on-os-x-not-rendering-css-my-site/)
 *  Thread Starter [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/help-why-is-firefox-2003-on-os-x-not-rendering-css-my-site/#post-541814)
 * Thanks for the help. I had hastily rearranged the DOCTYPE declaration, the php
   to list stylesheets and the php to list my js. I got everything working by switching
   where the css and js links were (as recommended by nakedape) and it started working
   again.
 * Everything seems to be rendering the same in IE6, Safari and Firefox on both 
   Windows and Mac. I’m scared to run my site through IE7 to see all the errors.
   I hate hacks.
 * Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Need Help With PHP to Customize Password-Protected Post Notification](https://wordpress.org/support/topic/need-help-with-php-to-customize-password-protected-post-notification/)
 *  Thread Starter [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/need-help-with-php-to-customize-password-protected-post-notification/#post-532145)
 * Well, I finally figured it out. Here’s the code I used:
 *     ```
       function get_the_password_form() {
       global $id;
       if ( get_post_meta($id, 'livelink', true) ) {
               the_excerpt();
       	$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post" class="alert2">
       	<p>This article was published by <a href="' . get_option('blogurl') . '/clips/' . topcat_get_the_main_category_slug() . '" class="bluelink">'  . topcat_get_the_main_category() . '</a>, which holds the copyright. You can <a href="' . get_post_meta($id,'livelink',true) . '" class="bluelink">view it live</a> on the '  . topcat_get_the_main_category() . ' Web site. A password-protected archived copy is available on this site.</p>
       	<label>Password: <input name="post_password" type="password" size="15" /></label> <input type="submit" name="Submit" value="' . __("Submit") . '" />
               </form>
       	';
       	return $output;
       }
       else {
              the_excerpt();
       	$output = '<div class="alert2"><form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
       	<p><a href="' . get_option('blogurl') . '/clips/' . topcat_get_the_main_category_slug() . '" class="bluelink">'  . topcat_get_the_main_category() . '</a> holds the copyright to this article. Unfortunatly, an online version of it is unavailable on the ' . topcat_get_the_main_category() . ' Web site . You can view an archived copy here if you have a password.</p>
       	<p><label><b>Password:</b> <input class="postpassword" name="post_password" type="password" size="15" /></label> <input type="submit" name="Submit" class"passwordsubmit" value="' . __("Submit") . '" />
                </form></p></div>';
       	return $output;
       }
       }
       ```
   
 * That outputs two different messages. One if the custom field “livelink” is filled
   in, and another if it’s not. Again, I am using the Topcat plugin to display a
   bit of text.
 * I have one final question — not that my first one got answered. Does anyone know
   why, despite the way the code appears in $output in get_password_form(), WordPress
   insets line breaks (br /) in between the label, input and sumbit button? I want
   my password form to look like:
 * Password: [__________________] [Submit]
 * instead of:
 * Password:
    [__________________] [Submit]
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem With Order of Nested Categories in Permalinks](https://wordpress.org/support/topic/problem-with-order-of-nested-categories-in-permalinks/)
 *  Thread Starter [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/problem-with-order-of-nested-categories-in-permalinks/#post-529777)
 * The “clips” part of the URL does NOT come fromt he category base, by the way.
   You have to leave that blank or rolling archives will break.
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Problem with “current_page_item” not displaying when using wp_list_pages()](https://wordpress.org/support/topic/problem-with-current_page_item-not-displaying-when-using-wp_list_pages/)
 *  [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/problem-with-current_page_item-not-displaying-when-using-wp_list_pages/#post-528395)
 * Here’s how I solved this problem. I can’t tell you why it works, but I can tell
   you that I figured this out by messing around for a couple hours. Here’s what
   I wrote for my nav:
 *     ```
       <ul id="nav">
            <?php if (!is_single() && !is_page()): ?>
                 <li><a href="/">Home</a></li>
       	  <li class="page_item current_page_item"><a href="/clips">Clips</a></li>
                 <?php wp_list_pages('exclude=141,158&sort_column=menu_order&title_li='); ?>
            <?php else : ?>
                 <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
                 <li class="page_item rss"><a href="<?php bloginfo('atom'); ?>">RSS</a></li>
            <?php endif; ?>
       </ul>
       ```
   
 * I have a static home page and a posts page defined in WordPress and this code
   makes everything highlight properly.
 * In “exclude=141,158” 141 and 158 are my the page IDs of my home page and index
   pages respectively (be sure to write the lower number first). In “a href=”/clips”
   >Clips” clips and Clips are the page slug and page name of my index page.
 * You can check it out in action [on my sandbox page](http://schadenfreutastic.com/)(
   which is liable to go down and/or change.)
 *   Forum: [Your WordPress](https://wordpress.org/support/forum/your-wordpress/)
   
   In reply to: [College newspaper site powered by WP](https://wordpress.org/support/topic/college-newspaper-site-powered-by-wp/)
 *  [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/college-newspaper-site-powered-by-wp/#post-531735)
 * Bryan,
 * That looks fantastic. You should consider putting a package together and offering
   it to ofter schools looking for alternatives to the CollegePublisher network.
 * For what it’s worth, I’d reccomend taking the text decoration off of anchor links
   and maybe using a font that looks a bit more newsy — bold and sans serifed — 
   for headlines (talk to your resident Quark addicts, they’ll know what I’m talking
   about).
 * I wish I had a guy like you around when we redesigned our site in college…
 * Spencer
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [In 2.1, I can’t create or edit published Pages, or delete Posts or Pages](https://wordpress.org/support/topic/in-21-i-cant-create-or-edit-published-pages-or-delete-posts-or-pages/)
 *  [spencyb](https://wordpress.org/support/users/spencyb/)
 * (@spencyb)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/in-21-i-cant-create-or-edit-published-pages-or-delete-posts-or-pages/#post-520015)
 * I had to manually delete my .htaccess file and then click update permalink structure.
   That seemed to do the trick for me.

Viewing 8 replies - 1 through 8 (of 8 total)