This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Help Editing Account Sign Up Email
#1
Help Editing Account Sign Up Email
Hello, I'm using Ubuntu Server 12.04.5 LTS and i'm wanting to be able to edit this information.. As i don't want to keep editing it every time i make someone an account.

Quote:Your Sentora Account details


Quote:Hi {{fullname}},

We are pleased to inform you that your new hosting account is now active!

You can access your web hosting control panel using this link:
{{controlpanelurl}}

Your username and password is as follows:
Username: {{username}}
Password: {{password}}

Many thanks,
The management
Thanks, 
Liam Green ~ Asenav.co.uk
Reply
Thanks given by:
#2
RE: Help Editing Account Sign Up Email
check out modules/manage_clients/code/controller.ext.php line 695.

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by: liamgreen
#3
RE: Help Editing Account Sign Up Email
(12-08-2015, 03:36 AM)Ron-e Wrote: check out modules/manage_clients/code/controller.ext.php line 695.

Thank you for the reply. Do you know how i edit this? I'm using ubuntu server 12.04.5 LTS and i don't know how to edit it since there is no GUI. I've done a google search but had no luck.
Thanks, 
Liam Green ~ Asenav.co.uk
Reply
Thanks given by:
#4
RE: Help Editing Account Sign Up Email
Manually edit with vi or nano or use WinSCP (works like a file explorer).
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: liamgreen
#5
RE: Help Editing Account Sign Up Email
(12-08-2015, 04:18 PM)TGates Wrote: Manually edit with vi or nano or use WinSCP (works like a file explorer).

Thanks for this. Will have a look now Smile
Thanks, 
Liam Green ~ Asenav.co.uk
Reply
Thanks given by:
#6
RE: Help Editing Account Sign Up Email
(12-08-2015, 08:02 PM)liamgreen Wrote:
(12-08-2015, 04:18 PM)TGates Wrote: Manually edit with vi or nano or use WinSCP (works like a file explorer).

Thanks for this. Will have a look now Smile

what about the "Your Sentora Account details" in the head of the email?
Reply
Thanks given by:
#7
RE: Help Editing Account Sign Up Email
It is hard-coded here: \modules\manage_clients\code\controller.ext.php line 695 (which is what shows up in the default email)

The "Your Sentora Account details" is also hard-coded here: \modules\manage_clients\module.zpm line: 253

I think there is an update pending on this to have it editable in the database. Me.B

DB entry:
Code:
insert  into `x_settings`(`so_id_pk`,`so_name_vc`,`so_cleanname_vc`,`so_value_tx`,`so_defvalues_tx`,`so_desc_tx`,`so_module_vc`,`so_usereditable_en`) values
(122,'welcome_message','Custom e-mail Welcome Message','Hi {{fullname}},
We are pleased to inform you that your new hosting account is now active!
You can access your web hosting control panel using this link: {{controlpanelurl}}
Your username and password is as follows:
Username: {{username}}
Password: {{password}}
Many thanks,
The management',NULL,'Here you can edit the Welcme Message e-mail','Sentora Config','true');


Updated static function in /modules/manage_clients/code/controller.ext.php line 700:
PHP Code:
   static function DefaultEmailBody()
 
   {
 
       global $zdbh;
    
$sql "SELECT so_value_tx FROM x_settings WHERE so_name_vc = :configName";
 
       $numrows $zdbh->prepare($sql);
 
       $numrows->bindValue(':configName''welcome_message');
 
       $numrows->execute();
 
       $result $numrows->fetch();
 
       
        if 
($result) {
 
           return ($result['so_value_tx']);
 
       } else {
 
           return false;
 
       }
 
   

I have tested this and seems to work OK (Ubuntu 14.04/Sentora 1.0.3)
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
change username from email umarzuki@gmail.com 0 1 ,629 11-25-2022, 05:46 PM
Last Post: umarzuki@gmail.com
Transfer Account to another Sentora BenI 1 3 ,334 07-21-2022, 07:19 PM
Last Post: Nigel
Email has stopped coming through rsthomas 3 4 ,944 06-21-2022, 12:05 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 3 Guest(s)