$7.49 .com domain with free InstantPage Website Builder$1.99 Web Hosting   捷飞网络官方淘宝店   Godaddy 优惠码
返回列表 发帖
分享到:




[软件教程] whmcs remove enter a prefix for both nameservers

modifying configureproduct.tpl to remove NS1 and NS2 questions + W& O- {2 y, W8 X

' A, [% q- F. W% |) p  R$ A6 d  r& r
  1. {if $productinfo.type eq "server"}
  2. <tr><td colspan="2"><strong>{$LANG.cartconfigserver}</strong></td></tr>
  3. <tr class="orderheadingrow"><td colspan="2"></td></tr>
  4. <tr class="orderrow1"><td>{$LANG.serverhostname}</td><td><input type="text" name="hostname" size="15" value="{$server.hostname}" /> eg. server1(.yourdomain.com)</td></tr>
  5. <tr class="orderrow2"><td>{$LANG.serverns1prefix}</td><td><input type="text" name="ns1prefix" size="10" value="{$server.ns1prefix}" /> eg. ns1(.yourdomain.com)</td></tr>
  6. <tr class="orderrow1"><td>{$LANG.serverns2prefix}</td><td><input type="text" name="ns2prefix" size="10" value="{$server.ns2prefix}" /> eg. ns2(.yourdomain.com)</td></tr>
  7. <tr class="orderrow2"><td>{$LANG.serverrootpw}</td><td><input type="password" name="rootpw" size="20" value="{$server.rootpw}" /></td></tr>
  8. <tr class="orderheadingrow"><td colspan="2"></td></tr>
  9. <tr><td height="10"></td></tr>
  10. {/if}
复制代码

+ s9 Y4 W" C: Z9 U2 R' F! k0 Q/ `4 ]" b# t/ L/ `, I+ V+ T6 v; P
改成:
3 J! d( D6 }* {' C5 ^. y, F! V1 G2 ]9 T/ V7 f  H1 C
  1. {if $productinfo.type eq "server"}
  2. <tr><td colspan="2"><strong>{$LANG.cartconfigserver}</strong></td></tr>
  3. <tr class="orderheadingrow"><td colspan="2"></td></tr>
  4. <tr class="orderrow1"><td>{$LANG.serverhostname}</td><td><input type="text" name="hostname" size="15" value="{$server.hostname}" /> eg. server1(.yourdomain.com)
  5. <input type="hidden" name="ns1prefix" value="ns1" />
  6. <input type="hidden" name="ns2prefix" value="ns2" />
  7. </td></tr>
  8. <tr class="orderrow2"><td>{$LANG.serverrootpw}</td><td><input type="password" name="rootpw" size="20" value="{$server.rootpw}" /></td></tr>
  9. <tr class="orderheadingrow"><td colspan="2"></td></tr>
  10. <tr><td height="10"></td></tr>
  11. {/if}
复制代码
( I9 K/ r3 k  F
6 U: I8 X2 M9 y
* G4 P, E6 `6 h; b$ d
或者:) u" _' K% q6 K' d! Z. C5 X6 L

3 c. j2 p3 l+ z# i0 v
  1. <tr>
  2. <td><table width="100%" border="0" cellpadding="10" cellspacing="0">
  3. <tr>
  4. <td width="150" class="fieldarea">Hostname:</td>
  5. <td><input type="text" name="hostname" size="15" value="" />
  6. eg. server1(.yourdomain.com)</td>
  7. </tr>
  8. <tr>
  9. <td width="150" class="fieldarea">NS1 Prefix:</td>
  10. <td><input type="text" name="ns1prefix" size="10" value="" />
  11. eg. ns1(.yourdomain.com)</td>
  12. </tr>
  13. <tr>
  14. <td width="150" class="fieldarea">NS2 Prefix:</td>
  15. <td><input type="text" name="ns2prefix" size="10" value="" />
  16. eg. ns2(.yourdomain.com)</td>
  17. </tr>
  18. <tr>
  19. <td width="150" class="fieldarea">Root Password:</td>
  20. <td><input type="password" name="rootpw" size="20" value="" /></td>
  21. </tr>
  22. </table></td>
  23. </tr>
复制代码
' R7 o" E0 r% v2 `$ ^+ c
' @% C: s. Y6 j: A; n' [$ u
改成这个:6 z) O. f) `8 H3 l; u. B

' `3 z: G8 k$ r; v- U1 T5 q( ~" E! L5 p, k
  1. <tr><td>
  2. <input type="hidden" name="hostname" size="1" value="N/A" />
  3. <input type="hidden" name="ns1prefix" size="1" value="N/A" />
  4. <input type="hidden" name="ns2prefix" size="1" value="N/A" />
  5. <input type="hidden" name="rootpw" size="2" value="N/A" />
  6. </td></tr>
复制代码

$ x1 k6 ^  S# a2 |# ~' c: ~5 {: V- J9 P5 T3 m) u9 c. }- e
看你自己喜欢了..我测试了是用第一种.
  B1 ?. d4 A/ d
. R! a/ Z/ G3 y8 {4 o( ~& A& P更多详情参考:
% R% j4 O& k4 H" K  I) i3 m, G, U# o2 D
http://forum.whmcs.com/showthread.php?24148-Question-modifying-configureproduct-tpl-to-remove-NS1-and-NS2-questions

返回列表
Namecheap
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting
互联网安全