Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2010 at 01:17 UTC
Updated:
11 Jan 2011 at 11:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex.k commentedCan you please verify you are using the latest Author Pane? There have been recent changes to the UR implementation of it to align with the changes in AP.
Comment #2
Québec commentedHi,
I'm using Author Pane 6.x-1.1 . This morning I will upgrade to AP 2; I'm guessing by your answer that the problem is AP 6.1.1.
Thanks for helping.
R.
Comment #3
Ela commentedHello,
Author Pane 2 seems to require Advanced Forum 2, which is in Alpha stage.. Also in the notes: http://drupal.org/node/848560 is says: "This alpha is intended to work with Author Pane Beta 1 and may not work quite right with older versions because the theme function changed." And: "it's still alpha so make sure you do extensive testing of your own before deploying on a live site and when upgrading. "
This is confusing as to which version of Author Pane and Advanced forum to use.
I have been using 6.x-1.1 of Advanced Forum and Author Pane 6.x-1.1, same as Québec. If that's not going to work with User Relationship newest 1.0 release, Please advice on versions to use.
Comment #4
alex.k commentedMichelle, please help. What do we need to make UR compatible with both AP 1 and 2?
Comment #5
michelleAh, sorry, I dropped the ball on this. The problem is that Author Pane 1.x should be deprecated. The only use for it is for AF 1.1 and 1.2 was supposed to have been out ages ago but the person who agreed to help me with it was a no show and I've been too swamped. I don't use AF/AP 1.x anymore and don't test against it so forgot about this. There are two routes to fix this:
1) Check function_exists('author_pane_run_preprocess') before calling it. That bit serves no purpose with AP 1.x so simply not running it is fine. This is the simplest method and the one I recommend given that AP 1.x is pretty much EOL.
2) Wrap the whole thing in if (function_exists('author_pane_api') && author_pane_api() == "2") {} and provide an else case with the older code for the UR integration with AP 1.x. This is a bit more work and, frankly, I'm not interested in doing it and don't expect Alex to do it, either. If someone is interested in making this totally backwards compatible, patches welcome.
So, my recommended fix in a pesudo patch because I'm changing computers and have no dev environment ATM:
Again, sorry for the hassle. Hopefully answering promptly makes up for annoying you with fixing stuff I broke. :)
Michelle
Comment #6
michelleForgot to move this back...
Michelle
Comment #7
alex.k commentedCommitted a fix in http://drupal.org/cvs?commit=469152
To those upgrading to the dev release or testing: this should restore compatibility with author_pane 1.x and keep 2.x working, too.
In author_pane 1.x I don't see icons next to relationship links. If someone can confirm they weren't there before, that would help. AP 2.x has the icons. Attached a screen of what I mean.
Comment #8
michelle@Alex: It's quite likely the icon is broken in 1.x. That's what I was talking about before with full compatibility it would need to check the API version and then use the old code for 1.x. I would rather use my time to finishing what needs to be done to get rid of AP 1.x but if someone who is using 1.x wants to take the time to make it work better, that's what needs to be done. At this point, it's sorta like putting resources into Drupal 5 modules. ;)
Michelle
Comment #9
Québec commentedGood Morning!
I did the switch to Author Pane II and User relationship is now working 100%.
In the Author pane, I have replaced the «mail», «add» and «remove» icons with big ones: i'm struggling to align them at the right of the panel (Panels 3.x). When doing so, the «online» and «mail» link «spring out» of the pane into the center of the screen! An other thing: my buttons overlap. Where do I have to look to make the proper corrections?
Thank! And Merry Christmas!
Comment #10
michelle@Québec: That has nothing to do with this issue; you need to tweak your CSS. I suggest getting Firebug for Firefox so you can easily see what CSS is affecting it.
Michelle
Comment #11
alex.k commentedComment #12
alex.k commentedChanging to a more descriptive title