Forum Activity for @developer-networks

Developer Networks
@developer-networks
12/17/22 07:58:37PM
530 posts

Deleting extra profiles also deleted the master admin account...


Jamroom Developers

Thanks Paul, my PHP Storm is showing I was using 6.5.13. When trying to re create the issue I clicked on the:
ACP wheel => Users => Profile Browser

Then on the list of profiles I clicked the delete button to the right and it completely removed the only master admin user account associated with the extra profile I was deleting.


To re create the problem..I have re installed Jamroom 6.5.13 and signed up with an admin account and created 2 extra profiles associated with the admin account.

I have added music to them and deleted one of these new extra profiles using the delete button located on the "profile browser" page and YES it did in fact remove the only admin user account on the system rendering the Jamroom system forever inoperable with no admin.

The other profiles were left active but the master admin user account was deleted from the system when removing one of the extra profiles.

My opinion is that this is a critical bug in that it does not function properly for Jamroom interoperability.

It should self-check so that "the only" in most cases... master admin user account can not be deleted or removed locking themselves out because of deleting an extra profile linked to the user.

The Jamroom admin should be asked if they want to remove user with the delete profile action.

Jamroom systems allow multiple profiles under users so naturally it should allow profiles to be deleted with or without removing the user.

Currently the Jamroom profile delete action was set up with a warning label which pops up saying to proceed with profile delete action your user account associated will be deleted....

which we found out can render all the other associated profiles and the entire Jamroom administration system dead and inactive if its deleting the only connected master admin account..

put checks and balances in place to make sure there is always a master admin account and

Replace the warning question with:

=> Do you wish to also delete the user account associated with this profile?

That I believe would be the correct right best way to do that.

Thanks


Merry Christmas 2 All You Guys!!!

Glad to help

C98E448D-12D5-4D30-8997-406585C6FBB6_4_5005_c.jpeg C98E448D-12D5-4D30-8997-406585C6FBB6_4_5005_c.jpeg - 26KB

updated by @developer-networks: 12/18/22 01:00:52AM
Developer Networks
@developer-networks
12/16/22 08:44:40PM
530 posts

Deleting extra profiles also deleted the master admin account...


Jamroom Developers

Noticed a problem today setting up my Jamroom site. I logged in as the admin account which is the first account created and I created 3 additional profiles also owned by the admin account and I uploaded music to those profile accounts for testing.

I decided to delete one of those profiles however it also deleted and removed the entire admin account connected to the jamroom system and now rendering the system with out any admin account..

deleting the extra profiles removed the admin account and I cant log in with out completely starting over. The system should check if the profile that is being deleted has other profile accounts connected before its owner is removed... especially master admin accounts.
updated by @developer-networks: 03/19/23 10:11:48PM
Developer Networks
@developer-networks
06/19/20 08:08:50PM
530 posts

Aparna tool


Jamroom Developers

Im just going to manually write the module. I loved this tool for prototyping ideas and getting up and running quickly.

it was a very cool tool. sad to see it go.
Developer Networks
@developer-networks
06/19/20 03:14:21AM
530 posts

Aparna tool


Jamroom Developers

went to use the jrAparna tool today and instead of creating it on submit the ajax hangs.

I was able to locate this error.

error: jrCore_checktype: invalid type: user_name

I have checked my developer credentials and everything seems correct.

I have cleared out the form and tried different module names but it keeps hanging with this error.

the post is saving to the database and seems to pass the form data but stops during the response with the error and and never creates the module.

updated by @developer-networks: 09/17/20 09:40:38PM
Developer Networks
@developer-networks
08/07/19 10:15:37PM
530 posts

Shopping cart pass specific file in sale


Jamroom Developers

I see what your saying but not really because if my module was selling Tshirts lets say and depending on the size selected the end user would pay a different price for size and also would recieve a different downloadable file based on selection then quickly run in to this problem.

Since my module has multiple different downloadable files uploaded to the item and depending on the sale there is a problem if I followed your example. It would plague the shopping catalog list with different versions of the same item.

If i had to upload an item of the same Tshirt for every single different size for each file download the end users would have to sort the list through 25 different versions of the same shirt. To simplify their shopping experience I need to be able to just pass specific files related to the item sold to deliver the variable file options for the item just like other online markets do.

I was hoping you would say passing something like this would do it.

<a href="" onclick="jrPayment_add_to_cart('myCoffee','{$item._item_id}','coffee_small_price','small_coffee.zip', )">{jrCore_icon icon="cart"}{$item.coffee_small_price}</a>


Im able to get the shopping cart sale to show the small coffee in the sale or large coffee based on selection with my module during sale but how can I associate that properly so the right downloadable file is passed or included in the sale here. All three files are uploaded to the item and based on the version purchased i am trying to allow only the end user only access to the correct downloadable file.
updated by @developer-networks: 08/07/19 10:44:38PM
Developer Networks
@developer-networks
08/07/19 08:30:10AM
530 posts

Shopping cart pass specific file in sale


Jamroom Developers

I have items in my module with three different download options. Small medium and large files to download. I am able to pass the prices to the shopping cart but how do I pass the individual downloadable file during the sale?

well call this module coffee with small medium and large cups available for download.

   <a href="" onclick="jrPayment_add_to_cart('myCoffee','{$item._item_id}','coffee_small_price')">{jrCore_icon icon="cart"}{$item.coffee_small_price}</a>

I need to allow only the small coffee file in this item during this sale.

How would I pass that to the shopping cart as well?

small_coffee.zip
medium_coffee.zip
large_coffee.zip are all uploaded to the item.

During this sale I am trying to pass small_coffee.zip file only and contain the sale to only allow small_coffee.zip download.


updated by @developer-networks: 11/20/19 04:27:11AM
Developer Networks
@developer-networks
07/31/19 02:24:06AM
530 posts

CRI: unable to retrieve quota settings for module: myModule


Jamroom Developers

Yes that did it got rid of the CRI error.


Thank you!



updated by @developer-networks: 07/31/19 02:24:52AM
Developer Networks
@developer-networks
07/31/19 01:11:46AM
530 posts

CRI: unable to retrieve quota settings for module: myModule


Jamroom Developers

I apologize I accidentally copied and posted the schema file in the post above here.

I do have that file in the module as well as I noted earlier.

But the quota file in the module looks like this. I changed the name to myOranges.


<?php


// make sure we are not being called directly
defined('APP_DIR') or exit();

/**
 * quota_config
 */
function myOranges_quota_config(){
    return true;
}

What is the meaning of the CRI error? The code looks right and nothing is showing in my error logs.


also it did create the item and item key in the database for the module.
updated by @developer-networks: 07/31/19 01:29:47AM
Developer Networks
@developer-networks
07/31/19 01:05:40AM
530 posts

CRI: unable to retrieve quota settings for module: myModule


Jamroom Developers

beginning of this post in the code. That is copied from quota.php

<?php
// make sure we are not being called directly
defined('APP_DIR') or exit();

/**
 * db_schema
 */
function myModule_db_schema(){
    jrCore_db_create_datastore('myOranges', 'orange');
    return true;
}

when I click on the module in the ACP I get this error:

Quote:
error says:
CRI: unable to retrieve quota settings for module: myOranges

updated by @developer-networks: 07/31/19 01:09:05AM
Developer Networks
@developer-networks
07/31/19 12:31:13AM
530 posts

CRI: unable to retrieve quota settings for module: myModule


Jamroom Developers

Your right, I’m using module just as the example here for the post.

"myModule" is named something like you suggest it could be anything.. "myOranges" orange

I posted the exact quota.php file here to see there is no reason for the error as far as I can see but the system is throwing this error in my module development.


updated by @developer-networks: 07/31/19 12:59:48AM
1