Elgg -- Create a default widget - elgg

I need to create a widget as a default one for he profile page in Elgg Site .
I just tried with the docs and some default widget plugins, But unfortunately i need to make it by code, and cant use any plugin.
Can anyone help me in creating such a widget
Thanks

I know its late. But this is an easier thing.
For plugin based solutions you can try the default_widgets plugin you receive with the download package or the widget manager plugin from coldtrick (Available in the elgg community).
If you can't use a plugin for this functionality,
Create a plugin hook for user registration event
use the elgg_create_widget() to add the widget
Override the widget view so that you can remove the widget controls.
But you still need a plugin to develop this.

Related

Is there a way to pull custom fields created in Pods plugin into a Elementor posts widget

I'm pretty new to WordPress but have been experimenting with the Pods plugin for custom post types and fields and trying to implement them using the Elementor page builder. Creating the post type and fields is all straight forward but I'd like to be able to now implement these custom fields into my pages. Specifically, I'd like to be able to integrate them with the Posts widget in Elementor.
By using the Ele Custom Theme plugin I have been able to create a Loop template and setup the articles I'd like to loop through and this method works fine using the standard Posts widget in Elementor. However, the standard Posts widget does not have the ability to add a filter to your items. This is what I need.
There is a Ultimate Addons version of the Posts widget that incorporates this filter function but it doesn't seem to have a feature to loop through a loop template. In the standard Posts widget, you are able to select a 'Custom' skin which can then hook up with the loop template you've created. The Ultimate Add Ons version doesn't have this option.
I hope I'm explaining this correctly and that someone maybe able to offer some advice.
Is it possible to for the Ultimate Addons version of the Posts widget to pull through a custom template like the standard version does. I have added an image as a guide. The Ultimate addons version is on the left hand side.
Any advice on this would be much appreciated
you can use Livemesh Addons for Elementor,
https://wordpress.org/plugins/addons-for-elementor
with that you can create and select custom templates for post and custom post types.

how to show data with edit.php style in my plugin page wordpress?

i want show all row of table of my plugin in plugin page.
they are many and for show as standard i want use edit.php of wordpress style how do this.
Should I only use WordPress CSS classes?
exactly like this picture
You are looking for the WP_List_Table class, many plugins extend this class to create their own WP looking admin tables. I've done this myself on some projects and it's doable.
PLEASE NOTE, See the following WP notice:
This class's access is marked as private. That means it is not
intended for use by plugin and theme developers as it is subject to
change without warning in any future WordPress release. If you would
still like to make use of the class, you should make a copy to use and
distribute with your own project, or else use it at your own risk.
WP_List_Table info here.
Using WP_List_Table in your own plugin, info here.
Regards, Bjorn

How to create a public custom WordPress widget

I want to create a widget for WordPress that anybody can use (for free) which contains some entertaining content (like a gadget for iGoogle in earlier times).
What I did not find out:
Can a (custom) widget be public/listed, so everybody using WordPress can see and use it?
Or do I need to create a plugin in order for other WordPress users to see and use it?
Since I want to let the users decide, where to put this additional content, how can I achieve this? (i.e. integrate this widget behaviour into a WordPress plugin?)
The basic idea is that we have some interesting content, we want to spread on WordPress for free.
It's up to you wether you want to create you widget through you theme (eg: via functions.php) or via a plugin. If you would like everyone to use it independently from a theme, then the best idea would be to do it through a plugin.
Here is a simple tutorial that explains the pieces of code you need to include either in your theme or in a new plugin to create a Widget accessible via the WordPress's widgets panel: http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget

How does one add widgets to a WordPress theme manually?

I am using the MakeOver theme which doesn't have any support for widgets. I have installed the Ultimate Facebook plugin which provides a login using facebook button/widget. I want to add this widget to my homepage using MakeOver. What files should I edit? How do I add the widget manually?
Better than trying to add the widget manually, I'll upgrade the theme to support widgets. See this http://www.wpreads.com/2013/03/creating-custom-widget-area-in-wordpress-theme.html and this http://codex.wordpress.org/Widgetizing_Themes
Please refer the below link,
https://wordpress.stackexchange.com/questions/39195/how-to-add-the-widgets-manually-to-the-sidebar
There you can see how to add widgets manually.

Delete Site from Archiv Widget

I created a Page in WP and i found it in the Archiv-Widget.
Is there a way to create a Page and don't show it in the Archiv?
I use WP 3.0.5
There isn't a way of excluding items using the built-in archive widget, unfortunately.

Resources