Recent Topics

1 Apr 13, 2013 16:40    

Hi all,

my version is 3.3.1 and I apologize for my "Bavarian" Englisch...

Is it possible to hide the comment form after an article and to display it only after clicking the link "leave a comment"? My website is an internet newspaper with many articles and if the comment form is shown after every article the side will become very, very long. Here an example: http://www.glockenbach-kurier.de/index.php/viertel/

Many thanks for your help - I hope my question is written in understandable Englisch

Yours
Karin

2 Apr 16, 2013 15:00

I think what you describe is the default behavior of b2evolution. Look at how http://demo.b2evolution.net works.

If all comments display for all your posts at the same time, it means you have made a modification to the default behaviour of b2evolution.

Basically, turning off the display of comments on a specific page can generally be done with this PHP code:


<?php 
  $c = 0; 
?>

3 May 05, 2013 17:26

Many thanks for your answer, fplanque, but it seems, my question was not exact enough:

@fplanque wrote earlier:

If all comments display for all your posts at the same time, it means you have made a modification to the default behaviour of b2evolution.
[/codeblock]

I do not mean the displaying of the comments itselves but the comment form. The comments shall be displayed but not the comment form, only the textlink for leaving a comment. It is no need at all, to show both possibilities for leaving a comment: text link and the comment form, too.
I suppose this can be managed by changing or commenting out some rows in a php-file.

Many thanks for your ideas
Yours Karin

4 May 05, 2013 18:03

Looks like you want the [single.main.php] to act like the [posts.main.php] which only has the link

see topic http://forums.b2evolution.net/comment-form-shows-on-front second post, where you can see the different codeing for the form or just the link

Swap the code that's in post.main.php into single.main.php

5 May 05, 2013 20:48

Looking at http://www.glockenbach-kurier.de/index.php/viertel/ I do believe I did get the problem right actually ;)

The problem is that your comment forms display on the home page of the blog (disp=posts) when they should in fact only display at the bottom of the pages where an individual post appears (disp=single).

I would recommend that you do this:

1) try with a standard 3.x skin and see if it has the same problem

2) if it doesn't help, upgrade to the latest version. 3.3.1 is obsolete. We cannot fix your problem on such an old version.

6 May 05, 2013 23:49

Hi fplanque

Wouldn't the idea I have of altering the codeing, as i mentioned, work even on an old version, even though I agree in updating to the newest version, if that option appeals, should be considered first anyway. It's that where you say "We cannot fix your problem on such an old version." is that really the case. :)

7 May 06, 2013 02:44

I believe it's a bug in the custom skin.

However, were it to be a core bug, I'm not saying it's impossible to fix, I'm just saying "we" (core developers) cannot fix it because if we try to maintain every old version, we can never find time to develop a new feature. And at some point you have to upgrade anyway... even just for best security. (v 3.3.1 is NOT secure against the latest discovered threats)

8 Aug 29, 2013 16:23

Hi all helpers,

many thanks for your engagement. I have done some experiments by replacing the code for the link to the comment form into a textlink only. My trials are not successful yet but it does not matter. I will try again and maybe find a solution. I will not waste your time any more for fixing a problem with a very old version of b2evo.

Thanks again and greetings
Karin


Form is loading...