"Add a friend" block - code?

Hi everyone,

 

I want to create and style my own "add as a friend" block for the profile page.  However, I want the block to work just like it does in the action block.  If the user is not a friend, a "add as friend" block displays.  However, if the user is a friend, it changes to a "remove friend" text.

 

If anyone has any direction on this, I would really appreciate it.  If you know the code already, I'll send you $5 via PayPal as my appreciation.

 

Thanks,

 

Brian

Quote · 2 Mar 2011

Already exists :-) Search in the Forum or in the Market... Sorry but I don't remember where I got this very useful mod...

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 2 Mar 2011

Found it: http://www.boonex.com/unity/extensions/entry/Dynamic_Befriend_Button

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 2 Mar 2011

 

Found it: http://www.boonex.com/unity/extensions/entry/Dynamic_Befriend_Button

That's not what I'm looking for.  The default installation of Dolphin 7.0.4 already has that functionality.  That mod was created before the dynamic befriend button was added to Dolphin 7.

 

I'm looking for a solution that uses the same code as the befriend button, but I want to separate it from the Actions block completely.  Then, I want to add my own style to the button.  Essentially, I want just a text link that says "Add as a Friend" and place it right underneath the end-user's thumbnail on their profile page.

 

I thought about this last night and I think that I know how to do it.  So, if I figure it out, I'll post the code.

Quote · 2 Mar 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.