Integration of other modules with Advanced Forum and Advanced Profile Kit

Michelle - December 7, 2008 - 05:37
Project:Advanced Forum
Version:6.x-1.x-dev
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

AttachmentSize
apk_af_integration_for_d5.zip3.98 KB
apk_af_integration_for_d6.zip2.97 KB

#1

halkeye - December 13, 2008 - 07:40

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

Michelle - December 13, 2008 - 12:50
Status:active» won't fix

No, this has been suggested before but dumping generic array into the template to print misc stuff is not very themer friendly.

Michelle

#3

Michelle - December 13, 2008 - 12:56
Status:won't fix» active

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

Roavei - December 16, 2008 - 10:16

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

Michelle - December 16, 2008 - 14:14

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

arcane - December 17, 2008 - 20:58

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

arcane - December 18, 2008 - 22:08

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

Psicomante - December 21, 2008 - 10:59

Have you considered to put this topic on the project page and in the readme? I think, imho, it should be more visible.

#9

Michelle - December 21, 2008 - 13:20

It is on the project page. I don't think it belongs in the readme as this is hopefully a temporary situation.

Michelle

#10

Psicomante - December 21, 2008 - 14:37

i'm sorry :( i didn't see it

#11

Michelle - December 21, 2008 - 15:28

I moved the note up higher. Guess people don't read the whole project page. :(

Michelle

#12

Psicomante - December 21, 2008 - 16:02

people likes me :|

#13

Michelle - December 21, 2008 - 21:23

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

arcane - December 22, 2008 - 16:09

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

Michelle - December 22, 2008 - 16:21

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

magibird - December 29, 2008 - 22:32

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!

  • I am running drupal 5.14 and Privatemsg 5.x-3.0
  • Private message worked fine with Advanced Forum Alpha 10, but after I upgraded to Alpha16, the link to SendPM no longer shows up on the Author Pane in the forums, and after upgrading to APK beta1, it no longer shows up in the user's profile either.
  • I read the various threads and understood I needed to add the function "privatemsg.author-pane.inc" which is in the zip file above as a file in the same directory as the private message module. I did so, but still no luck
  • I tried adding the function directly to privatemsg.module -- no luck
  • Just in case I misunderstood, I adding the inc. file in the advanced forum directory. No luck.
  • I have cleared my cache, tried this in multiple browsers, made sure Privatemsg was enabled for all users... no luck.

What am I missing?

#17

Michelle - December 31, 2008 - 00:29
Status:active» fixed

Ok, the author pane transition has been committed to both branches.

Michelle

#18

System Message - January 14, 2009 - 00:30
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.