Is it currently possible disable widgets?
-
Although the widgets are quite helpful, is it possible to disable the widgets like any normal plugin?
I don't want to disable the widgets, thats my last option, but I was trying to put this in thecategory.tpl
and it doesn't work anymore.
Any ideas?<div class="moderators">
<!-- BEGIN moderators -->
<a data-uid="{moderators.uid}" href="../../user/{moderators.userslug}"><img title="{moderators.username}" src="{moderators.picture}" class="thumb-xs img-circle" /></a>
<!-- END moderators -->
<!-- IF !moderators.length -->
<!-- ENDIF !moderators.length -->
</div> -
Ah yeah, that won't work because we removed that moderators data from the category API call. We also removed the recent replies and active users data. You could take the above code and put it in a widget though. Or if you really wanted to hardcode it into your template you could maybe do an ajax call for it?
-
@julian said:
Hey @trevor, what happens when you try to add that code in?
When I add it, it just gives me an empty variable block
{}
.@psychobunny said:
Ah yeah, that won't work because we removed that moderators data from the category API call. We also removed the recent replies and active users data. You could take the above code and put it in a widget though. Or if you really wanted to hardcode it into your template you could maybe do an ajax call for it?
See, although I would like to use the widgets, currently I am using the widgets JUST for that. I might have to hardcode it in which case how would I go about doing that? This would help tons. Then I could move the widgets back in the side instead of at the top where its at now just to call the moderators.
-
Update to latest (87baeebc3f43d4f498dfe08ee488f01eed41c147) and do
$.get('/api/categories/1/moderators')