mauriciomesquita
Forum Replies Created
-
to display an iframe automatically use
<a id="fancybox-auto" class="fancybox-iframe {width:510,height:310}" href="url"></a>
Hello, thanks for the help! The plugin is fantastic, very smart.
This function is the “starting point” the text “Show Replies”. And I realy can replace “Show Replies” for a image!
But, in practice, when I click on the image to expand comments and display the responses appears the text “Hide Replies”. And clicking again appears the text “Show Replies” and not the image.
This text is in line 275:
$(this).text( $(this).text() == ‘Show Replies’ ? ‘Hide Replies’ : ‘Show Replies’);
However, replace this text for the image code displays the image code rather than the image itself.
sorry my english, I’m brazilian
Thanks again
MauricioFor those who want to put a static image, simply remove the line
$(this).text( $(this).text().innerHTML==
Thanks!
To limit to 40 characters and do not display words in half:
<li><a href="<?php the_permalink() ?>" rel="bookmark"> <?php $title_cortado = explode(" ", substr(get_the_title(), 0, 40)); if(count($title_cortado) > 1) array_pop($title_cortado); $title_cortado = implode(" ", $title_cortado)."..."; echo $title_cortado; ?> </a><!-- (<?php the_score(); ?>)--></li>
Thank you for your attention!
CongratulationsI believe that is related to post reviews as
I believe this error on my site to appear when there revisions and auto saveForum: Themes and Templates
In reply to: CSS moderate commentsup
Forum: Fixing WordPress
In reply to: How to moderate comments by author or categoryup
Now it’s all right! The plugin is very useful
CongratulationsI’m using WordPress 3.0.4 and Restrict Categories 1.6.1
Forum: Fixing WordPress
In reply to: How to moderate comments by author or categoryCan hide the authors’ comments. The script
adds the name of the author css class, but only when the
author makes a comment in your own post, the
comments by others not named after the author until
not always because the user must be logged in to
comment.I am not able to identify who created the
comment_class post to handle.If anyone has an idea how to get the author’s name
you can finish doing this function, using. css. But unfortunately our ideas exhausted.If anyone knows help…
thanksForum: Themes and Templates
In reply to: CSS moderate commentsInserting function.php on the theme that I use:
function esconde_no_autor_comentarios_admin(){ global $user_identity, $user_level; $nome = strtolower(str_replace(' ','-', $user_identity)); if (current_user_can('edit_themes')) { return false; } else { echo " <style type=\"text/css\"> #the-comment-list .comment-item{display:none;} #the-comment-list .comment-author-".$nome."{display:inherit;} </style>\n"; } } add_action('admin_head', 'esconde_no_autor_comentarios_admin');
Can hide the authors’ comments. The script
adds the name of the author css class, but only when the
author makes a comment in your own post, the
comments by others not named after the author until
not always because the user must be logged in to
comment.I am not able to identify who created the
comment_class post to handle.If anyone has an idea how to get the author’s name
you can finish doing this function, using. css. But unfortunately our ideas exhausted.If anyone knows help…
thanksForum: Fixing WordPress
In reply to: How to moderate comments by author or categoryon the theme function.php
function esconde_no_autor_comentarios_admin(){ global $user_identity, $user_level; $nome = strtolower(str_replace(' ','-', $user_identity)); if (current_user_can('edit_themes')) { return false; } else { echo " <style type=\"text/css\"> #the-comment-list .comment-item{display:none;} #the-comment-list .comment-author-".$nome."{display:inherit;} </style>\n"; } } add_action('admin_head', 'esconde_no_autor_comentarios_admin');
Logged in as administrator everything is OK, it displays all the comments. Now logged in as “author ” or “editor” does not display anything. No comment, nor those made in his posts, nor made by others.
The username of the author was “Vinicius Guerreiro, ” switched to “guerreiro ” Remained the same. Using the Ghrome, tested in Internet Explorer and also does not display.
really appreciate any help