Closed (fixed)
Project:
Anonymous Posting
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2011 at 22:53 UTC
Updated:
21 Dec 2012 at 10:20 UTC
Is there a way to replace the "Anonymous" as the Topic starter in the forum topics list with the name user has stated when he/she created the topic using Anonymous Posting?
(I am not sure if this is an issue for Anonymous Posting or for Advanced Forum...)
Thanx,
Mat
Comments
Comment #1
drikc commentedJust tried with Advanced Forum module and yes I can see that the 'Anonymous' string is shown instead of the recorded anonymous author name.
Certainly something can be done and if a part must be in Anonymous Posting module I will gladly do it, but as what I can see for now is that probably Advanced Forum (quickly went through the 3000 lines) will have to be adapted in somewhat.
I recommend that you post an issue to Advanced Forum module by including a link to this one.
Comment #2
drikc commentedComment #3
michelleI haven't looked at this module but my best guess is its Views integration is what is at issue here since AF's topic list is a view. Not likely anything can be done on AF's end for this. If it turns out there is, move this issue; don't duplicate it.
Michelle
Comment #4
dreamingX commentedThank you for the answers. I have come up to the same conclusion (to blame the Views) and even tried to change the view. It is possible to define special text for anyonymous users that is presented as the creator of the topic (i still was unable to add a token for 'name' that is used by AP though), but changing the column Last post doesn't include such an option. Since this column is only a problem until someone replies to the topic (either registered user or anonymous) I have decided to live with this. I guess with some preprocess function the first column could be solved. Any ideas?
Comment #5
drikc commentedComment #6
msedlacek commentedany update on this?
Comment #7
lurkingbeast commentedAdvanced Forum perhaps renders the username in a different way, but on a related note I had this same issue when using Display Suite.
To fix this I hacked the display suite module from
to
Comment #8
nicorac commentedHi guys, I'm experiencing the same issue so here's my cleaner fix.
It uses Views
hook_views_pre_renderhook to alter rendered data.It must be added to your own module or template and doesn't hack other modules code.
Hope this fix will be included into Anonymous Posting code.
Comment #9
nicorac commentedSingle function patch is into my previous post...
Comment #10
drikc commentedthanks nicorac,
I've pushed you code: http://drupalcode.org/project/anonymous_posting.git/commitdiff/8b49d3a?h... It will soon appear in the 7.x-1.x-dev release.
Btw, I didn't tested yet as I don't use myself Advanced Forum (I should now as your fix look very nice ;-)). Also, if someone else can report that it work it I would be nice; I will make a dedicated 1.1 release for it!
Comment #11
nicorac commentedI'd very much like to read other user's comments too.
The patch is running on my (small) forum that will be published here in a few days: http://coolsoft.altervista.org/forum
Your module is a godsend because my (small) forum is 99% anonymous (user support), then allow anonymous users to post is a must.
Thanks for your kindness
Comment #12
drikc commentedHi, I've tested nicorac patch; works great! Also, I've added the substitution of the last contributor name with the anonymous user name if there is no comments for a topic; was displaying the 'Anonymous' string here also...
Nicorac or someone if you mind checking the last commits I will do a 1.1 release!
Comment #13
nicorac commentedOuch..., I missed that part, thanks!
It works perfectly on my side, so I removed patch from my own module and will use your.
Cheers
Claudio
Comment #14
drikc commentedThanks, it's in 1.1!
Comment #15
nicorac commentedSadly just after the new release I saw something that should be changed.
We've been too conservative on our patch ;) : the same View patch should be applied to all of the Advanced Forums views, otherwise filtered views (like "Unanswered topics" and "Active topics") still show "Anonymous"...
See the new
anonymous_posting_views_pre_renderbelowI don't know if this worths a new release.
Sorry for the noise.
Comment #16
drikc commentedNicorac push his patch of comment #15 into the git repository so it is available in the latest dev release. Thx!
Comment #17
drikc commentedPushed in 7.x.1.2 release
Comment #18
gaards commentedWould it be possible to add this code to the Drupal 6 version of Anonymous Posting as well? It would be much appreciated.