Search found 47 matches

by dannybridi
2020-02-20 08:32
Forum: Advanced Customizations > Hooks
Topic: Background image on all page AppGini 5.81
Replies: 5
Views: 1887

Re: Background image on all page AppGini 5.81

Hi Olaf, I added the following to footer-extras.php file: <?php $script_name = basename($_SERVER['PHP_SELF']); if($script_name == 'index.php' && isset($_GET['signIn'])){ ?> <style> body{ background: url("hooks/logo.jpg") no-repeat fixed center center; background-size: 60% } </style> <?php } ?> As a ...
by dannybridi
2020-02-08 21:22
Forum: Advanced Customizations > Hooks
Topic: sqlValue()
Replies: 6
Views: 208

Re: sqlValue()

Thank you both. Your answers clarified my confused mind :-)
by dannybridi
2020-02-08 20:42
Forum: Advanced Customizations > Hooks
Topic: sqlValue()
Replies: 6
Views: 208

sqlValue()

Hello, Could someone explain to me the sqlValue() function? I'm looking for a way to send an SQL statement (something like "select * from table1 where col1=123") from a hook and store the response in a variable. I thought the sqlValue function would to that, but it doesn't look like it. Is it a PHP ...
by dannybridi
2020-01-29 16:02
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

The issue seems to be resolved now, but I don't really know why or what caused it. I emptied the folder of the application on the server and uploaded a fresh regenerated copy. I can now access the Admin Area again. I tried this approach before, but the difference was that I did not first delete the ...
by dannybridi
2020-01-28 09:13
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

Olaf,
I have already tried that approach (as mentioned above), but although the user becomes admin (by changing the groupID), he does not get the "Admin Area" button! He gets to see all the tables, but not that button. It seems like only the "admin" user gets it.
Thanks
by dannybridi
2020-01-27 12:58
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

No I didn't, but I will now.
Thanks
by dannybridi
2020-01-27 12:30
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

I also tried to give another user admin rights by changing the groupID field in the membership_users table from 3 to 2, but all that changed was that now that user got access to all the tables, but not the Admin Area button. Anyone know how to manually make a user full admin?
by dannybridi
2020-01-27 12:14
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

... forgot to mention that I also changed the hash in the config.php file accordingly.
by dannybridi
2020-01-27 11:46
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

I manually changed the password for the admin account (in the membership_users table), and was able to login, but still the admin area button logs me out!
by dannybridi
2020-01-27 09:32
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

I checked the hash in the config.php file for the admin account. It was different (and much smaller in length) than the one in the membership_users table. So I copied that hash to the table. I was able to login (as before), but when I looked at the table again, the hash in the table changed back to ...
by dannybridi
2020-01-27 09:27
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

Thanks Olaf, but where do I put this code?
by dannybridi
2020-01-25 18:13
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

Yes, I did reload all the files after the upgrade.
I unfortunately do not know how to trace the $_SESSION[‘memberID’]. How do I do it?
Thanks
by dannybridi
2020-01-24 21:51
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

I thought if I copied the hash of the admin account from the table into the config.php, it would help, but it made no difference. I still could login to the application, but as soon as I click on the admin area button I get logged out.
When are the credentials in the config.php file used?
by dannybridi
2020-01-24 18:40
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

It looks like "Forgot your password" does not work for the admin account, and I cannot go into the admin area (the reason for this post) to change the password there (catch 22 situation)... As suggested above, what if I change the password (MD5 hash) of the admin account in the membership_users tabl...
by dannybridi
2020-01-24 15:33
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

You mean at the sign in page, select "Forgot your password"?
by dannybridi
2020-01-24 15:16
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

Thanks Olaf.
a) I checked and the users are not banned.
b) If I create a user and set the password as you suggest, where do I tell the application to use that user instead (which AppGini file)?
Thanks
by dannybridi
2020-01-24 08:43
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Re: Clicking on the Admin Area button logs me out!

Hi,

Thanks for your reply. Yes, I have tried all of the above. I also tried different machines and OS's (Windows, MacOS, iPad). They all show the same behavior.

Thanks
by dannybridi
2020-01-23 09:52
Forum: Getting Started
Topic: Clicking on the Admin Area button logs me out!
Replies: 23
Views: 346

Clicking on the Admin Area button logs me out!

Hello, I had not accessed the site in a while, but yesterday I logged in (as admin) and then clicked on the "Admin Area" button (to do some user/group management), but instead of taking me to the admin area, I was logged out! I tried re-generating the code, but that didn't help. I was using version ...
by dannybridi
2019-04-11 16:25
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

... and how did you insert the screenshot in the post Jan? :D I can't seem to manage.
by dannybridi
2019-04-11 16:23
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

All resolved! After reading your reply googling and playing around, I managed to resolve everything by using the following: $j('#Field1').prop('readonly', 'readonly'); /* input fields */ $j("#Field2").attr('disabled',true); /* check boxes */ setTimeout('$j("#s2id_Field3-container").select2("readonly...
by dannybridi
2019-04-10 08:19
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

Thanks Jan,
I have a very stupid and ignorant question :D :
Where should the output of the console.log() appear? I don't see it when I refresh the browser.
Thanks
by dannybridi
2019-04-09 08:03
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

Hi, I use Chrome and Edge. The code screenshot is from Notepad++. You can download the screenshots from here: https://www.dropbox.com/s/y0wjn6u6l9vn8xg/shot1.jpg?dl=0 Screenshot from Notepad++ showing the two lines that do no t work (countrykey and Gender); https://www.dropbox.com/s/8wqb7tjamepbwvf/...
by dannybridi
2019-04-08 08:24
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

Hi, My Participants table has the following two fields: countrykey which calls on a lookup table; and Gender which allows a selection between Male and Female (not lookup) So I added the following, but they both don't work: $j("#countrykey-container").attr('disabled',true); $j("#Gender-container").at...
by dannybridi
2019-04-07 20:59
Forum: Advanced Customizations > Hooks
Topic: Readonly, but not for a specific group
Replies: 25
Views: 1908

Re: Readonly, but not for a specific group

Ok. Now that this is fixed for input fields, how can I do it also for dropdowns and checkboxes? :D