Jump to content

Andrea D.

Member
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Andrea D.

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I dont have the hook...this is why i am asking help pRieStaKos.
  2. I already have the hook i am asking help for the if statement as normal people do. Check: https://whmcs.community/topic/303408-add-a-free-product-to-cart/
  3. whole code in front please
  4. Hello, i am not a dev. Whmcs told me to make a post here for assistence. I am trying to use this code https://whmcs.community/topic/303408-add-a-free-product-to-cart/ WHMCS team told me that i have to "wrap the code inside an if statement that checks for the presence of the desired product - a match for the relevant product ID in Can someone write this IF condition for me?
  5. Hello i have tested this script but it seems that WHMCS will save as password the generated one. BUT virtualizor will create a vps with the password choosed by the user. Is there any way you can fix it? Thank you
  6. I have tested it again with the creation of the VPS and i am getting as server password the one that i have choosen... https://imgur.com/QWic1iz Is there something i am missing?
  7. Hello, thank you for your reply. I have tested this by uploading but it seems that it is not doing nothing.. https://imgur.com/G4WBzrM (order accept view)
  8. Hello, i need a PreModuleCreate that generate a strong password that will be used in virtualizor module. WHMCS Support provided me this hook but it gave this error https://imgur.com/AW82lbV <?php function hook_StrongPasswordGenerator($vars) { $password = substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-=+?'), 0, $length = '10'); } add_hook('PreModuleCreate', 1, function($vars) { return array( 'password' => $password, ); } );
  9. I talked with WHMCS support about this https://imgur.com/OqzO00a. And they said "Looking at that hook, I would expect the password to be encrypted" "I would also ensure the resulting password is passed through the EncryptPassword API before being inserted into the database, as this is the fully documented and supported way of encrypting a string WHMCS uses: https://developers.whmcs.com/api-reference/encryptpassword/" Can someone help me understanding what should i do? I am not a developer... Thank you!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated