- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,417
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
I often want to display sidebar widgets only when there are enough posts on the page so that the widgets don't extend way below the list of posts.
It's a rough but effective way of displaying more widgets when there are more posts.
Is it possible to add a variable available to thread_view which is the number of posts on the page?
Like $xf.vars.posts so I can have the conditional $xf.vars.posts > 10 for example?
It's a rough but effective way of displaying more widgets when there are more posts.
Is it possible to add a variable available to thread_view which is the number of posts on the page?
Like $xf.vars.posts so I can have the conditional $xf.vars.posts > 10 for example?