Integration of other modules with Advanced Forum and Advanced Profile Kit
| Project: | Advanced Forum |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Note that this issue applies to D5 as well.
I decided to make one central place I could point to for this issue. AF & APK both use the hook_preprocess_author_pane() so other modules can add variables to the author pane in both places with just one bit of code. Unfortunately, convincing other maintainers to add a little snippet of code has been more trouble than I expected. The following is a list of modules that I have requests with and you can see their status by hovering over the links.
Userpoints - #326984: Advanced Forum and Advanced Profile Kit integration
User titles - #327186: Advanced Forum and Advanced Profile Kit integration
User badges - #327185: Advanced Forum and Advanced Profile Kit integration
Privatemsg - #326979: Privatemsg integration (Committed to 5.x not 6.x)
User stats - #326985: Advanced Forum and Advanced Profile Kit integration (Comitted but only in dev version)
User relationships - #324371: Advanced Forum / Advanced Profile Kit integration
Buddylist - #326833: Advanced Forum / Advanced Profile Kit integration
Fasttoggle - #343848: Integrate Advanced Profile Kit & Advanced Forum with Fasttoggle
To make it easier for my users, I've attached zip files with the .inc files. For each module that you use that has not commited this code already (according to the issues above), Just drop the coresponding .inc file right into that module's root directory. AF & APK will pick it up automatically. There is no need to change any code in the .module files.
Michelle
| Attachment | Size |
|---|---|
| apk_af_integration_for_d5.zip | 3.98 KB |
| apk_af_integration_for_d6.zip | 2.97 KB |

#1
Is there any plans to support a more generic method for adding items?
Something like:
<?php$variables['icons'][] = array('#weight'=>100, 'content'=>"<img src...blah>");
?>
This way modules can still hook in without requiring changes to the default templates to support them.
Then in the template something like:
<?php
if (!empty($icons)) {
/* common.inc to support #weight. Probably easily to move to the themeing engine, but i've forgotten most of it now */
usort($icons, "element_sort");
foreach ($icons as $icon) {
<div class="author-pane-icon">print $icon['content'];</div>
}
}
?>
then a seperate section for adding any sort of links/text/etc
#2
No, this has been suggested before but dumping generic array into the template to print misc stuff is not very themer friendly.
Michelle
#3
Whoops. Half asleep here. Just realized you tacked this on to my informational issue instead of making one of your own so I can't change the status.
Michelle
#4
after i updated to the newest alpha the "quote-module" seems not to work anymore with adv. forum.
the "quote" button isn't available.
maybe i am wrong but shouldnt there also be a .inc for the quote module?
#5
No, the quote module adds itself to the links section. It has nothing to do with the author pane and there is nothing in AF involved in making it work.
Michelle
#6
I am using D5 and alpha6 version of the APK module and 5.x-1.1-beta of the buddylist module.
I added the buddylist.author-pane.inc file into the buddylist module directory, but am not getting the "Add to buddylist" or "Remove from buddylist" in the author-pane when I look at the users panel page.
Is there anything I can check? Thanks in advance for such a great module. It will save me tons of hours of work.
#7
I upgraded to the 5.x-1.0-beta1 version of the Advaced Profile module and buddylist integration is now working correctly.
However, I am now trying to get integration working with Privatemsg 5.x-3.0 version. I searched for the text "author-pane" in Privatemsg in 3.0, 3.x dev, and head and was not able to locate any preprocessor to create the necessary variables. I also dropped in the file from the zip package for Drupal 5 but it is still not working.
Did I miss something?
Thanks.
#8
Have you considered to put this topic on the project page and in the readme? I think, imho, it should be more visible.
#9
It is on the project page. I don't think it belongs in the readme as this is hopefully a temporary situation.
Michelle
#10
i'm sorry :( i didn't see it
#11
I moved the note up higher. Guess people don't read the whole project page. :(
Michelle
#12
people likes me :|
#13
I have created a new project, http://drupal.org/project/author_pane , where I can place the contrib integrations since I've had no luck getting cooperation from other maintainers in the two months since it was taken out of AF. The next releases of AF & APK will depend on the new module rather than all these issues.
Michelle
#14
Hi Michele,
Is it advisable for users of the current 5.x module to use the new author_pane module or should we wait for the next version of apk? If we should wait, can you advise when the next release will be approximately.
I'm still having trouble getting the privatemsg module integration working properly on Drupal 5.x - Litwol advised me to use the dev version, but it still doesn't seem to work. I think i'm supposed to see an icon for writing a message directly to a user correct? (next to the other icons right)
Thanks in advance for all of your hard work.
#15
I don't have the new module working in D5 at all, yet. Starting in D6 and then will backport. It won't help with the privatemsg problem, anyway, since I'm only adding the code that the other maintainers wouldn't commit. The PM integration is working fine for me on my D5 sites but, if you file an issue, I can try and figure out what the problem is. Might be a few days, though. I'm pretty swamped trying to get this change done on top of everything else I have to do.
Michelle
#16
I have read through the various threads about this issue and think I am doing this correctly, but I cannot get the private message option to show up on my site. I must be missing something, I hope you might know what it is!
What am I missing?
#17
Ok, the author pane transition has been committed to both branches.
Michelle
#18
Automatically closed -- issue fixed for two weeks with no activity.