spencyb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help! Why Is Firefox 2.0.0.3 on “OS X” Not Rendering CSS My Site?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
In reply to: Need Help With PHP to Customize Password-Protected Post NotificationOK, 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
In reply to: Help! Why Is Firefox 2.0.0.3 on “OS X” Not Rendering CSS My Site?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
In reply to: Need Help With PHP to Customize Password-Protected Post NotificationWell, 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
In reply to: Problem With Order of Nested Categories in PermalinksThe “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.
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 (which is liable to go down and/or change.)
Forum: Your WordPress
In reply to: College newspaper site powered by WPBryan,
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
I had to manually delete my .htaccess file and then click update permalink structure. That seemed to do the trick for me.