By Richard on Friday, 04 November 2016
Likes 0
Views 627
Votes 0
After updating to ES2 the integrated profile header now appears above every blog post.

I like the layout of the profile header and would like to place it where the 'About the Author section is and remove the current 'About the Author' information as it is a duplication of the profile content.

Step 1 - Remove 'About the Author Section
Step 2 - Move the integrated EasySocial profile header where the 'About the Author' section was.

How do I do that?
Hi Richard,

Regarding you inquiry, unfortunately, there is no setting to change the EasySocial profile header into the author section (About the author) currently. I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in http://stackideas.com/support and difficult to achieve.

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Friday, 04 November 2016 11:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I will just leave the About the Author Section as it is then.

How do I stop the EasySocial Profile Header from appearing in EasyBlog?
·
Friday, 04 November 2016 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
There is no such settings currently but you can if you want to, override the structure in /components/com_easyblog/themes/wireframe/structure/default.php and remove the codes below

[gist]
<?php if ($miniheader) { ?>
<div id="es" class="es">
<?php echo $miniheader; ?>
</div>
<?php } ?>
[/gist]
·
Friday, 04 November 2016 19:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark, I will do that.

It really does look neat after an article, for example see how it is automatically (I did not change any JReviews settings after ES2 update) placed there in a JReviews Listing on the site compared to a blog post where it duplicates the 'About the Author' content and contains more options as well.

Perhaps something to look at/change in a future update.
·
Friday, 04 November 2016 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
That would be great! Perhaps you can submit in our Voice page so our developers can keep tracks the features that we can implement in the future release
https://stackideas.com/voices/easysocial
·
Friday, 04 November 2016 19:45
·
0 Likes
·
0 Votes
·
0 Comments
·
The feature request is now added here in the Voices List.

I have also moved this thread to the ES Features Section.
·
Friday, 04 November 2016 20:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for voice it out Richard
·
Friday, 04 November 2016 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
I removed the code from the ..../structure/default.php file, but would like to place it just after the text content in the blog and before the social icons and rating (see image).

What file and where in the file do I place the code to place it there?
·
Monday, 07 November 2016 07:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

The file for entry post is :
JoomlaFolder\components\com_easyblog\themes\wireframe\blogs\entry\default.php
Maybe you try it out

You're suggested to backup the file that you want to edit beforehand for precaution
·
Monday, 07 November 2016 11:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I copied the file to override .../templates/uber/html/com_easyblog/blogs/entry/default.php and entered the above code here:


<?php echo $this->renderModule('easyblog-after-content'); ?>

<?php if ($post->fields && $this->entryParams->get('post_fields', true)) { ?>
<?php echo $this->output('site/blogs/entry/fields', array('fields' => $post->fields)); ?>
<?php } ?>
</div>

<?php if ($miniheader) { ?>
<div id="es" class="es">
<?php echo $miniheader; ?>
</div>
<?php } ?>

<?php if ($this->entryParams->get('post_social_buttons', true)) { ?>
<?php echo $this->output('site/blogs/part.socialbuttons', array('post' => $post)); ?>
<?php } ?>


It should appear just above the social buttons but nothing happens.

I also tried adding the code to the core file with no success. Is there something else I should do to make it appear or is there another file to use?
·
Tuesday, 08 November 2016 22:34
·
0 Likes
·
0 Votes
·
0 Comments
·
The variable $miniheader is not available on the /entry/default.php file so you can't really render anything here. Your could should look something like this,

[gist]
<?php
$exists = EB::easysocial()->exists();

if ($exists) {
ES::initialize();
$user = ES::user($post->getAuthor()->id);
?>
<div id="es" class="es">
<?php echo ES::themes()->html('html.miniheader', $user); ?>
</div>
<?php
}
?>
[/gist]
·
Tuesday, 08 November 2016 22:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect Mark, thank you, I added it to the override file and it works very well ( see here ) and keeps it consistent with the JReviews Listings on the site.

In case anyone wants to replace the 'About the Author' Section at the bottom of the blog with the Profile Header from EasySocial, using Mark's code this is what I did:

1. Created override blogs and entry folders for a path ../templates/uber/com_easyblog/blogs/entry/
2. Moved the default.php file from ../components/com_easyblog/themes/wireframe/blogs/entry/default.php to the override folder above.
3. Deleted the 'About the Author' code in the override file:

<?php if ($this->entryParams->get('post_author_box', true)) { ?>
<?php echo $this->output('site/blogs/entry/author', array('post' => $post)); ?>
<?php } ?>

4. Replaced the 'About the Author' code with the Profile Header Code in the Override file:

<?php
$exists = EB::easysocial()->exists();

if ($exists) {
ES::initialize();
$user = ES::user($post->getAuthor()->id);
?>
<div id="es" class="es">
<?php echo ES::themes()->html('html.miniheader', $user); ?>
</div>
<?php
}
?>

5. The removal and insertion is made around line 206 just after the navigation code:

<?php echo $this->output('site/blogs/entry/navigation'); ?>
</div>
6. The removal of 'About the Author' code also removes the 'latest posts' section but these can be found by clicking on the Applications drop down menu on the right hand side of the Profile Header and selecting 'Blogs' to go to the EasySocial Profile Menu for the blogger.
·
Tuesday, 08 November 2016 23:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now.
·
Wednesday, 09 November 2016 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post