By Curzi fernando on Tuesday, 15 May 2018
Posted in General Issues
Replies 13
Likes 0
Views 587
Votes 0
hi I would like to understand why I do not display these positions in joomla when I create a form
https://stackideas.com/docs/easysocial/administrators/module-positions/profile-position
Hey Curzi,

Hm, not really sure what do you mean by when "you create a form". Do you mean the custom fields when editing the profile?

The link at https://stackideas.com/docs/easysocial/administrators/module-positions/profile-position renders the profile headers on profile page and not edit profile.
·
Tuesday, 15 May 2018 21:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Do not worry, I solved the problem with the positions and another I would like to retrieve the custom STILE checkbox field inside the module in the es-profile-before-name position

I'm using a sourcecode extension to insert custom php html modules inside the html modules
I entered this code as documentation

[gist]
<! - You can place html anywhere within the source tags ->


<script language = "javascript" type = "text / javascript">
// You can place JavaScript like this

</ Script>
<? Php
include_once (JPATH_ADMINISTRATOR. '/components/com_easysocial/includes/easysocial.php');

// Assuming that $ is the id of the user.
$ user = ES :: user ($ id);

$ address = $ user-> getFieldValue ('STYLE');

echo $ address-> address;

?>
[/gist]


it does not work do you give me a hand?
·
Tuesday, 15 May 2018 22:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm working on the recovery of the style but I always get the value of the user id my on all user profiles
·
Tuesday, 15 May 2018 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
In your code, you are referring to the $id, where are you obtaining the $id from?
·
Tuesday, 15 May 2018 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
I give another example to make myself understood I refer to custom fields but this example refers to the username

{source}
<!-- You can place html anywhere within the source tags -->


<script language="javascript" type="text/javascript">
// You can place JavaScript like this

</script>
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');

$my = ES::user();

echo $my->getName();

?>
{/source}

here I recover the username of my profile and not the username of the profile I'm viewing I would do it for the custom fields, I would like to display the username and custom field of the profile I'm viewing
·
Tuesday, 15 May 2018 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Curzi,

Can you try the code below, and see how it goes?

{source}
<!-- You can place html anywhere within the source tags -->


<script language="javascript" type="text/javascript">
// You can place JavaScript like this

</script>
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$id = $this->input->get('id', 0, 'int');

$my = ES::user($id);

echo $my->getName();

?>
{/source}


You're suggested to backup the file that you want to customize beforehand for precaution
·
Wednesday, 16 May 2018 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I solved with this code

{source}
<!-- You can place html anywhere within the source tags -->


<script language="javascript" type="text/javascript">
// You can place JavaScript like this

</script>
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$userId = JFactory::getApplication()->input->getInt('id');
$key = 'STILE';
$my = FD::user($userId);
$fieldData = $my->getFieldValue($key);
echo "<a href='/index.php?option=com_easysocial&view=search&layout=advanced&criterias[0]=STILE|checkbox&operators[0]=contain&conditions[0]='$fieldData'&Itemid=518&lang=it'><strong>".$fieldData."</strong></a>";

?>
{/source}



the problem is another I can not understand why the custom positions like: es-profile-sidebar-bottom do not work well

I'm trying to insert the online user forms, recent users but they are not queued in the set position it makes me visualize only 1 module seems to be some bugs
·
Wednesday, 16 May 2018 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
even this position does not work

es-dashboard-sidebar-bottom
·
Wednesday, 16 May 2018 12:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Curzi,

I''m not really sure what you mean 'they are not queued in the set position'
But I've tried to use leaderboard module for the es-profile-sidebar-bottom position seems to display correctly http://take.ms/UyLDy
Perhaps, you are referring to your custom module, may I know which custom module that you've created to display in that position?
·
Wednesday, 16 May 2018 15:52
·
0 Likes
·
0 Votes
·
0 Comments
·
I mean that if you insert more modules in these positions they are not shown I refer to the modules recent user, online user, suggestion user,
·
Wednesday, 16 May 2018 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Curzi,

I think you've misunderstood with the position in the EasySocial, where if you assign it in the position: es-profile-sidebar-bottom
it will only display in the profile page, not in other view. I've temporary shows the module title, where the suggestion user and recent user module was shown correctly: http://take.ms/5zLNh
But for the online user, it will only shows if there is online user in the site, if not the module will not shows in the position.
·
Wednesday, 16 May 2018 19:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post