Gringo

Ссылки в комментах

Как сделать, чтобы ссылки в комментах открывались в новом окне, то есть, чтобы автоматом встраивался target="_blank", как например rel="nofollow"???

Не отображается ссылка/кнопка на pege2

При клике на тег/метку открывается архив по данному тегу. Так вот, почему то на странице нет кнопки/ссылки на пейдж2. Пробовал в ручную набить в адресной строке …/page/2/, то страница открывается, то есть физически она существует. С категориями все в порядке, проблема происходит только с тегами.

Вопрос: почему и как сделать, чтобы ссылка/кнопка на пейдж2 появилась?

Вывод постов на главной и в архиве

Люди добрые, помгоите ламеру советом…

ЗАДАЧА: Шаблон (заточенный под видео) выводит за раз только один пост – на главной и даже в архиве. Как сделать так, чтобы посты выводились как обычно, по многу?

Содержание index.php:

<?php get_header(); ?>
    <?php
        if (get_option('woo_home'))
    include (TEMPLATEPATH . '/layout-home.php');
       else            
    include (TEMPLATEPATH . '/layout-single.php');            
    ?>
<?php get_footer(); ?>

А вот содержание layout-home.php, к которому он отсылает:

<!-- Content Starts -->
<div id="content" class="wrap">
<div class="col-left home">
<?php if (is_paged()) $is_paged = true; ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("paged=$paged"); ?>
<?php if (have_posts()) : $count = 0; $boxcount = 0;?>
<?php while (have_posts()) : the_post(); $count++; ?>
<?php if ($count == 1 && get_option('woo_home_featured') && !$is_paged) : ?>
<?php woo_get_custom('embed'); ?>
<!-- Post Starts -->
<div class="post wrap">
<?php echo get_avatar( get_the_author_id(), '37' ); ?>
<div class="fl">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-details"><?php the_time('d M Y'); ?> <?php the_author_posts_link(); ?> <?php the_category(', ') ?></p>
</div>
<div class="comment-cloud fr">
<a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
</div>                   
<?php if(function_exists('the_ratings')) { echo '<div class="fr ratings">'; the_ratings(); echo '</div>'; } ?>
<div class="fix"></div>
<?php if (get_option('woo_home_content')) the_content(); ?>
</div>
<!-- Post Ends -->
<?php if (!get_option('woo_ad_content_disable')) { ?>           
<?php include (TEMPLATEPATH . "/ads/content_ad.php"); $ad_shown = true; ?>
<?php }    ?>
<!-- main-content ends -->
<!-- main ends -->
<?php continue; endif; ?>
<div class="video-box <?php $boxcount++; if ($boxcount == 3) { echo 'last'; } ?> ">
<div class="inside">
<?php woo_get_image('image','','190','142'); ?>     
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
</div>                   
<div class="box-bot">   
<?php if(function_exists('the_ratings')) { echo '<div class="fl ratings">'; the_ratings(); echo '</div>'; } ?>
<div class="comment-cloud fr">
<a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
</div>                   
</div>
</div>
<?php if ($boxcount == 3) { $boxcount = 0; echo '<div class="fix"></div>'; } ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?> 
<div class="more_entries wrap">
<?php if (function_exists('wp_pagenavi')) { ?><?php wp_pagenavi(); ?><?php } ?>
</div>
</div>
<!-- .col-left ends -->
<div class="col-right">
<?php get_sidebar(); ?>
</div>
</div>
<!-- Content Ends -->

И layout-single.php:

<!-- Content Starts -->
<div id="content" class="wrap">
<div id="main" class="col-left">
<?php query_posts("&showposts=1"); ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $postcount++;?>
<div id="main-content">
<?php woo_get_custom('embed'); ?>
<!-- Post Starts -->
<div class="post wrap">
<?php echo get_avatar( get_the_author_id(), '37' ); ?>
<div class="fl">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-details"> <?php the_time('d M Y'); ?> <?php the_author_posts_link(); ?> <?php the_category(', ') ?></p>
</div>
<?php if(function_exists('the_ratings')) { echo '<div class="fr ratings">'; the_ratings(); echo '</div>'; } ?>
<div class="fix"></div>
<?php the_content(); ?>
<?php the_tags('<p class="tags">', ', ', '</p>'); ?>
<!-- Content Ad Starts -->
<?php if (!get_option('woo_ad_content_disable') && !$is_paged && !$ad_shown) { include (TEMPLATEPATH . "/ads/content_ad.php"); $ad_shown = true; } ?>
<!-- Content Ad Ends -->
</div>
<!-- Post Ends -->
</div>
<!-- main-content ends -->
<!-- show embed code -->
<?php include(TEMPLATEPATH . "/includes/embed.php"); ?>
<div id="comments">
<?php $withcomments = 1; comments_template(); ?>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<!-- main ends -->
<div class="col-right">
<?php get_sidebar(); ?>
</div>
</div>
<!-- Content Ends -->

все виснет!!!

У меня 2 блога, и с обоими все было ок. Вдруг ни с того ни с сего (ничего не далал совсем) оба висят, и админки и сами блоги. При попытке зайти на сам блог, выдает такое сообщение:

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Fatal error: Maximum execution time of 30 seconds exceeded in сайт/www/wp-includes/streams.php on line 77

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

Другой блог тоже самое:

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/blog/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/blog/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Fatal error: Maximum execution time of 30 seconds exceeded in сайт/www/blog/wp-includes/streams.php on line 77

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

В админках тоже самое. Первый блог:

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Fatal error: Maximum execution time of 30 seconds exceeded in сайт/www/wp-includes/streams.php on line 77

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

И админка другого блога:

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in сайт/www/wp-includes/gettext.php on line 91

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

PHP SCRIPT ERROR!
Fatal error: Maximum execution time of 30 seconds exceeded in сайт/www/wp-includes/streams.php on line 77

If you beleive that this error is due to the server configuration problems please contact your local web-hosting support team.

Если можно, обясните популярно, ламеру. Спасибо!

…ссылки в комментах

как сделать, чтобы ник-ссылка комментатора и другие ссылки в комментах открывалась в новом окне?

не отображается окно для комментариев

В страницах не отображается окно для комментариев (именно в страницах, в постах все ок), хотя галочка "разрешить комментарии" стоит. Пробовал поменять тему, окно есть, поменял обратно – нету. Как можно сделать, чтобы появилось окошко? (вариант другая тема не рассматривается)

Заранее спасибо!

А, еще одно, где аватар-то свой вставляется, чето не найду?

Java-скрипт по скрытию майла в вордпресс

Пробовал в блоге использовать самый обычный скрипт, шифрующий мыло от спам-роботов, собирателей адресов, но вся страница "скривилась". Правая колонка опустела а ссылки оттуда уехали в самый низ.

Код скрипта, в админке в режиме хтмл, выглядит как надо (вот так):

script language=’JavaScript’>
<!–
var name = "info";
var domain = "mysite.ru";
document.write(‘<a href="mailto:’ + name + ‘@’ + domain + ‘?subject=Отправьте письмо">послать e-mail’);
document.write("</a>");
// –>[/color]

А в исходнике страницы вот такая хрень получается:

<script language=’JavaScript’><br />
<!–<br />
var name = "info";<br />
var domain = "eddycoach.ru";<br />
document.write(‘<a href="mailto:’ + name + ‘@’ + domain + ‘?subject=Отправьте письмо">послать e-mail’);<br />
document.write(”</a>“);<br />
// –>

Что делать?

Может в wp такие скрипты в принципе не работают?

Если не работают, то может есть какой свой способ, через плагин или еще как?

Наткнулся на статью: http://www.seoblog.com.ua/2007/02/18/pr … spambots/, но ни фига не понял.

Есть кто грамотный, подскажите, плз.

Anonymous
Отправить
Ответ на: