heyrsmith
Forum Replies Created
-
In wp-includes > functions-post.php:
Starting at line 352 change from:if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
|| ($author_data->user_level > $post_author_data->user_level)
|| ($author_data->user_level >= 10) ) {
return true;
} else {
return false;
}to this:
if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
|| ($author_data->user_level >= $post_author_data->user_level)
|| ($author_data->user_level >= 10) ) {
return true;
} else {
return false;
}Notice the change from “>” to “>=” in line 353.
Forum: Fixing WordPress
In reply to: Internet Explorer — a disastermm:
your site looks great in IE 6.o. on a PC and in Firefox, but you are right: it is a wreck in IE 5.o on a mac. The two render pages VERY differently, BTW). I would not worry too much about IE users on the macintosh platform; this from Microsoft’s own website:IMPORTANT INFORMATION FOR MICROSOFT INTERNET EXPLORER FOR MAC USERS
In June 2003, the Microsoft Macintosh Business Unit announced that Internet Explorer for Mac would undergo no further development, and support would cease in 2005. In accordance with published support lifecycle policies, Microsoft will end support for Internet Explorer for Mac on December 31st, 2005, and will provide no further security or performance updates.
Additionally, as of January 31st, 2006, Internet Explorer for the Mac will no longer be available for download from Mactopia. It is recommended that Macintosh users migrate to more recent web browsing technologies such as Apple’s Safari.
I have found discussions and articles found at positioniseverything.net to be EXTREMELY helpful in working out the tricks to get css to look correctly on every browser/platform, but sometimes I give up on ie/mac myself. Now I am glad that I can with a clear conscious! Now if I could only forget about those 35 million aol users out there.
Finally, if you really must see what your site looks like in all browsers, google around for services that will take “screenshots” for you, there are many services that do this for a fee, but it seems that I came across one that does it for free…
Forum: Fixing WordPress
In reply to: Show “Logged in As:” in the side barHuge, Huge help Michael – thanks a million. In my searches I could not find anything close. Here is what I put together:
<!-- "write a new post" link if logged in -->
<?php global $user_login; get_currentuserinfo();
if ($user_login) :?>
<li><a href="/wp-admin/post.php">Write a New Post</a></li>
<?php endif; ?>
<!-- register,login/logout links -->
<?php wp_register(); ?>
<li><?php wp_loginout(); ?>
<?php global $user_login, $user_identity;
get_currentuserinfo();
if ($user_login); ?>
<?php echo $user_identity; ?>
</li>Works like a charm, and I even learned how to add a direct link to the “Write Page” er, page. Again a million thanks.
Forum: Fixing WordPress
In reply to: Search only perform on entries?Nofie:
Try search pages plugin from David B. Nagle. I have found that it works like a charm; It might be just what you need.Forum: Fixing WordPress
In reply to: Show Posts from a single category for today onlyOK – so I *think* it is because I am calling 2 loops in one page? I have been staring and staring at The Loop page in the codex but I just can not make sense of it.
The code works brilliantly in a page all by itself, and perfectly in the sidebar as long as there is nothing very exciting going on in the main page. So thanks for that Kafkaesqui. I feel as if I am making progress if only in that I have figured out what I am not smart enough to figure out on my own. Thanks in advance for any help anyone continues to offer; I have a feeling that I am on the verge of learning something VERY important with regard to WP…
Forum: Plugins
In reply to: What Features Would You Want In An Event Manager?1) The built-in ability to display a post for “today only.”
2) Event day and time separate and distinct from the post time.
3) If you can’t do that, then I assume you will be using future-dated posts, so the built-in ability to use categories to decide how that future-dated post shows up: in “events” it may only show up in a calendar, while in “news” it may show up right now.
3)Multi-day events, of course.
4) and while we are at it how about a way to see not just the day-of-the month view, but also an hour-of-the-day view as well?I can’t wait to start using it!
Forum: Fixing WordPress
In reply to: Show Posts from a single category for today onlyThanks Kafkaesqui.
I inserted the code in my sidebar and this is the error I get:WordPress database error: [Not unique table/alias: 'wp_post2cat']<br />
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND YEAR(post_date)=2005 AND MONTH(post_date)=12 AND DAYOFMONTH(post_date)=14 AND (category_nicename = 'event') AND (post_date_gmt <= '2005-12-14 06:42:59' OR id IN (-1,3,5,7,8,9,45,46,56,82,84,85,87,89,90,91,93,94,95,96,97,98,99,100,101,104) ) AND (post_status = "publish" OR post_author = 1 AND post_status != 'draft' AND post_status != 'static') AND (category_id = 7 OR category_id = 8) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 3Does it make sense to you?