Помощник
Дата поста: | В теме: | За сообщение: | Поблагодарили: | ||
---|---|---|---|---|---|
15.10.2014, 13:37 |
Вопрос к веб-мастерам. Подскажите решение этого ТЗ |
Элементарно, при каждом новом "лайке" делать перерасчет зависимых объектов, заносить в доп. поле информацию и потом сортировать как нужно, или я чего не понимаю? |
|||
12.10.2014, 14:23 |
WP 4.0 - нету опции Статическая страница на главной? |
ankn, отключите все плагины, возможно они что-то чудят. |
|||
11.10.2014, 19:29 |
капча для вордпресса |
||||
10.10.2014, 23:04 |
Как разрешить в url точку |
Вам нужно найти такую строчку: |
|||
10.10.2014, 23:02 |
Баги на форуме |
По-моему уведомление об изменении репутации лагает: |
|||
10.10.2014, 22:50 |
Как разрешить в url точку |
||||
10.10.2014, 22:49 |
Как разрешить в url точку |
Как вариант попробовать вручную закомментить wp-includes/formatting.php:1136 (v4.x), т. к. все слаги проходят эту функцию и именно в этой строчке стоит замена точки на дефис. |
|||
10.10.2014, 22:40 |
Как разрешить в url точку |
Нужно смотреть, где фильтруется ввод этих данных, и там убрать замену точки на дефис. Как вариант, ручками загнать в базу данных нужный вам путь страницы. |
|||
6.10.2014, 19:25 |
[предлагаю] Качественные услуги WordPress программиста Решаем задачи любой сложности на высшем уровне! |
В связи с загруженностью, временно не принимаю заказы на натяжку шаблонов на WP. Возможно решение мелких(малозатратных по времени) нестандартных задач, связанных с функционалом WprdPress. PS Так же предоставляется услуга по верстке, над данной задачей работает человек из команды. Разумеется, за работу отвечаю я. |
|||
2.10.2014, 21:05 |
Автоматический обмен, ввод, вывод Webmoney<->YAD<->QIWI<->Приват24<->LiqPay |
Только что обменял рубли на 2500 Privat 24 UAH, деньги пришли в течении минуты, все четко! |
|||
14.9.2014, 22:53 |
Подскажите материал по HTML5 Азы обучения |
||||
11.9.2014, 19:47 |
Сверстаю любой макет на HTML не дорого |
||||
9.9.2014, 23:00 |
[WordPress] Как правильно вынести код из движка в файл шаблона |
photomakes, в файл шаблона function.php в конце вставляйте: Развернуть/Свернуть
Код function custom_comment_form( $args = array(), $post_id = null ) {
if ( null === $post_id ) $post_id = get_the_ID(); $commenter = wp_get_current_commenter(); $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; $args = wp_parse_args( $args ); if ( ! isset( $args['format'] ) ) $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml'; $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html5 = 'html5' === $args['format']; $fields = array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>', ); $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' ); /** * Filter the default comment form fields. * * @since 3.0.0 * * @param array $fields The default comment fields. */ $fields = apply_filters( 'comment_form_default_fields', $fields ); $defaults = array( 'fields' => $fields, 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', /** This filter is documented in wp-includes/link-template.php */ 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', /** This filter is documented in wp-includes/link-template.php */ 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 'id_form' => 'commentform', 'id_submit' => 'submit', 'name_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ), 'title_reply_to' => __( 'Leave a Reply to %s' ), 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => __( 'Post Comment' ), 'format' => 'xhtml', ); /** * Filter the comment form default arguments. * * Use 'comment_form_default_fields' to filter the comment fields. * * @since 3.0.0 * * @param array $defaults The default comment form arguments. */ $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); ?> <?php if ( comments_open( $post_id ) ) : ?> <?php /** * Fires before the comment form. * * @since 3.0.0 */ do_action( 'comment_form_before' ); ?> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3> <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?> <?php echo $args['must_log_in']; ?> <?php /** * Fires after the HTML-formatted 'must log in after' message in the comment form. * * @since 3.0.0 */ do_action( 'comment_form_must_log_in_after' ); ?> <?php else : ?> <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>> <?php /** * Fires at the top of the comment form, inside the <form> tag. * * @since 3.0.0 */ do_action( 'comment_form_top' ); ?> <?php if ( is_user_logged_in() ) : ?> <?php /** * Filter the 'logged in' message for the comment form for display. * * @since 3.0.0 * * @param string $args_logged_in The logged-in-as HTML-formatted message. * @param array $commenter An array containing the comment author's * username, email, and URL. * @param string $user_identity If the commenter is a registered user, * the display name, blank otherwise. */ echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?> <?php /** * Fires after the is_user_logged_in() check in the comment form. * * @since 3.0.0 * * @param array $commenter An array containing the comment author's * username, email, and URL. * @param string $user_identity If the commenter is a registered user, * the display name, blank otherwise. */ do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?> <?php else : ?> <?php echo $args['comment_notes_before']; ?> <?php /** * Fires before the comment fields in the comment form. * * @since 3.0.0 */ do_action( 'comment_form_before_fields' ); foreach ( (array) $args['fields'] as $name => $field ) { /** * Filter a comment form field for display. * * The dynamic portion of the filter hook, $name, refers to the name * of the comment form field. Such as 'author', 'email', or 'url'. * * @since 3.0.0 * * @param string $field The HTML-formatted output of the comment form field. */ echo apply_filters( "comment_form_field_{$name}", $field ) . "\n"; } /** * Fires after the comment fields in the comment form. * * @since 3.0.0 */ do_action( 'comment_form_after_fields' ); ?> <?php endif; ?> <?php /** * Filter the content of the comment textarea field for display. * * @since 3.0.0 * * @param string $args_comment_field The content of the comment textarea field. */ echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> <?php echo $args['comment_notes_after']; ?> <p class="form-submit"> <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> <?php comment_id_fields( $post_id ); ?> </p> <?php /** * Fires at the bottom of the comment form, inside the closing </form> tag. * * @since 1.5.0 * * @param int $post_id The post ID. */ do_action( 'comment_form', $post_id ); ?> </form> <?php endif; ?> </div><!-- #respond --> <?php /** * Fires after the comment form. * * @since 3.0.0 */ do_action( 'comment_form_after' ); else : /** * Fires after the comment form if comments are closed. * * @since 3.0.0 */ do_action( 'comment_form_comments_closed' ); endif; } Измените H3 на то, что вам нужно. В файле comments.php функцию comment_form() поменяйте на custom_comment_form(). А в чем заблуждение? Я бы советовал один раз настроить двидок и отключить обновление
|
|||
9.9.2014, 21:12 |
[WordPress] Как правильно вынести код из движка в файл шаблона |
sanika, зачем вы человека вводите в заблуждение?! Старайтесь вообще не править движок! Этот как минимум избавит вас от несколько дюжин проблем в будущем(в частности при обновлении). ТС, посмотрите функцию comment_form(), в аргументах есть массив, в котором это все свободно правится. UPD Этот тег не меняется там так просто, в таком случае просто скопируйте себе функцию в functions.php с новым названием, поправьте как вам нужно и используйте в шаблоне. |
|||
8.9.2014, 21:05 |
Дубли категорий |
Esperance80, не всегда использования плагина в WP плохо, в данном случае этот плагин практически ничего не изменит в скорости работы/нагрузке сайта. |
|||
1.9.2014, 18:56 |
Проблемы с картинками в Chrome |
Покрутитесь вокруг Код height: auto; |
|||
16.8.2014, 16:03 |
Как вебмастеру продать воздух? Внимание!!! Пятница! |
Ребят, стоит понимать юмор и не относится ко всему так критично. |
|||
10.8.2014, 18:46 |
Настройка рубрик и записей в WP некоторые вопросы... |
||||
9.8.2014, 1:19 |
Как я кинул клиентов на 38 000 руб и вышел сухим из воды studenta-blog.ru — блог студента |
С таким человеком стоит сотрудничать, креатив на уровне (: |
|||
8.8.2014, 15:37 |
Проблема с коментами ВП |
Код name="комментарий" заменить на Код name="comment"
|
|||
8.8.2014, 9:33 |
Проблема с коментами ВП |
Как вариант у поля ввода "name" стоит неверное, что не отправляет сам комментарий по адресу. Нужно смотреть код. |
|||
7.8.2014, 22:30 |
Настройка тайтла на ВП |
MULT, я специально протестил на своем сайт - работает. Ищите проблему на сайте: кеши, плагины, фильтры... |
|||
7.8.2014, 22:08 |
Настройка тайтла на ВП |
Код <title><?php wp_title( (is_front_page() ? ' ' : ' |'),true, 'right'); ?></title> |
|||
7.8.2014, 15:53 |
JavaScript, запуск таймера по клику |
Burelom, а как мы могли вам помочь, если вы даже не показали код, где эта функция? |
|||
7.8.2014, 9:21 |
Плагин для WP(скачивание файлов) нужен плагин подскажите |
Возможно такое подойдет http://wp-kama.ru/id_430/plagin-dlya-podsc...ck-counter.html
|
|||
Текстовая версия | Сейчас: 29.3.2024, 15:05 |