Jump to content
WebFlake
  • 0

[Help] (IPB) Custom Profile Field Links in Profile View


Kakarot

Question

7 answers to this question

Recommended Posts

  • 0

Ok I have what you mean .. This tutorial for twitter was written a long time ago but should still be valid.

 

 

Adding Twitter Custom Profile Field

This adds Twitter to the Contact Methods profile section.

Posted by Dazer on May 26 2009 02:47 PM
First log into your AdminCP and go to the "Members" tab. Then select "Custom Profile Fields" and click "Add Field".

Field Title: Twitter
Field Type: Text Input
Profile Group: Contact Methods

For the profile icon, I use twitter.png
However, you can use any image you like. Upload the desired image to /public/style_extra/sharelinks/ folder.
E.g. Profile Icon: /public/style_extra/sharelinks/twitter.png

Field Key: twitter
Field can be edited by the member? Yes

Remove the content from the Topic View Format area. 
If I have not mentioned the others, it's because they can be left as default smile.gif.

Now click "Add Field".


Once this is done, go to the "Look & Feel" tab and click on your main skin. Now go to Profile > customFieldGroup__contact 

Look for:
<else />
                                    {$f->parsed}
                                </if>
And replace with:
<else />
                                    <if test="cf_twitter:|:$f->raw_data['pf_key'] == 'twitter'">
                                        <a class='url' href='http://www.twitter.com/{$f->parsed}'>{$f->parsed}</a>
                                <else />
                                    {$f->parsed}
                                    </if>
                                </if>
Now click Save.
  • Upvote 1
Link to comment
Share on other sites

  • 0

I understand, to clarify I am speaking specifically to newly created profile fields. I used skype as an example because by default it links you to the account when you enter the skype account.

 

For example, I created a profile field and titled it twitter, users can enter there twitter accounts but it doesnt link them through in profile view, you can easily do this for topic view but I would like it to link people when someone views there profile & not in topic view. Your help is appreciated.

 

 

You showed aim & skype. What are you talking about now?

 

It is better for you to try something then show us what you have done and explain the problems.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...