By darknemo on Tuesday, 27 May 2014
Posted in General Issues
Replies 19
Likes 0
Views 538
Votes 0
I Want to bring basic information about the group right away, and under it is the stream.
Without more buttons.
Is that possible?
forgive me for my english again
Hello,

Seriously, please refrain from posting vulgarity in your posts, we have every rights to not provide support if you do not know how to behave yourself. Secondly, we do not provide support for customizations. Our support policy has clearly outlined this, http://stackideas.com/support . We can only guide you to where you should be placing your customizations.

You can't just copy the codes from info.php because these variables are not exposed on the group's view. If you really need to copy the codes from info.php, you will then need to add the codes below into your theme file,


// Get the custom fields steps.
// Get the steps model
$stepsModel = Foundry::model( 'Steps' );
$steps = $stepsModel->getSteps( $group->category_id , SOCIAL_TYPE_CLUSTERS , SOCIAL_PROFILES_VIEW_DISPLAY );

// Get the fields library
$fields = Foundry::fields();

// Enforce privacy to be false for groups
$fields->init(array('privacy' => false));

$fieldsModel = Foundry::model( 'Fields' );
$incomplete = false;

// Get the custom fields for each of the steps.
foreach( $steps as &$step )
{
$step->fields = $fieldsModel->getCustomFields( array( 'step_id' => $step->id , 'data' => true , 'dataId' => $group->id , 'dataType' => SOCIAL_TYPE_GROUP , 'visible' => SOCIAL_PROFILES_VIEW_DISPLAY ) );

// Trigger onDisplay for custom fields.
if( !empty( $step->fields ) )
{
$args = array( $group );

$fields->trigger( 'onDisplay' , SOCIAL_FIELDS_GROUP_GROUP , $step->fields , $args );
}

$step->hide = true;

foreach( $step->fields as $field )
{
// If the key output is set but is empty, means that the field does have an output, but there is no data to show
// In this case, we mark this profile as incomplete
// Incomplete profile will have a info displayed above saying "complete your profile now"
// If incomplete has been marked true, then no point marking it as true again
// We don't break from the loop here because there is other checking going on
if( isset( $field->output ) && empty( $field->output ) && $incomplete === false )
{
$incomplete = true;
}

// As long as one of the field in the step has an output, then this step shouldn't be hidden
// If step has been marked false, then no point marking it as false again
// We don't break from the loop here because there is other checking going on
if( !empty( $field->output ) && $step->hide === true )
{
$step->hide = false;
}
}
}
·
Thursday, 29 May 2014 11:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello darknemo,

You should actually use the template overriding feature in EasySocial Learn more about it here, http://docs.stackideas.com/administrators/templating/template_overrides
·
Tuesday, 27 May 2014 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
tnx!
download file item.php in folder group - its work!
but how i can insert main information in item.php?
i try to insert from file info.php - does not work
·
Tuesday, 27 May 2014 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, sorry but I don't really understand you here. There's so many item.php and info.php around Which particular file are you referring to?
·
Wednesday, 28 May 2014 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, I want to place my additional fields over the activity stream & delete "more" link.. all on one page
·
Wednesday, 28 May 2014 01:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello darknemo,

If that's the case you need to override the stream's theme file which is in /themes/wireframe/stream/default.item.php
·
Wednesday, 28 May 2014 13:17
·
0 Likes
·
0 Votes
·
0 Comments
·
..
in GROUP tmpl..
stream/default.item.php change in all stream tmpl`s
·
Wednesday, 28 May 2014 14:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark
·
Wednesday, 28 May 2014 14:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Reminds me of a really cool idea I had the other day. The idea is if custom fields had three display options:

1. In the about section (this is currently where they display)

2. Display right below the avatar/cover area. This way we can quickly display important fields to the user (right now you can do this with gender, website, and a few others only)

3. Display set as an App. This would display the custom field sets as an app. So for example from the profile you could quickly see certain attributes of a person quickly. Not as needed, but still a cool idea.

These principles could then be applied to a group page so that accomplishing the layout you mentioned would be easy peasy.
·
Wednesday, 28 May 2014 15:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh!
I need a second option of your answer
(right now you can do this with gender, website, and a few others only) - Do not quite understand. How can now set it up?

tnx!
·
Wednesday, 28 May 2014 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Backend > EasySocial > Themes > (theme you are using) > Profile

Here is a screen shot showing what I mean:



Notice how there are a few custom fields that you can choose to display on the profile? Why limit them to just those few? With a bit of careful thinking I believe we could display as many as the admin wants. The same principles could be applied to groups.
·
Wednesday, 28 May 2014 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand, but in group settings it is not present ..
·
Wednesday, 28 May 2014 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
I do not understand why hide important information groups such as the address and phone number behind the "more button"

it is obvious that it should be located immediately..
·
Wednesday, 28 May 2014 17:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

If you want to alter the layout of the group item view, you should do it in /themes/wireframe/groups/item.php and look for the codes below,


<div class="es-content-wrap" data-es-group-item-content>
<?php if( $contents ){ ?>
<?php echo $contents; ?>
<?php } else { ?>
<?php echo $this->includeTemplate( 'site/groups/item.content' ); ?>
<?php } ?>
</div>


You can then add your own custom codes here. The reason why we do not display the group info above the stream is simply because that would push your stream down and stream is actually a key element of a social network, pushing it down would also mean that you are putting less importance for the stream
·
Thursday, 29 May 2014 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
WHAT CODE I need insert in my index.php to display group additional fields? I'm fucking tired

if i insert all code of info.php - which is responsible for calling infrmatsii - nothing comes
·
Thursday, 29 May 2014 03:40
·
0 Likes
·
0 Votes
·
0 Comments
·
That was the first time I saw vulgarity on this board. My instant reaction was "oh boy, Mark isn't going to be happy". I personally don't swear at all in my personal life. I try to keep a clean conscience. Anyways, pardon the thread drift.
·
Thursday, 29 May 2014 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I think some of you here are "over" expecting our support and while I do understand that most of the time we try to help as much as we can but this is really done out of good faith and I hope most of you would understand. We have every right to provide a really silent answer "Sorry, we do not provide customizations support" but we never really done this unless your asking for a complete customization service or something that takes plenty of our hours.

Thanks for understanding and hope that we could build a better community around
·
Thursday, 29 May 2014 22:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, almost never have I requested a custom modification since I knew this makes support for those modifications a lot harder. I give out a lot of requests, but only expect the ones that you folks deem worthy and have the time to do. My suggestions have the best interest for EasySocial, I haven't made a single request to integrate with other components (I may have supported the Kunena plugin once there was interest).

I think I'm pretty down to earth in terms of understanding the dedication of the stacked team to take on this major project and the hundreds if not thousands of complications you folks have to deal with. For now my focus is for better standards rather than feature requests.
·
Thursday, 29 May 2014 23:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Josh, I didn't actually specifically mean anyone But what I mean was in "general" and really, we are trying our best to ensure that we deliver the best to you guys but apart from that, we cannot suit everyone's needs exactly as is because at the end of the day, you as the webmaster / programmer / developer should be responsible to undertake whats necessary to customize the app to suit your needs
·
Friday, 30 May 2014 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post