In my first comment on this forum I brought this up, but in a different way. I suggested that it would be good if in the user accounts profile page the Comments Added & Disscussions Started should be links to the search function they represent.
So clicking on Comments Added would bring up the list of the threads (Discussions) participated in, and clicking on Disscussions Started would be similar to the link http://lussumo.com/community/discussions/?View=YourDiscussions, but it would function for that user rather than whoever is logged in.
Also I would change the Participated Threads to Participated Discussions, in keeping with the vanilla style of naming, but that's just a personal preference.
I, for some reason, couldn't get this extension to work. I already had a pretty detailed tab setup via PageManager and did see this: "get the latest version... follow the instructions in the FindUserPosts extension file". I am running the latest pagemanager, but could not find a FindUserPosts extension. And there was no readme in the ParticipatedThreads extension folder.
Anyway, for anyone that may be interested, to utilize this nice feature what I did was upload and enable the extension. I then created a new page with PageManager and assigned it with the base URL appended with ?ParticipatedThreads. [www.site.com/vanilla/?ParticipatedThreads] and everything worked smoothly.
Except 1 thing: the numbering is off. It says: "1 to 13 of 13" when there are actually only 11 threads. 13 is the total number of threads on the discussions page, if that helps.
Oops. It was originally labelled FindUserPosts, and I might've left a notice in another extension for that...
But when you add a new extension which creates a tab, and you've got the page manager installed, you need to resync the tabs so it will pick it up.
Anyways, fixed the numbering bug, and added in definitions to allow people to easily change how they want it to be displayed (in a tab and/or as a filter).
Great addition ( the display option ). However, I'm still getting the number error. It now displays 1 to 28 of 28, when there are only 11 actual threads, and 14 discussions.
Is there a way to get rid of the numbering alltogether? I can't for the life of me get this to work correctly. It seems almost like it is counting the total number of actual posts instead of the number of threads posted in.
Great little extension, but I get the numbering error too... "1 to 30 of 39" when there's only 20 threads in total. When you click to see page 2 of the results ("31 to 39 of 39") the page is blank.
AssProphet - I wanted the same type of filtering on each user's Account page that you described above so I wrote up a simple extension to do it:
http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=107
It follows your description pretty literally, but let me know if there was anything else to it you had in mind.
Looks promising, however, I did encounter an error and the links didn't actually work:
Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 23 Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 23 Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 24 Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 24 Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 27 Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 27
Also I would label the sidebar heading with the user's name as in, AssProphet's Activity, or AssPropeht's History or something. I realize you took "filters" from Discussion Filters, but this extension doesn't really behave as much like a filter because it widens the scope of information rather than narrowing/filtering it. Again I'm not sure what word, history, activity, or other should replace filters. Any ideas?
Doh - this is my first ever extension in Vanilla so I *knew* I should have trusted my gut and labeled it 0.9 instead of 1.0. Sorry about that error.
I won't be able to troubleshoot your error messages it until I get home this evening, but I'll see what I can find. I like your suggested naming of 'username's Activity' so I'll go with that instead of Filters in the next version.
Trouble is I'm not getting that error myself...I see it's been downloaded by several others - anyone else have experience with User Filters working/not working on your installation?
As far as I can tell the error means that the variables you're using for my account name aren't valid. I'll try installing from scratch again on my test forum and see if it is still an issue, and I'll also try enabling on extension at a time, starting with yours to see if there's a conflict.
I'm imagining that I didn't force the extension to define $AccountUser, but since I can't replicate the error on my own installation I'm just guessing. That said, I'd bet that I don't get an error myself because some other extension I've installed is forcing the definition.
Anyway, I've uploaded a new version (downgraded to 0.9) with the following added at line 22:
//Define the account that is being viewed
$AccountUserID = ForceIncomingInt("u", $Context->Session->UserID);
$AccountUser = $UserManager->GetUserById($AccountUserID);
I think that sets the definition properly. Can you give the new version a try?
Sorry I haven't been around for a while; I was away and didn't have really great access to the internet, let alone a system where I could work on extensions properly. Anyhow, the numbering bug should be fixed now.
I installed this extension a while ago and it works fine. However, for some reason it's displayed not only on the disussion tab, but on all tabs, including the settings, account and search pages, which doesn't really make sense. Since I noticed it's not the case here in the community forum, I'd like to know if there's a way to make it only appear on the discussions & categories tab.
I'm also using the Page Manager and the Panel Re-Order, maybe there's a problem with that.
Shouldnt be a problem with the Panel Re-Order unless it funked up the rewriting of the extension file (which i doubt it would manage to do without having other serious side effects)
I'd say you need to open up ParticipatedThreads/default.php, locate
if(PT_ADD_FILTER)
and change it to
if(PT_ADD_FILTER && $Context->SelfUrl == 'index.php')
How's that?
adding the entire chunk? Not the best way forward. Just replace the original if statement i gave you with: if(PT_ADD_FILTER && in_array($Context->SelfUrl,array('index.php','categories.php'))
Comments
In my first comment on this forum I brought this up, but in a different way. I suggested that it would be good if in the user accounts profile page the Comments Added & Disscussions Started should be links to the search function they represent.
So clicking on Comments Added would bring up the list of the threads (Discussions) participated in, and clicking on Disscussions Started would be similar to the link http://lussumo.com/community/discussions/?View=YourDiscussions, but it would function for that user rather than whoever is logged in.
Also I would change the Participated Threads to Participated Discussions, in keeping with the vanilla style of naming, but that's just a personal preference.
Anyway, for anyone that may be interested, to utilize this nice feature what I did was upload and enable the extension. I then created a new page with PageManager and assigned it with the base URL appended with ?ParticipatedThreads. [www.site.com/vanilla/?ParticipatedThreads] and everything worked smoothly.
Except 1 thing: the numbering is off. It says: "1 to 13 of 13" when there are actually only 11 threads. 13 is the total number of threads on the discussions page, if that helps.
And thanks for the resync tip
Any ideas would be greatly appreciated. Thanks.
Looks promising, however, I did encounter an error and the links didn't actually work:
Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 23
Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 23
Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 24
Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 24
Notice: Undefined variable: AccountUser in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 27
Notice: Trying to get property of non-object in /home/.lasorda/nca/members.cavern.com/forum/extensions/UserFilters-2006-07-16/default.php on line 27
Also I would label the sidebar heading with the user's name as in, AssProphet's Activity, or AssPropeht's History or something. I realize you took "filters" from Discussion Filters, but this extension doesn't really behave as much like a filter because it widens the scope of information rather than narrowing/filtering it. Again I'm not sure what word, history, activity, or other should replace filters. Any ideas?
I won't be able to troubleshoot your error messages it until I get home this evening, but I'll see what I can find. I like your suggested naming of 'username's Activity' so I'll go with that instead of Filters in the next version.
Trouble is I'm not getting that error myself...I see it's been downloaded by several others - anyone else have experience with User Filters working/not working on your installation?
Anyway, I've uploaded a new version (downgraded to 0.9) with the following added at line 22:
//Define the account that is being viewed $AccountUserID = ForceIncomingInt("u", $Context->Session->UserID); $AccountUser = $UserManager->GetUserById($AccountUserID);
I think that sets the definition properly. Can you give the new version a try?
http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=107
I installed this extension a while ago and it works fine. However, for some reason it's displayed not only on the disussion tab, but on all tabs, including the settings, account and search pages, which doesn't really make sense. Since I noticed it's not the case here in the community forum, I'd like to know if there's a way to make it only appear on the discussions & categories tab.
I'm also using the Page Manager and the Panel Re-Order, maybe there's a problem with that.
It works fine now, but (sorry for sucking at PHP) what should I need to change to make it also appear on the category tab?
if(PT_ADD_FILTER && $Context->SelfUrl == 'category.php') { if(!isset($Context->Dictionary['DiscussionFilters'])) { $DiscussionFilters = 'Discussion Filters'; $Panel->AddList($DiscussionFilters, $Position = '000', $ForcePosition = '1'); } else $DiscussionFilters = $Context->GetDefinition('DiscussionFilters'); $Panel->AddListItem($DiscussionFilters, $Context->GetDefinition('ParticipatedThreads'), $Context->Configuration['WEB_ROOT'].'?View=ParticipatedThreads'); }
However I doubt it's optimized...
if(PT_ADD_FILTER && in_array($Context->SelfUrl,array('index.php','categories.php'))