Removed support for simple:forums out of the control panel

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-08-22 23:31:26 -07:00
parent b738b2ed6f
commit 3c6927ae1b
3 changed files with 15 additions and 27 deletions

View File

@ -1,11 +1,10 @@
<?php <?php
// Remove the wptexturizer from changing the quotes and squotes. // Remove the wptexturizer from changing the quotes and squotes.
remove_filter('the_title', 'wptexturize'); // remove_filter('the_title', 'wptexturize');
remove_filter('the_content', 'wptexturize'); // remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize'); // remove_filter('the_excerpt', 'wptexturize');
remove_filter('comment_text', 'wptexturize'); // remove_filter('comment_text', 'wptexturize');
global $wpmu_version; global $wpmu_version;
if (!empty($wpmu_version)) { if (!empty($wpmu_version)) {

View File

@ -76,8 +76,8 @@
<?php } <?php }
} }
if ($disable_blog_frontpage == 'no') { if ($disable_blog_frontpage == 'no') {
if (have_posts()): if (have_posts()) {
global $blog_postcount;
$blog_query = 'showposts='.$blog_postcount.'&cat=-"'.exclude_comic_categories().'"&paged='.$paged; $blog_query = 'showposts='.$blog_postcount.'&cat=-"'.exclude_comic_categories().'"&paged='.$paged;
$posts = query_posts($blog_query); $posts = query_posts($blog_query);
@ -101,7 +101,7 @@ if ($disable_blog_frontpage == 'no') {
<?php } ?> <?php } ?>
<div class="clear"></div> <div class="clear"></div>
<?php endif; } ?> <?php } } ?>
<?php get_sidebar('underblog'); ?> <?php get_sidebar('underblog'); ?>
</div> </div>

View File

@ -13,8 +13,9 @@ Author URI: http://webcomicplanet.com/
function comicpress_show_control_panel() { function comicpress_show_control_panel() {
global $wpmu_version; ?> global $wpmu_version; ?>
<ul><li> <ul>
<?php if (!is_user_logged_in()) { ?> <?php if (!is_user_logged_in()) { ?>
<li>
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post"> <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
UserName:<br /> UserName:<br />
<input type="text" name="log" id="sname" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /><br /><br /> <input type="text" name="log" id="sname" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /><br /><br />
@ -37,21 +38,9 @@ global $wpmu_version; ?>
$uri = wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); ?> $uri = wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); ?>
<li><a href="<?php echo $uri; ?>">Logout</a></li> <li><a href="<?php echo $uri; ?>">Logout</a></li>
<?php wp_register(); ?> <?php wp_register(); ?>
<?php <li><a href="/wp-admin/profile.php">Profile</a></li>
if (function_exists('pm_inbox_new_count')) { <?php } ?>
$newmsgs = 0; </ul>
$newmsgs = pm_inbox_new_count($current_user->ID);
if (!$newmsgs) $newmsgs=0;
}
?>
<?php if (function_exists('pm_inbox_new_count')) { ?>
<li><a href="/forum?pmaction=viewinpm&pms=1">Inbox (<?php echo $newmsgs; ?>)</a></li>
<li><a href="/forum?profile=user">Profile</a></li>
<?php } else { ?>
<li><a href="/wp-admin/profile.php">Profile</a></li>
<?php }
} ?>
</li></ul>
<?php <?php
} }