BOMBOLOM.COM

If you found the info on this site usefull,
please support us by consulting the ads on the left.

(wordpress) Plugin: Hide or Show Comments Version 2.0

Posted by José Lopes.

This post announces the new Plugin version 2.0.

The instruction on the post Plugin: Hide or Show Comments are still valid.

This new version comes from the positive comments made by Jon and Mark.

The new features are:

To see this Plugin in action you can see the paleografia.org web site, at the bottom of the post. Note that this site is in Portuguese but you can see how the Plugin works with the 'Clique aqui para ver os comentários (0) ou adiccionar um novo comentário' sentence at the bottom.

Download

The version 2.0 is the only available version. You can download one of the files that serves you better:

You may also find this Plugin in the Wordpress repository at Hide or Show Comments

Suggestion

In order to have a coherent layout I would suggest to not include the total of comments on the single.php file. The usual associated link will not work when used together with the Plugin, but its function is covered by the Plugin.

2007.10.23 | There's more... | Comments 16 | Tags ,
Comment by Beatriz on Sun Apr 26 03:43:21 2009
Hola José :)

First of all, thank you very much for providing this plugin, it's exactly what I was looking for! Now my post pages look neat and tidy -I run a comic strip site, so all the focus stays on the strips. Cool!

I only have one issue; when clicking to comment from the index page - http://oseano.net - it leads you to the single page, right? But the reader still has to click the show comments link. That's two clicks for commenting from the homepage! I haven't lost comments because of this, but I think it would be great if the comments could be accesed directly from the index with one single click...

I tried putting the  code on the index template, but it didn't work -it tries to load http://oseano.net/# with no success. Is there a workaround to this? I'd really appreciate it!

Best regards,
Betty.
Comment by Valdemar on Mon May 11 13:15:29 2009
Olá José.
Simplesmente agradecer o plug-in que funciona perfeitamente, e foi-me muito útil.
Felicidades!
-Valdemar
Comment by manuel on Tue May 12 08:53:41 2009
Prova
Comment by Valdemar on Thu May 14 20:05:29 2009
Olá outra vez. Talvez me possa ajudar numa situação.
Activei o sistema para Aprovação de comentários e, obviamente, o aviso de que o comentario necessita aprovação não se vê, porque no reload os comentarios já estão fechados outra vez.
Haverá alguma forma de mostrar esta mensagem, após o envio, e que apareça por cima ou por baixo dos comentarios?
Tenteia algumas formas de passar uma variavel entre ficheiros, mas sem exito.
Se tem alguma ideia...
Obrigado.
Comment by Greig on Wed Jun 24 23:43:40 2009
I want all of my comment to show up scrolling to the bottom of my post, the opposite of what most people seem to be using this for.

How do I get all of my comments to show up?

The default seems to be for readers to have to click a link to see the comments. I want the comments to just show up automatically at the bottom of the page.

Thanks so much
Greig
Comment by David on Tue Aug 4 18:53:02 2009
I am looking to do the same as Greig above here.  I want all of my comments on just one post to show rather than hide.  Any suggestions?
Comment by José Lopes on Thu Sep 3 02:47:08 2009
To Greig and David

Hi, as you see this plugin is to hide the comments. It comes in handy if you want to give more importance to the site content.
What you are looking is the default behavior given by comments_template()
If you are looking to set an area for the comments with a fixed height and a vertical scrollbar, you may place the comments_template() inside a table or another html element that supports the scrollbar.
Let me know if its this what you are looking for. I may even create a plugin to do it.
Comment by José Lopes on Thu Sep 3 02:49:45 2009
Olá Valdemar

O que vem de assinalar é de facto um bug do plugin. Em breve irei fazer sair uma nova versão que deverá ter esse ponto resolvido.
Comment by POed on Sat Sep 26 01:25:48 2009
Does nothing. Bogus
Comment by Kurt Turrell on Wed Nov 11 23:09:05 2009
Jose,

I am looking for a plugin that hides all traces of the comment form on pages (not posts).  I want to have the option of creating pages without a comment form, and without a replacement sentence.  I need to create a page that is completely free of comments, forms, or anything to do with comments.  Is that possible?

Comments can appear on posts, just not pages.

KT
Comment by Alexander Muller on Thu Dec 31 19:17:24 2009
óla Jose:
I´m getting this at install time:
Error 500 - Internal server error
An internal server error has occured!
Please try again later.

I´m installing this over WP 2.9, could it be that it´s not compatible with WP 2.9?
Comment by Brooke on Wed May 5 21:41:22 2010
Thanks for the great plugin, José!

I just wanted to share a trick I figured out for getting the plugin to work on the blog's index in addition to a single page:

Inside the plugin's hideshowcomments.php, add

$withcomments = "1";

just after the load_plugin_texdomain (); function. It works for me!

- Brooke
Comment by Brooke on Thu May 6 03:15:13 2010
I've just found that adding this to the plugin will force your front page to display your latest posts instead of a specified static page. If that's what you want, you're all set.

Otherwise, here's what I did to fix it:

Instead of putting $withcomments = "1"; into the plugin, add it into the loop in your index.php as <?php $withcomments = "1"; ?>, after <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>.
Comment by Apokalypsus on Sat May 22 23:43:33 2010
Em primeiro lugar, agradeço o plugin, mas não sei como funciona pois já o instalei, foi activado e não aparece nada! Também não sei se esta versão funciona com o Wordpress.org 2.9.2, mas o facto é que agora reparei que o próprio Blogue não tem a janela para quem pretender fazer comentários... será que algo correu mal? Agradeço a ajuda possível.
Comment by Massa P on Tue Jun 22 02:04:48 2010
I'm using K2 theme with WordPress 3.0 (and K2 + WordPress 2.9.2 on another blog). I found that your plugin works quite well on Firefox 3.x+ (no problems encountered)... however on Internet Explorer 7 and 8, it doesn't work at all. By this, I mean:

Upon loading of a page, the show/hide comments appear, however, by default... ALL the comments still show up (instead of being hidden). Clicking the show/hide comments doesn't hide the comments. Also, in Firefox... the CSS styling on my comments shows up correctly... but on Internet Explorer... everything got messed - smaller text, etc.

Do you guys have any plans of updating this plugin? Would a small donation via PayPal be an incentive? Just wondering how much that would be... I couldn't afford much...
Comment by tomveo on Thu Sep 2 21:02:58 2010
I Replace in your single.php the expression <?php comments_template(); ?> by <?php hideshowComments('', true); ?>
and edit file hideshowcomments.php:
replace comments_template() by comments_template('', true)
working very good on Opera, FF, Google Chrome, but not work properly on IE:
it makes footer of the site distorted position
My site here: blog.tomveo.com

Deixe a sua mensagem:

Nome:


E-mail:


URL:


Comment:

Secret number

To send you comment you must insert the "secret number" on the box


Made with PyBlosxom | Add to Google