By Girolamo Toscano on Friday, 22 May 2015
Posted in General Issues
Replies 14
Likes 0
Views 816
Votes 0
Hello !

Thanks for your great forum !
I have a question : is it possible to add an existing field (website) in the area in blue (see attached file) ?
Which file do I modify for that ?

Thanks a lot!
Hello Girolamo,

You can go to this file ../components/com_easysocial/themes/yourTheme/profile/default.header.php and add this code:

$user->getFieldData('URL');


Please give it a try.
·
Saturday, 23 May 2015 17:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect thanks, it works better than expected
·
Tuesday, 26 May 2015 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
I would improve it, so when somebody click on the url, the url will be opened in another page.

I tried this :


<h2 class="es-profile-header-title">
<a href="<?php $user->getFieldData('URL');?>" rel="nofollow" target="_blank"><?php echo $user->getName(); echo ' - '; echo $user->getFieldData('URL'); ?></a>

</h2>



But when I click on it I am redirected on the dashboard page...

Can you help me finding what is wrong in it ?
Thanks
·
Tuesday, 26 May 2015 20:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Girolamo,

I am sorry for the delay of this reply.

You need to echo the url inside the href tag. Try use the following code instead.
<a href="<?php echo $user->getFieldData('URL');?>" rel="nofollow" target="_blank"><?php echo $user->getName(); echo ' - '; echo $user->getFieldData('URL'); ?></a>
·
Wednesday, 27 May 2015 19:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ezrul,

I have tried but it doesn't work. See what happened when I click on the link :
·
Wednesday, 27 May 2015 20:40
·
0 Likes
·
0 Votes
·
0 Comments
·
following
·
Thursday, 28 May 2015 00:46
·
0 Likes
·
0 Votes
·
0 Comments
·
+1. Would love to have this functionality for profile, group and event headers.
·
Thursday, 28 May 2015 02:55
·
0 Likes
·
0 Votes
·
0 Comments
·
subscribe++
·
Thursday, 28 May 2015 02:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Subscribe as well!
·
Thursday, 28 May 2015 03:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Guys.

You add this code at line 202 in ../components/com_easysocial/themes/yourTheme/profile/default.header.php file to add user website link on profile header
 <a href="<?php echo $user->getFieldData('URL');?>" rel="nofollow" target="_blank"></a>


http://screen.stackideas.com/2015-05-28_1637.png
http://screen.stackideas.com/2015-05-28_1638.png

Hope this help
·
Thursday, 28 May 2015 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks it works for me
·
Friday, 29 May 2015 06:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Girolamo

You're welcome
·
Friday, 29 May 2015 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
I am trying to find the file this thread is referring to...
/components/com_easysocial/themes/yourTheme/profile/default.header.php


did i miss something? where did it go?
Or can you direct me to where it is now?
I would love to add some custom fields to the user's profile cover around the es-profile-after-info position.
Is this possible any more?
thanks for your help
·
Friday, 15 December 2017 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Scott,

Those are from a much older version of EasySocial. In the latest version, they are located in /components/com_easysocial/themes/wireframe/helpers/cover/user.php
·
Friday, 15 December 2017 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post