Jump to:
| Project: | User Stats |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
AF (and soon APK) allows other modules to add variables to the "author pane" via hook. I initially took the easy route by simply writing the integration myself and included the code in AF/APK. As I get more and more requests to integrate module X, I realized this was a bad approach and am starting the process to get the hooks into the individual contrib modules.
All I need from you is to either drop the attached files into your module directories (remove the .txt that uploading requires) or take the functions out of them and put it in your module files. Both methods work, just choose the one that works best from you. If you aren't willing to do either, please let me know.
For more information, see Adding variables to the author pane
Thanks,
Michelle
| Attachment | Size |
|---|---|
| user_stats.author-pane.inc5_.txt | 619 bytes |
| user_stats.author-pane.inc6_.txt | 619 bytes |
Comments
#1
This is now in CVS (for both five and six branches). I haven't tested it at all though. :)
#2
Yay! Thanks. :) It should work fine. The code has been in AF for a while. I just took the file and copied it to the issue. I'll give it whirl tomorrow. Did you put it in both branches?
[Edit: Dumb question... I just looked at the commit log. LOL! Thanks again!]
Michelle
#3
lol, I just edited my original post, thinking I was stupid for not letting you know the code is in both branches. :D
#4
Yay for crossposting :)
Thanks and goodnight.
Michelle
#5
Automatically closed -- issue fixed for two weeks with no activity.
#6
Integration works fine, until, that is, I clear the site cache.
I then come up against the following message:
All page refreshes then disappears until you find a way of switching off the User Stats module, at which point everything returns to normal.
Have repeated the process several times, with the exact same effect.
Be warned, have a tab open with /admin/build/modules, or else there is no way of switching off the module.
I am using:
Latest Drupal ver.
User Stats 6.x-1.x-dev
Advanced Forum 6.x-1.0-unstable1
Author Pane 6.x-1.0-unstable1
#7
Unfortunately this is a completely seperate issue and needs to be in its own bug report. Every bug must have its own report, or things become confusing. :)
Also, I double-checked the code in User Stats and the function is only declared once. So I'm going to assume the problem is caused by Advanced Forum (or maybe even Drupal) including the user_stats.module file twice.
The information you provided is good though: please copy and paste that over to a new issue on the Advanced Forum list. Bonus points if you come back here and note the URL of the new issue.
Thanks. :)
#8
@Liam: No worries. This hijacking is a dupe, anyway. It's already fixed in the dev of AP. I accidentally included my own version in the D6 version because, for some reason, I thought this had only been committed here to 5.x.
@Manamarak: Just delete the file from AP.
Michelle
#9
Michelle: heh, I missed the
author_pane\modules\user_stats.author-pane.incin Manamarak's report.Thanks for updating the issue btw. :)
#10
Sorry about that, with integrated modules it is often confusing to find the correct issue que.
The issue has been fixed here:
http://drupal.org/node/355737
Can I still have the bonus points?
#11
lol, yes. You win 2 Internets, congratulations. :)