Closed (fixed)
Project:
Admin message
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2011 at 18:21 UTC
Updated:
3 Dec 2012 at 15:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
jmcintyre commentedThe attached patch prevents the module from saving the "close" actions of anonymous users.
Comment #2
jmcintyre commented(forgot to change status w/yesterday's post)
Comment #3
b.ravanbakhshI use cookie to save anonymous closes.
just add these code at the begining of admin_message.module file.
then patch current "admin_message_close" function by following code
and finaly change line 112 to this
if (empty($closed_by_user) && ($item->created >= $user->created || $item->keep_new) && $php_visibility && _admin_message_read_cookie($item->nid)) {Comment #4
dsnopekI've made a patch out of the approach described in comment #3. It's a little bit different than what b.ravanbakhsh did:
Please let me know what you think!
Best regards,
David.
Comment #5
dsnopekPatch from #4 committed! Thanks, b.ravanbakhsh!
Comment #6.0
(not verified) commentedRemoved info about patch, moving to comments.