Hi everyone, I'm pleased to announce the first release of the Suggest plugin.
This pluggin add a widget and a keyword ({{suggest}}) where you can see suggested users and content based in your interests.
I hope it would be useful for all.
Hi everyone, I'm pleased to announce the first release of the Suggest plugin.
This pluggin add a widget and a keyword ({{suggest}}) where you can see suggested users and content based in your interests.
I hope it would be useful for all.
Posted by Diego Andrés Ramírez Aragón @ Plugins
You must be logged in to post a comment.
Site supported by Curverider Ltd - powered by the awesome Elgg
Comments
I installed, but system returned some errors when I tried to add a suggestion widget:
1. suggestion/config.php
line 26:
define('SUGGEST_FILTER',tru); # Should be:
define('SUGGEST_FILTER',true);
2. Some errors reported here:
A) Notice: Undefined variable: nofilter in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
B) Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
C) Warning: implode() [function.implode]: Bad arguments. in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
line 111:
$nofilter = implode(',', array_map(array ($db,'qstr'), $nofilter));
D) Notice: Undefined variable: types in /home/everton/Work/demi/elgg/mod/suggest/lib.php on line 66
line 66:
$types .= "<option value=\"$key\"";
I need some help, please.
Errors after I created the widget (the erros on last post were just before creat it):
A) Notice: Undefined variable: nofilter in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
B) Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
C) Warning: implode() [function.implode]: Bad arguments. in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
D) Notice: Constant SUGGEST_CACHE_TIME already defined in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 14
E) Notice: Constant SUGGEST_SUGGESTIONS already defined in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 20
F) Notice: Constant SUGGEST_FILTER already defined in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 26
G) Again A) and B)
H) Warning: implode() [function.implode]: Bad arguments. in /home/everton/Work/demi/elgg/mod/suggest/config.php on line 111
I) Notice: Undefined variable: suggestions in /home/everton/Work/demi/elgg/mod/suggest/lib.php on line 188
J) Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND owner <> 1) ORDER BY rand() DESC LIMIT 3' at line 1] in EXECUTE("SELECT w.ident,u.username,w.title as name, w.icon FROM elggusers u, elggweblog_posts w WHERE (( w.owner = 1 OR w.access IN ('PUBLIC', 'LOGGED_IN', 'user1') or w.access IN ('group15', 'group16', 'group23', 'group27', 'group28', 'group29', 'group30', 'group32', 'group33') or w.access IN ('friends3', 'friends517', 'friends144', 'friends1690', 'friends295', 'friends297', 'friends298', 'friends299', 'friends303', 'friends305', 'friends311', 'friends313', 'friends314', 'friends316', 'friends317', 'friends318', 'friends324', 'friends341', 'friends342', 'friends343', 'friends345', 'friends346', 'friends347', 'friends348', 'friends349', 'friends350', 'friends353', 'friends354', 'friends355', 'friends357', 'friends358', 'friends359', 'friends360', 'friends361', 'friends362', 'fri in /home/everton/Work/demi/elgg/lib/adodb/adodb-errorhandler.inc.php on line 77
Hi Diego,
I have installed it on a new site with only two members. I don't see any signs that the suggest is working or not. Is there some way I can veryfy that it is working? Where does it show up and what is a minimum criteria I can create for it to do its thing?
FYI, your instructions don't mention that we have to import the sql file and it did not automatically import on login with news.
Hi Eduard, The plugin actually loads automatically the sql file to create the table that it needs to make the suggestion tracking.
There is two ways to use this plugin one through the keyword and the second one by the widget.
In both cases the suggestions only are displayed when you are logged in. because the plugin takes
as parameter the information (interests) of the logged in user.
To check if the plugin is working put some tags on your interests and then with another user publish some content with the some of the same tags.
Thanks Diego,
I'm really looking forward to this mod. But it looks like something aint right in my case.
I'm not seeing anything. Where would it show up? Am I looking for new section in the side bar or something else?
All I did was unzip it and upload it. By the way, it did create the table successfully. I forgot to refresh didn't see it. And when I imported teh sql a prefix_suggest_tracking was created. Which I now deleted.and import the sql file.
I have confirmed the files are uploaded, the table is created, and the table is still empty.
I have added a lot of data into profile fields. Although I have created a lot of new profile fields, the two test users with common interests are in the original interests keyword field. And I added the matching interests after the mod was intalled.
And the regular tag functions show the matches of interests.
To see your suggestions you have to add in your profile page the suggestions widget.
The suggestions_tracking table is used to track what of the suggested contents did you visit that's the reason why you didn't see anything there.
Diego,
Yes I found that quite by accident just before you told me about it.
My suggestion for suggest is to put it right in the sidebar menu.