I’m working on connecting to a self-hosted Vanilla Forums install through this plugin. The “Recent Activity” widget works fine, and embedding the forum on a WordPress page through the jsconnect VF plugin also works.
I have one problem with the plugin, though:
Because the widgets aren’t registered with the standard WP_Widget class, I can’t figure out how to call them directly to embed them in a theme. ie including
<?php the_widget('vf_widget_discussions'); ?>in a template file.
Since the functions which query the forum for recent discussions and mark up the output are all encapsulated in a function, I can’t call them from theme files. Are there any publicly accessible functions in this plugin? Any chance of reworking at least the widget functionality of the plugin so that it can be accessed by other developers?
- The topic ‘Can't call Vanilla Forums widgets directly’ is closed to new replies.