By Kevin Ortman on Wednesday, 01 January 2014
Posted in General Issues
Replies 3
Likes 0
Views 643
Votes 0
Is there a supported way to remove the gmaps functionality of story sharing?

I've disabled the location app, but the standard scripts still try to load GMaps.
I've been able to hack the javascript and story view to remove this functionality, but I'm confident that this hack would not be supported (and would be undone next time I upgrade).
Hello Kevin,

Temporarily, what you can do is to edit the file /media/com_easysocial/apps/user/locations/locations.php and remove the codes below,


// Create a new panel
$panel = $story->createPlugin( 'locations' , 'panel' );

// Panel buttons
$theme = Foundry::get( 'Themes' );

$panel->button->html = $theme->output( 'themes:/apps/user/locations/story/panel.button' );
$panel->content->html = $theme->output( 'themes:/apps/user/locations/story/panel.content' );

// Panel script
$script = Foundry::get('Script');
$panel->script = $script->output('apps:/user/locations/story');

return $panel;


I will code it in the next version so that if the app is disabled, it should not render these codes at all. By the way, why would you want to remove the location functions? It's pretty cool isn't it?
·
Wednesday, 01 January 2014 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your response, Mark! Yes, the location option is very cool, but some folks may have privacy concerns.
I appreciate you coding it into the next version - if it's disabled in one portion, it makes a lot of sense to keep it consistent throughout.

As a side note, I want to commend your team on producing very clean, readable, and logical code. Due to the effort you put in on this department, creating apps is a breeze and debugging code super simple.

Best regards,
Kevin
·
Thursday, 02 January 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

On behalf of Mark, thank you so much for your compliments and indeed we structured our framework in the perspective of how user would want to write it.
·
Thursday, 02 January 2014 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post