Closed (fixed)
Project:
Advanced Profile Kit
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2010 at 19:57 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alex.k commentedDo you see the standard link to create the relationship when looking at the author's account?
Comment #2
frenk commentedNo I did not at first but I added the "User Relationships: Actions" block.
Only it would be much more efficient to see it in author pane.
Comment #3
alex.k commentedWorks for me with AP 2.0 and the current UR... The reason for my question is to see if the links show in one place but not another. Then that would suggest that the code that provides links to AP is not working.
I'm not sure what you mean by .tpl files. All AP integration lives in user_relationships_api.author_pane.inc, which has no theming to speak of.
Comment #4
frenk commentedWhat I mean with .tpl files are: advanced_profile_author-pane.tpl.php and the advanced forum tpl were the code is in for UR.
Anyways.. I use the latest versions of all modules and it doesn not work for me. So what your saying is downgrade to a older version?
Will take a look..
Comment #5
frenk commentedChecked it and I'm using AP 2.0 to :(
Comment #6
alex.k commentedLet's check over at APK... Michelle, is anyone having issues with the new author_pane + UR integration not showing up when APK is used? My test setup of plain author_pane 2.0 and UR has been working fine.
Comment #7
michelleNope. And it's working fine on my site. I'll leave this active but I have to be honest that I'm not going to be able to look at this any time soon. I've got way too much on my plate and trying to fix something I can't repro isn't something I can do right now.
Michelle
Comment #8
alex.k commentedThanks, Michelle. @OP, you can help troubleshoot by disabling advanced_forum, APK, panels if you have that, and seeing what module is causing this. If you do not see the links when just UR and author_pane are on, yet you see link to add relationships in the user account - then we have narrowed this down to UR/author_pane. As of now there are too many variables with all the modules enabled. Also check if perhaps your theme or CSS is hiding the links.
Comment #9
frenk commentedOk thanks Alex, will do that and let you know when I found the problem
Comment #10
michelleOne more thing, if you have the devel module installed, put a dsm() right at the end of the author pane .inc file in UR to see if the variables are being set. Sorry for not giving you specific variable / file names but I don't have my dev environment up right now and I'm leaving in 30 seconds.
Michelle
Comment #11
frenk commentedfirst thing I did was disabling advanced forum Alex, and when viewing a profile page: there's the UR icon! Also the contact icon showed up. I didn't even knew that that was missing.
So the problem in my case is AF. I allready tried another style for AF, but that doesn't make any changes.
Any suggestions on what to do now?
Michelle, I don't have devel installed but I can offcourse if it helps me now.
Comment #12
frenk commentedOw, I'm using AF 6.x-2.0-alpha3
Comment #13
michelleHmmm... This may actually be a bug in APK. I'm really sick and having trouble focusing so maybe I'm missing something but my dev copy of advanced_profile_author-pane.tpl.php has
print $user_relationships_api_link;instead ofprint $user_relationships_api;like it should. Check the copy of that file in your theme's directory and see which it has and make sure it doesn't have the _link at the end.If that's not the problem, try this that I wrote before catching that discrepancy:
If you install devel, you can put:
dsm($variables['user_relationships_api']);between lines 82 and 83 in this file:http://drupalcode.org/viewvc/drupal/contributions/modules/user_relations...
When you look at the profile page, it should put a message box at the top with the value in that variable so you can see if it's getting set properly.
When the world isn't spinning quite so much, I'll try to figure out how APK's copy got reverted and make sure it's fixed in CVS.
Michelle
Comment #14
frenk commentedHi Michelle,
I changed:
print $user_relationships_api_link;in toprint $user_relationships_api;but that didn't solve the problem.
Then I installed Devel, and followed your instructions. But I got this error:
Parse error: syntax error, unexpected ';', expecting ')' in /home/site/domains/site.com/public_html/sites/all/modules/user_relationships/user_relationships_api/user_relationships_api.author_pane.inc on line 83
Comment #15
alex.k commentedSounds like you missed some characters when adding the dsm() call. This is a parse error, which is not there in Michelle's code as written.
Comment #16
frenk commentedhmmz.. tried it again.
Copied the code as above. See printscreen:
Comment #17
michelleSorry, between lines 92 and 93, not 82 and 83.
Michelle
Comment #18
frenk commentedSorry, there is a message:
<div class="author-pane-ur-link-item"><a href="/relationship/10/request/1?destination=user%2F10" title="Become KillaHill's Vriend" class="Vriend user_relationships_popup_link author-relationship-add-icon">Add Vriend</a></div>Comment #19
frenk commentedCan you give me a hint on what to do Michelle?
Comment #20
michelleIf the preprocess is filling the variable and you've corrected the bad variable name in the template, I have no clue, sorry.
Michelle
Comment #21
frenk commentedI didn't correct any variable? I tried different themes, but no theme passes the icon. But you say it's a theme problem?
Comment #22
michelleDid you read #13?
Michelle
Comment #23
frenk commentedAh yes I did correct that variable. Didn't help :(
Comment #24
michelleI fixed the variable problem. Beyond that, the issue is probably http://drupal.org/node/819764#comment-3789562.
Michelle