اتصال myownfreehost به WHMCS
سلام دوستان من در سایت http://myownfreehost.net ثبت نام کردم و میخواستم پنل نمایندگیم رو به اس***یپت WHMCS اتصال بدم ولی هرکاری میکنم نمیشه
توی این ادرس هم آموزشاش نوشته ولی بازم من نتونستم.
http://myownfreehost.net/cpanel-api.php
اگه کسی بتونه یه کمکی کنه یا این کار رو برای من انجام بده خیلی ممنوش میشم.
پاسخ : اتصال myownfreehost به WHMCS
سلام. تلگرام در تماس باشید تا راهنمایی تون کنم.
گرچه خود آدرسی که دادید همه چیزو توضیح داده.
پاسخ : اتصال myownfreehost به WHMCS
که به وصیله هایپر لینک به ادرس زیر وصل میشه که توش یکسری فایل هست
https://github.com/HansAdema/mofh-client
ببخشید من متوجه نمیشم این مال چیه
1. Login to your WHMCS admin, navigate the menu to /SETUP/*Products/Services*/Servers
2. Click to add a new server and enter the details:
Name: Your desired server name IP address: panel.myownfreehost.net Nameservers: Enter your desired nameservers eg. ns1.byethost.com / ns2.byethost.com Type: cpanel Username: The user API you received inside your reseller panel Access Hash: The API key you received inside your reseller panel Secure: Check
3.The API host name is : panel.myownfreehost.net , the ip address to use is 185.27.134.3
4. Save changes.
4. Create a template for the free account welcome emails. Navigate to /SETUP/Email Templates/ Choose *TYPE* to be "Product" and enter a name in *Unique Name*, eg. Free Hosting Welcome
5. You can use the bellow template and adjust it as needed (replace *Your-Reseller-Domain.com* with your own reseller domain!):
تو این قسمتم
1 مال مکانی که میخوام سرور رو اتصال بدم
2 ایجاد سرور
3 که من نام سرور و ای پی سرور رو گزاشتم و ns ها هم
ns1.byethost.com / ns2.byethost.com گزاشتم نوع پنلم cpanel انتخاب کردم
نام کاربری و پس رو هم مشخصات ورود پنلpanel.myownfreehost.ne گزاشتم
قسمت api token نمیدونم چی بزارم نوع اتصالم ssl گزاشتم
4 همسیو هست
5و پاینشم مال قسمت ایمیلش که ازش میگزرم
بعد تو میرسم به
Installing the reseller API Hook
Click here to download the hook file
این مال چیه
/*WHMCS-DIR*/includes/hooks/
2. (OPTIONAL) For more usability when removing the subdomain name from cart summary it is recommended to replace the bellow function:
function removeItem(type,num) {
var response = confirm("{/literal}{$LANG.cartremoveitemconfirm}{literal}");
if (response) {
window.location = 'cart.php?a=remove&r='+type+'&i='+num;
}
} |
with the bellow :
function removeItem(type,num) {
$.get('cart.php?a=remove&r='+type+'&i='+num);
var response = confirm('Press OK to choose a new subdomain or cancel to remain on view cart');
if (response) {
window.history.back(1);
} else {
window.location.reload();
}
} |
The file can be located inside:
/*WHMCS-DIR*/templates/orderforms/*ORDER-FORM-TEMPLATE*/viewcart.tpl
You need to replace the code inside the default order form you've set in your whmcs admin section /SETUP/General Settings/Ordering tab
Alternatively you can download the order template bellow which should contain all customization above and is *ready* to be used:
Cpanel Api WHMCS order template
This needs to be untared using 7zip or similar applications and upload the content of the archive inside:
/*WHMCS-DIR*/templates/orderforms/
After you've uploaded the order template, you should be able to select it when creating the product group inside your WHMCS "Products/Services" section.
Note: This template is based on the pre-existing one, *Comparison*, in the Default templates from WHMCS.
که اون قسمت های اخرش فهمیدم مال تم سفارشات هست که جایگزاری کردم و اومد ولی اون اولش نمیفهمم مال چیه
توی پنل هاستینگم
Domain Name |
نام دامین من میاد |
API server URL |
https://panel.myownfreehost.net:2087 |
API Username |
FPqKbKJHyT6ufc2btrWmC2VBeFLPbuX7z3L9781JZPQio58qaj 1eRxjH که هش شده |
API Password |
THnJCdpHMMfiBoUEmrJR6CMEFMuuNp52JWjZfgN0kJWRhVTLVV 9hcD0im کد هش |
MyOwnFreeHost IP address to connect to |
185.27.134.3 |
API Allowed IP Address (main IP of server you are connecting from) |
قابل ادرس دهی به وصیله من که ادرس سرور whcms گزاشتم |
API Callback URL
اینم قابل ادرس دهیه نمیدونم چی بزارم |