I installed UR, but don't see the add friend icon in Author pane. Not in advanced profile, and not in advanced forum.

Looked at the .tpl files and the code is there.

Also gave all the right permissions, and choose the right relation for author pane in the UR settings.

Any suggestions?

CommentFileSizeAuthor
#16 screener.jpg25.08 KBfrenk

Comments

alex.k’s picture

Do you see the standard link to create the relationship when looking at the author's account?

frenk’s picture

No 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.

alex.k’s picture

Works 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.

frenk’s picture

What 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..

frenk’s picture

Checked it and I'm using AP 2.0 to :(

alex.k’s picture

Project: User Relationships » Advanced Profile Kit
Version: 6.x-1.0-rc6 » 6.x-1.x-dev

Let'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.

michelle’s picture

Nope. 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

alex.k’s picture

Thanks, 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.

frenk’s picture

Ok thanks Alex, will do that and let you know when I found the problem

michelle’s picture

One 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

frenk’s picture

first 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.

frenk’s picture

Ow, I'm using AF 6.x-2.0-alpha3

michelle’s picture

Title: No icons in author pane » Possibly bad variable for User Relationships in APK's AP template

Hmmm... 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 of print $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

frenk’s picture

Status: Closed (fixed) » Active

Hi Michelle,

I changed:
print $user_relationships_api_link; in to print $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

alex.k’s picture

Sounds 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.

frenk’s picture

StatusFileSize
new25.08 KB

hmmz.. tried it again.

Copied the code as above. See printscreen:

michelle’s picture

Sorry, between lines 92 and 93, not 82 and 83.

Michelle

frenk’s picture

Sorry, there is a message:

<div class="author-pane-ur-link-item"><a href="/relationship/10/request/1?destination=user%2F10" title="Become KillaHill&#039;s Vriend" class="Vriend user_relationships_popup_link author-relationship-add-icon">Add Vriend</a></div>

frenk’s picture

Can you give me a hint on what to do Michelle?

michelle’s picture

If the preprocess is filling the variable and you've corrected the bad variable name in the template, I have no clue, sorry.

Michelle

frenk’s picture

I didn't correct any variable? I tried different themes, but no theme passes the icon. But you say it's a theme problem?

michelle’s picture

Did you read #13?

Michelle

frenk’s picture

Ah yes I did correct that variable. Didn't help :(

michelle’s picture

Status: Active » Fixed

I fixed the variable problem. Beyond that, the issue is probably http://drupal.org/node/819764#comment-3789562.

Michelle

Status: Fixed » Closed (fixed)

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

Status: Active » Closed (fixed)