全球主机交流论坛

标题: WHMCS连接规则 希望对用WHMCS的IDC有帮助 [打印本页]

作者: 害羞哥    时间: 2011-8-19 14:20
标题: WHMCS连接规则 希望对用WHMCS的IDC有帮助
WHMCS连接真的是保罗万象,你所有想要的都能在连接中表达,让客户一步到位

最近我需要解决的一个数量问题,就通过URL解决了。

我大概介绍下,WHMCS包括哪几种连接定义:

1、订购

可以直接把商品加入购物车
  1. http://demo.whmcs.com/cart.php?a=add&pid=1]http://demo.whmcs.com/cart.php?a=add&pid=1
复制代码
可以加上 订购周期一月 一年 什么的
  1. http://demo.whmcs.com/cart.php?a=add&pid=1&billingcycle=annually]http://demo.whmcs.com/cart.php?a=add&pid=1&billingcycle=annually
复制代码
可以加上 域名选购,指定这个订单里购买的域名(也能指定二级域名)
  1. http://demo.whmcs.com/cart.php?sld=google&tld=.com]http://demo.whmcs.com/cart.php?sld=google&tld=.com
  2. http://demo.whmcs.com/cart.php?domainoption=subdomain&sld=google]http://demo.whmcs.com/cart.php?domainoption=subdomain&sld=google
复制代码
可以加上 促销代码
  1. http://demo.whmcs.com/cart.php?promocode=xxxxxxx]http://demo.whmcs.com/cart.php?promocode=xxxxxxx
复制代码
可以指定 订购样式
  1. http://demo.whmcs.com/cart.php?carttpl=boxes]http://demo.whmcs.com/cart.php?carttpl=boxes
复制代码
2、配置

这个就是我想要的可以在URL上把所有的定制信息都反映出来,这样我就很容易弄个html来写订购表单,从而生成最后的订购页
先查看你的配置页面的代码,应该如下:
  1. <p class="cartsubheading">Configurable Options</p>
  2. <p>This product/service has some options which you can choose from below to customise your
  3. order.</p>

  4. <div class="cartbox">
  5. <table cellspacing="0" cellpadding="0">
  6. <tr><td>Disk Space:</td><td width="5"></td><td>
  7. <input type="text" name="configoption[1]" value="100" size="5"> x 1MB $0.00USD
  8. </td></tr>
  9. </table>
  10. </div>
复制代码
你的URL就应该是这样:
  1. http://demo.whmcs.com/cart.php?a=add&pid=1&configoption]http://demo.whmcs.com/cart.php?a=add&pid=1&configoption[1]=100
复制代码
3、语言和模板

可以订购页面指定语言与模板
类似如下:
  1. http://demo.whmcs.com/index.php?systpl=portal]http://demo.whmcs.com/index.php?systpl=portal
  2. http://demo.whmcs.com/index.php?language=Chinese]http://demo.whmcs.com/index.php?language=Chinese
  3. http://demo.whmcs.com/index.php?systpl=portal&language=Chinese]http://demo.whmcs.com/index.php?systpl=portal&language=Chinese
  4. http://demo.whmcs.com/cart.php?systpl=portal&language=Chinese&gid=1]http://demo.whmcs.com/cart.php?systpl=portal&language=Chinese&gid=1
复制代码
4、货币

可以指定货币
  1. http://demo.whmcs.com/index.php?cart.php?currency=1]http://demo.whmcs.com/index.php?cart.php?currency=1
  2. http://demo.whmcs.com/index.php?cart.php?currency=1&language=Chinese]http://demo.whmcs.com/index.php?cart.php?currency=1&language=Chinese
复制代码
5、工单连接

定义部门:
  1. http://demo.whmcs.com/submitticket.php?step=2&deptid=1&name=Jeff&[email protected]]http://demo.whmcs.com/submitticket.php?step=2&deptid=1&name=Jeff&[email protected]
复制代码
定义标题和工单内容:
  1. http://demo.whmcs.com/submitticket.php?step=2&subject=Questions&message=Your_message_here]http://demo.whmcs.com/submitticket.php?step=2&subject=Questions&message=Your_message_here
复制代码
6、公告连接
  1. <?php
  2. include("support/dbconnect.php");
  3. include("support/includes/functions.php");
  4. $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3";
  5. $result = mysql_query($query);
  6. while ($data = mysql_fetch_array($result)) {
  7. $id = $data["id"];
  8. $date = $data["date"];
  9. $title = $data["title"];
  10. $announcement = $data["announcement"];
  11. $date = fromMySQLDate($date);
  12.   echo("<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>");
  13. }
  14. ?>
复制代码
7、登陆连接
  1. <form method="post" action="http://www.yourdomain.com/whmcs/dologin.php">
  2. Email Address: <input type="text" name="username" size="50">
  3. Password: <input type="password" name="password" size="20">
  4. <input type="submit" value="Login">
  5. </form>
复制代码
官方详情:http://docs.whmcs.com/Linking_to_WHMCS]http://docs.whmcs.com/Linking_to_WHMCS]http://docs.whmcs.com/Linking_to_WHMCS

希望多用WHMCS的朋友有帮助!

http://haixiuge.com/whmcs-link-knowledge.html

[ 本帖最后由 害羞哥 于 2011-8-19 14:26 编辑 ]
作者: David    时间: 2011-8-19 14:21
好东西
作者: zhegehaokan    时间: 2011-8-19 14:31
有破解版没有
作者: foxconndmd    时间: 2011-8-19 14:34
感谢分享。
作者: loveni    时间: 2011-8-19 14:35
没有钱购买whmcs 太贵了! 偶不是IDC
作者: 害羞哥    时间: 2011-8-19 14:39
标题: 回复 5# loveni 的帖子
找CEFHOST 和 QIQIBIAN

他们都有WHMCS的授权 很便宜的
作者: loveni    时间: 2011-8-19 14:44
标题: 回复 6# 害羞哥 的帖子
CEFHOST使用他的空间做仿牌子网站 12元一个月 ( ^_^ )不错嘛
作者: 害羞哥    时间: 2011-8-19 14:53
标题: 回复 7# loveni 的帖子
他家就美国空间,你做仿牌是在害他
但愿别产生纠纷啊
作者: mikj521    时间: 2011-8-19 15:00
   不错
作者: koukouwu.com    时间: 2011-8-19 15:01
直接200刀买个终身授权就是了多省事
作者: Captain    时间: 2011-8-19 15:52
很赞的文章~
作者: yiye    时间: 2011-8-19 16:49
好啊,去试试
作者: 害羞哥    时间: 2011-8-19 20:18
标题: 回复 10# koukouwu.com 的帖子
赚了钱的人的想法 和 没赚钱的 是不一样的
作者: xioa11    时间: 2011-8-19 20:28
留个位置,以后看




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4