This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

I need more than 5 replies
#1
Sad 

Hello, how can I enable more than 5 replies depth? My site has passionate discussions Sad
Reply
#2

Hi this is intentional so I wouldn't categorise it as a bug. But if you want to increase it above 5 then you'll need to edit two files.

1. /frontend/view/default/template/main/comments.tpl

In the above file you'll see this code:

Code:
@foreach comment.reply_id as comment
   @set reply_depth = 5
   @increase count
   @template main/comment
@endforeach

You need to add more foreach's. I've added one more as an example. So replace the above with this:

Code:
@foreach comment.reply_id as comment
   @set reply_depth = 5
   @increase count
   @template main/comment

   @foreach comment.reply_id as comment
       @set reply_depth = 6
       @increase count
       @template main/comment
   @endforeach
@endforeach

2. /frontend/view/default/template/main/comment.tpl

Search for this:

Code:
less than reply_max_depth

Change it to however many foreach's you have. For example:

Code:
less than 6

Have you completed the interview?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)