Hello, how can I enable more than 5 replies depth? My site has passionate discussions
This is the community forum. For a developer response use the Client Area.
06-Apr-2019, 09:14 PM
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:
You need to add more foreach's. I've added one more as an example. So replace the above with this:
2. /frontend/view/default/template/main/comment.tpl
Search for this:
Change it to however many foreach's you have. For example:
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
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)