By Loupida on Sunday, 13 April 2014
Posted in General Issues
Replies 9
Likes 0
Views 743
Votes 0
Hi there,

I've two questions :

1- Is there any way to force user to enter a strong password when registering or editing password ?
2- Is it possible people install application depending on their profile ? So, only user of specific profile can install a specific application.
Hello Loupida,

I am really sorry for the delay of this reply as it is a weekend for us here. Please find the answers to your inquiries below:


1- Is there any way to force user to enter a strong password when registering or editing password ?

Unfortunately it is not possible to restrict this currently


2- Is it possible people install application depending on their profile ? So, only user of specific profile can install a specific application.

Currently this is not possible but we do intend to enhance this in the future
·
Sunday, 13 April 2014 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I'm searching the way to get javascript code that matches to the "Install" button of some user application as Adsense. I want to restrict installation through Emerald.

I picked up this code for adsense app but it does not work : root/media/com_easysocial/apps/user/adsense/themes/default/widgets/profile/adsense.php (line 16)

I'm searching also the sql code for "Search" button inside Advanced Research form if possible.

Help please

Regards.
·
Monday, 12 May 2014 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Loupida,

I think the file that you are looking for is at /components/com_easysocial/themes/wireframe/apps/default.item.php ?
·
Tuesday, 13 May 2014 02:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark

I checked out, but i don't think so. Actually, i must retrieve only the javascript code inside tags <script>, and i must restrict some applications not all of them.

Regards.
·
Tuesday, 13 May 2014 22:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Loupida,

Sorry but I am a little lost here. Which javascript block are you referring to?
·
Wednesday, 14 May 2014 03:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I'm referring to this block (to restrict installation of Adsense application only ) :

<script type="text/javascript">
<!--
<?php echo html_entity_decode("$code\n"); ?>
//-->
</script>

Taken in : root/media/com_easysocial/apps/user/adsense/themes/default/widgets/profile/adsense.php

But i'm not sure.
·
Thursday, 15 May 2014 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Loupida,

I am sorry but I really have no idea what you are trying to achieve here. Are you trying to disallow users from clicking on the install button or are you wanting to prevent the adsense code from appearing for specific users?
·
Thursday, 15 May 2014 02:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I forgot to tell you that i'm using a component named Emerald that is a subscription one. It's integrated with ES. We can create plan in Emerald to give access to any part of the site through subscription. Emerald has many plugins to restrict access as Javascript one. It means that if user wants to access to a content that is accessible via javascript button, he must pay a plan. In our case, i want sell installation of some applications as adsense through Subscription. Since applications can be installed through "Install" button that is a javascript (i suppose, actually i'm not developper, but i can see "javascript" in the bottom when i put mouse on "Install" button), i want to set Emerald plugin to sell that part of my site.
To restrict javascript access, i must put the javascript code in Emerald plugin without <script> tags. So i'm searching this code for Adsense application.

Maybe you want i contact Emerald developper for some inquiries ?
·
Thursday, 15 May 2014 21:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Loupida,

If you would like to modify the javascript, you will need to edit the file /media/com_easysocial/scripts/site/apps/apps.js and take a look at the method here,


"{install} click" : function( el )
{
EasySocial.dialog({
content: EasySocial.ajax('site/views/apps/getTnc' ),
bindings:
{
'{cancelButton} click': function() {
EasySocial.dialog().close();
},

'{installButton} click': function(el)
{
var agreed = !self.options.requireTerms || this.agreeCheckbox().is(':checked');

if( agreed )
{
this.termsError().hide();

self.installApp();
}
else
{
this.termsError().show();
}
}
}
});
},


We are using MVC framework for javascript and we bind "click" events through the controller
·
Friday, 16 May 2014 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post