Search found 38 matches

by cesteban
2019-10-29 22:17
Forum: Tips And Tricks
Topic: Not access to Update Profile
Replies: 0
Views: 1565

Not access to Update Profile

Hi,

How can I restrict the Update Profile option in the membership_profile.php file?

Regards
by cesteban
2019-10-10 18:05
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Thanks, I could fix it with this:

$options->QueryWhere=" WHERE `Pagos`.`Casa` = 30";

It's working

Best regards
by cesteban
2019-10-10 15:53
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Now I get this, but still without records

[QueryWhere] => WHERE Casa = 30

Regards
by cesteban
2019-10-10 15:18
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Thanks The information I obtain before including the statement is: [QueryWhere] => And after including the statement is: [QueryWhere] => Casa = 30 But I still get the error that no records are found The information does not show me the SQL statement to know how the request for records is being made ...
by cesteban
2019-10-08 17:57
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Hi,

I already tried it but it doesn't work

Is there any way to see the SQL statement which is sent, in order to see how complete the SQL statement?

Thank you
by cesteban
2019-10-07 22:10
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Sorry, It's not working

This is my test code:

function Pagos_init(&$options, $memberInfo, &$args){
$options->QueryWhere="WHERE Casa = 30";
return TRUE;
}

and I get nothing, if I run the statment:

Select * from Pagos WHERE Casa = 30

I got records


Regards
by cesteban
2019-10-07 20:02
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Thanks

In which file I include the option?

Regards
by cesteban
2019-10-07 17:54
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Re: Modify the original DV SQL

Sorry, the Table View

I need to modify the Query to add a Where condition!!!

Regards
by cesteban
2019-10-07 16:29
Forum: Advanced Customizations > Hooks
Topic: Modify the original DV SQL
Replies: 16
Views: 1148

Modify the original DV SQL

Hello, How can I modify the SQL statement of a detail view to add an additional search where condition? I don't want to use filters because the user can remove them and I need him not to have access to other records The option to access their own records does not help me because the user is not alwa...
by cesteban
2019-06-20 17:15
Forum: Getting Started
Topic: Google Map
Replies: 3
Views: 462

Re: Google Map

Hi,

I can already solve it but now I have problems with the key, the message is

"Google Maps Platform rejected your request. This API project is not authorized to use this API."

Thanks
by cesteban
2019-06-20 17:10
Forum: Getting Started
Topic: Google Map
Replies: 3
Views: 462

Google Map

Hi,

I'm using the Google Map media option and when I enter the Google Maps string, it tells me "invalid URL"

I'm copy exactly the string from the Google maps site and i always have the "Invalid URL" message

Thanks
by cesteban
2019-05-22 19:00
Forum: Getting Started
Topic: Sign in as admin
Replies: 2
Views: 391

Sign in as admin

What is the link to sign in you directly as administrator if you have problems?

regards
by cesteban
2019-05-20 22:59
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Thanks to Alejandro Landini Now is working The code is: function Pagos_dv($selectedID, $memberInfo, &$html, &$args){ // current user is not an Adminis group? $mi=$memberInfo['group']; if ($memberInfo['group'] != 'Admins'){ $html.="<script>\$j('#Checado').attr('disabled', true);</script>"; } } Best r...
by cesteban
2019-05-20 21:40
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Hi, this is the code: (I changed some names doing tests, and I tried disable the checkbox) function Pagos_dv($selectedID, $memberInfo, &$html, &$args){ /* current user is not an Adminis group? $mi=$memberInfo['group']; if($memberInfo['group'] != 'Admins'){ $html.=<<<EOC <script> \$j(function() { \Ch...
by cesteban
2019-05-20 16:30
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

I thing the If isn't working!!!
by cesteban
2019-05-20 15:34
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Sorry

it isn't a error is working the function from de console, but not from the php file
by cesteban
2019-05-20 15:31
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Now I ran again the funcion $j('label[for="Checado"]').hide(); An I got this message n.fn.init [label, prevObject: n.fn.init(1), context: document, selector: "label[for="Checado"]"] 0: label context: document length: 1 prevObject: n.fn.init [document, context: document] selector: "label[for="Checado...
by cesteban
2019-05-20 15:12
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Thanks,

I copied the code exactly from the file

I checked about the user group but in both cases with a user from the administrator group ornot the field it is not hiding

Today I will make another tests and but really I can understand what's happen

Thanks for your support and help
by cesteban
2019-05-16 23:23
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Thanks,

This is the code

function Pagos_dv($selectedID, $memberInfo, &$html, &$args){

/* current user is not an administrador group?

if($memberInfo['group'] != 'administrador'){
$html.=<<<EOC
<script>
\$j(function() { \$j('label[for="checado"]').hide(); })
</script>
EOC;
}
}
by cesteban
2019-05-16 19:04
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

If I run from the console this comand

$j('label[for="checado"]').hide();

The checkbox and the label these disappear

and with this command

$j('label[for="checado"]').sown();

both appear

But if I include the code at the Pagos.php this dont works

Regards
by cesteban
2019-05-16 18:33
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

I tried this from the console and always get the value "1", checked or not

j('#checado').val();

This is the code for the checkbox

<input type="checkbox" name="checado" id="checado" value="1">

Regards
by cesteban
2019-05-16 18:16
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Thanks pböttcher

Now the page is displaying but the function $j('#checado').hide(); is not working

Regardless of whether the user belongs to the 'administrador' group or not, the checkbox always appears

Regards
by cesteban
2019-05-15 21:47
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Re: Hide field depending user group

Thanks

I copied exacttly the sample code from the suport page from AppGini

Regards
by cesteban
2019-05-15 19:02
Forum: Tips And Tricks
Topic: Hide field depending user group
Replies: 20
Views: 3150

Hide field depending user group

Hi, I'm trying to hide a checked field if the user isn't in the "adminstrador" group I tried with this code but the detail view shows me blank function Pagos_dv($selectedID, $memberInfo, &$html, &$args){ /* current user is not an administrador group? if($mi['group'] != 'administrador'){ $html .= <<<...