By HMED on Saturday, 01 August 2015
Posted in General
Likes 0
Views 1K
Votes 0
Hi,

i am looking to add a 4th position under stream on profil pages, how it can be done please ?

regards
What app is this that you are using? You need to modify the app's config.json file and also add a position in your theme file. You should look at the example codes on how one can render a widget position.

Here's one sample from the dashboard page,


<?php echo $this->render('widgets' , SOCIAL_TYPE_USER , 'dashboard' , 'sidebarTop' ); ?>
·
Saturday, 01 August 2015 23:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
its a jreviews app, they telled me that the positions are defined in easysocial.

here is one app, can you help me to show the content after the stream ?
·
Sunday, 02 August 2015 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
I am really sorry but we do not provide support for customizations.
·
Sunday, 02 August 2015 13:17
·
0 Likes
·
0 Votes
·
0 Comments
·
i understand i will try to do it my self

i tryed to search in the admin.json file and didnt find the above code :

[
{
"title" : "Main Setup",
"fields" :
[
{
"label" : "Display as",
"name" : "display_type",
"type" : "select",
"default" : "widget",
"options" :
[
{"title": "Widget", "value": "widget"},
{"title": "Application Canvas", "value": "app-canvas"}
]
},
{
"label" : "Widget Position",
"name" : "widget_position",
"type" : "select",
"default" : "above-stream",
"options" :
[
{"title": "Above Stream", "value": "above-stream"},
{"title": "Sidebar Top", "value": "sidebar-top"},
{"title": "Sidebar Bottom", "value": "sidebar-bottom"}
]
},
{
"label" : "Number of Reviews",
"tooltip" : "A link to view all reviews will appear at the top of the list.",
"name" : "list_limit",
"type" : "text",
"class" : "input-mini",
"default" : 5
}
]
}
]
·
Sunday, 02 August 2015 18:08
·
0 Likes
·
0 Votes
·
0 Comments
·
The code which I provided is from the dashboard theme file in /components/com_easysocial/themes/wireframe/dashboard/default.php
·
Sunday, 02 August 2015 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah thank you, i have it under my hands now
can you tell me please where i can add a new position ?



<?php
/**
* @package EasySocial
* @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasySocial is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<div class="es-dashboard" data-dashboard>
<div class="es-container">
<a href="javascript:void(0);" class="btn btn-block btn-es-inverse btn-sidebar-toggle" data-sidebar-toggle>
<i class="ies-grid-view ies-small mr-5"></i> <?php echo JText::_( 'COM_EASYSOCIAL_SIDEBAR_TOGGLE' );?>
</a>
<div class="es-sidebar" data-sidebar data-dashboard-sidebar>
<?php echo $this->render('module' , 'es-dashboard-sidebar-top' , 'site/dashboard/sidebar.module.wrapper' ); ?>

<?php echo $this->render('widgets' , SOCIAL_TYPE_USER , 'dashboard' , 'sidebarTop' ); ?>

<?php echo $this->includeTemplate( 'site/dashboard/sidebar.feeds' ); ?>

<?php echo $this->render('module' , 'es-dashboard-sidebar-after-newsfeeds' , 'site/dashboard/sidebar.module.wrapper' ); ?>

<?php if( $this->template->get( 'dashboard_feeds_groups' , true ) ){ ?>
<?php echo $this->includeTemplate( 'site/dashboard/sidebar.groups' ); ?>
<?php } ?>

<?php if ($this->template->get('dashboard_feeds_events', true)) { ?>
<?php echo $this->includeTemplate('site/dashboard/sidebar.events'); ?>
<?php } ?>

<?php if ($this->template->get('dashboard_show_apps', true)) { ?>
<?php echo $this->includeTemplate( 'site/dashboard/sidebar.apps' ); ?>
<?php } ?>

<?php echo $this->render( 'widgets' , SOCIAL_TYPE_USER , 'dashboard' , 'sidebarBottom' ); ?>

<?php echo $this->render( 'module' , 'es-dashboard-sidebar-bottom' , 'site/dashboard/sidebar.module.wrapper' ); ?>
</div>

<div class="es-content" data-dashboard-content>

<i class="loading-indicator fd-small"></i>

<?php echo $this->render( 'module' , 'es-dashboard-before-contents' ); ?>

<div data-dashboard-real-content>

<?php if( $contents ){ ?>
<?php echo $contents; ?>
<?php } else { ?>
<?php echo $this->includeTemplate( 'site/dashboard/feeds' ); ?>
<?php } ?>
</div>

<?php echo $this->render( 'module' , 'es-dashboard-after-contents' ); ?>
</div>
</div>
</div>
·
Monday, 03 August 2015 04:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jan,

I'm sorry for the confusion here. If you want to add in your profile view, the file you should be looking at this ../components/com_easysocial/themes/wireframe/profile/default.php. And there you can see all the render('widget codes. That is where the rendering widget happens. For example this code:

<?php echo $this->render( 'widgets' , 'user' , 'profile' , 'aboveHeader' , array( $user ) ); ?>


This means, it will find the function aboveHeader in your app (../reviewme/widgets/profile/view.html.php) and render the view. You can play around with this to have better understanding about this render position.

http://stackideas.com/docs/easysocial/developers/applications/widgets
·
Monday, 03 August 2015 11:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Faris, i tryed but little bit hard for me to understand how its working

i will try to do it in another way, can we show ES apps in a custom joomla module to show it on sidebat or any other template position ?
·
Monday, 03 August 2015 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jan,

can we show ES apps in a custom joomla module to show it on sidebat or any other template position ?
I'm sorry but it is not possible.
·
Monday, 03 August 2015 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Faris

(sorry i'd created another topic, you can delete it)
·
Monday, 03 August 2015 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem
·
Monday, 03 August 2015 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post