Closed (fixed)
Project:
Advanced Forum
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2008 at 22:40 UTC
Updated:
24 May 2008 at 05:11 UTC
The attached patch *should* port the mark as read functionality to Drupal 6.
It is, however, totally untested. It may be broken.
What it does:
1. Updated menu code. Not tested and I did remove the User id as part of the access check...
2. Actual function has been updated to work on all content types in a forum. Not tested, but this should work.
This time as a proper patch!
| Comment | File | Size | Author |
|---|---|---|---|
| markasread.patch | 3.2 KB | naheemsays |
Comments
Comment #1
naheemsays commentedJust thinking this a little further... why is there an access permissions check? I think the two access lines (callback and arguments) should be able to be replaced with:
'access callback' => TRUE,That is unless I am missing something?
Comment #2
michelleThanks. I hope to be getting back to the D6 port again soon. I got bogged down with things not working right in D5 and needed to get them fixed since the 5.x version is being used on live sites. So the D6 port kinda got the shaft for a while. :(
Michelle
Comment #3
michelleThis patch doesn't work but I've made some progress towards getting it working. There is still an error when marking a single forum read. Also, as noted over here there is still a problem with the menu call.
I committed the partial fix because it was part of a package of fixes I did last night and I didn't get it all the way done before I had to go, but it's not ready to use, yet. (Not that the dev is, either, but that's another story. :P)
Michelle
Comment #4
michelleThanks for the effort, nbz, but I wasn't able to use this patch after all. The patch was pretty broken and, in the process of trying to fix it, I discovered the original code that I got from someone else to use in the 5.x line was actually pretty bad. With help from afeijo (who rewrote it and did the bulk of the work) and konfused on IRC, we now have a much clearer and working version. It's only had minimal testing but seems to work just fine.
Michelle
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.