On the main forum page are listed three links, two of which read:
My forum discussions
Active forum discussions
Clicking on these links simply redirects to the tracker pages:
My recent posts
All recent posts
This shows all postings, including blog entries, pages, forum posts, stories, etc. This is very misleading. When I click on these links, it should filter the tracker page results and display only forum posts in the list. Perhaps the URL's need to be changed to:
http://www.mydomain.com/cvs/tracker/forum
http://www.mydomain.com/cvs/tracker/2/forum
And then the tracker module updated to return only the filtered resultset? If no one wants to take this issue then I'll do it myself, but it really should be fixed for 4.6.0 release.
Jason.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | tracker.module_4.patch | 9.4 KB | Zen |
| #11 | tracker.module_0.patch | 9.57 KB | Zen |
| #4 | tracker.module | 8.98 KB | jasono |
| #3 | ForumTracker.zip | 10.21 KB | jasono |
| #2 | TrackerForum.zip | 10.19 KB | jasono |
Comments
Comment #1
jasono commentedMessed those links up. They should have read:
http://www.mydomain.com/tracker/forum
http://www.mydomain.com/tracker/2/forum
Also changed issue to CVS version.
Comment #2
jasono commentedHave fixed this behavior by creating a MENU_ITEM_GROUPING field that filters by forum posts. Will submit to CVS for possible inclusion in 4.6.0. Fixed files attached in zip archive.
Modules changed:
forum.module
tracker.module
Comment #3
jasono commentedMessed up a part of the code. Fixed version attached.
Comment #4
jasono commentedAdded even more usability improvements to the tracker module. Users can now filter by blog posts, forum topics, pages, stories, and polls if the menu items have been activated by an administrator and those modules are present and enabled.
Comment #5
Lou Quillio commentedThis is a small train wreck. I just rolled-out a site that started under 4.5.1 and seemed to have no problems with a 4.5.2 upgrade. Now I see that the primary forum links (My forum discussions, Active forum discussions) are exposing raw tracker data, not confined to my 'Forums' vocabulary or published/not-published state.
Am I understanding correctly that this issue speaks of the same thing? A quick and dirty substitution of the revised tracker.module and forum.module (which had trailing blank lines) has not done the trick. I'm gonna have to hack-out those links or kill my forums *now*.
Here's what the "My forum discussions" and "Active forum discussions" links are exposing, respectively:
http://example.com/tracker/1
http://example.com/tracker
These aren't confined to my 'Forums" vocabulary at all. I'd appreciate learning what the proper link targets should be, so I can at least make a better hack. Even un-authenticated users are served http://example.com/tracker, with no permissions applied.
Need advice fast: What's the best short-term fix?
And I'm a little perplexed as to why tracker output listings aren't subject to permissions. Whether or not forum.module serves raw tracker links, someone could key their own URLs and get a listing of unpublished content. Even if they can't click through, my underwear's showing.
Any help appreciated. The other Drupal.org nodes/posts that come near this subject all have no replies. I hope I'm overreacting.
Comment #6
Lou Quillio commentedkeywords: tracker.module tracker module admin private privacy broken forum forums 4.5 4.5.1 4.5.2 beta why wtf
Correction: Anonymous users *can* click-through to unpublished content by following forum.module's tracker links -- or tracker links in general. So it's not my underwear that's showing, it's my hairy, perfect ass.
Taking tracker.module offline. Fixed.
Comment #7
(not verified) commentedComment #8
Dublin Drupaller commentedhas this been fixed?
Comment #9
killes@www.drop.org commentedNo, somebody should provide a patch.
Comment #10
edudx commentedI had the same thing happen and have posted the problem in several places. Tracker does not filter content. If you have any kind of permissions which restrict content, a restricted user can get at all of it through "recent posts." Major back-door flaw. Solution: very useful tracker module is deactivated.
Comment #11
Zen commentedAttached patch fixes:
i.e. id IN (1, 2); 1 IN (id1, id2); id IN (id1, id2); VS. their OR() equivalents.
<br />tag from the 'Reply' column. Replaced with<div>.@jason et al.: I wrote the update from scratch, but I've had a quick look at the module submitted above. Things that I haven't done:
@Lou Quillio: The unpublished content issue appears to be fixed.
If I've missed anything, please let me know.
Cheers
-K
Comment #12
killes@www.drop.org commentedThis is a (nice) feature, not a bug. The handling of $type_query is a bit inconsistent. I'd prefer to put it completely into our db abstraction layer. I suggest to look into this when 4.8 development opens up.
Comment #13
Zen commentedkilles: This fixes the forum page links ["My forum discussions" and "Active forum discussions"] bug, the 404 bug and the
<br />tag issue. I believe all of these are bugs. The added features are the multiple type query and the hyperlinked type fields, which are trivial once the above are accomplished.I was going to make the tables sortable, but postponed that to post 4.7 as I'd like to see this patch go through.
$type query: Can you clarify on the inconsistency? The use of sprintf vs. concatenation?
I'm going to re-classify this as a bug. Feel free to reassign it as a feature if you still disagree :) I'll fix the code once you confirm what the inconsistency is.
Thanks for the review :)
-K
Comment #14
Zen commentedAttached patch:
- Keeps up with HEAD.
- Fixes my // form.
- Replaces sprintfs with . operators.
@Killes: I don't get what you mean.. The node types are already filtered out using the array_intersect(), and cease to be user input as such. So I don't see the benefit of running it through a filter once again. Please clarify.
Thanks,
-K
Comment #15
fax8 commented+1 for me. Really a good functionality to have.
Comment #16
Zen commentedComment #17
bradlis7 commentedThis hasn't been updated in 6 months, but I think it's something that needs to be added (at least to drupal 6.0). I think the patch would still work, but with a few changes in the line numbers.
Do you still want this Zen? I might try to apply the patch by hand and come up w/ a new one.
Comment #18
Zen commentedThere is actually another issue (hooray for people searching beforehand) that currently deals with this feature.
Marking this as duplicate.
-K
Comment #19
bradlis7 commentedHeh, well, good try, but your search yielded the same post. I searched to see if you miscopied, but found nothing else under the tracker.module that was active.
Comment #20
Zen commentedOops :/ Try http://drupal.org/node/83190
Cheers,
-K