问题标签 [whmcs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
5 回答
5055 浏览

php - WHMCS PHP Sessions Not working

My WHMCS installation suddenly stopped working two days ago. I can access the client area, but can't login... after I input the correct details, the browser keeps trying to load a page but no page ever loads. I created a test file and confirmed it an issue with PHP sessions. Seeing as it's probably not the script, since WHMCS is a widely-used and tested software, I'm trying to figure out what possible configurations could cause php sessions to not work. /tmp is writable, and I set the directory specified in php.in, session.save_path = "/var/lib/php/session" to 777 permissions. I read somehwere that the session.save_path folder should NOT be under the user control of root; mine is. What should I set it to? I have no other users. In the gc.compatibility was 1 and I set it to 0, and restarted httpd, but still can't login. Here's the phpinfo:

This is running on the latest Debian distro. Thanks in advance!

0 投票
6 回答
120749 浏览

php - 在 PHP 字符串中创建回车符?

我们为我们的计费系统编写了一个小的 PHP Hook,它会在下订单时向我们打开一个新的支持票。它的工作原理是“Open Ticket”API 函数需要一个字符串作为消息,但我们无法弄清楚如何在其中放入回车符。

我试过了

由于它似乎只是完全纯文本,所有这些都只是逐字阅读而不是制成回车符。

有人对如何做到这一点有任何想法吗? http://docs.whmcs.com/API:Open_Ticket

0 投票
1 回答
1040 浏览

wordpress - 如何使用 md5 哈希密码(从外部 API 获取)在 wordpress 中创建用户?

从 WHMCS API 我得到这些数据:

  • 电子邮件
  • 密码

我收到正常格式的电子邮件 (email@example.com)。但我得到以下格式的密码:

  • 41bef39ea1086512d8b90b2a3dbc4d3e:jh#sZ(使用 XML)

这里,jh#sZ是盐,格式是“md5(salt.pw):salt”

现在我的问题是,如何在wp_insert_user()wp_create_user()函数中使用此密码将用户插入 wp 数据库?

0 投票
1 回答
605 浏览

php - Integrating WHMCS login with my SaaS applications

I am offering an online cart solutions as a SaaS model. Each customer can register and get an online cart for himself to sell his products.

I have also WHMCS as a billing system for my clients. I want to integrate the login of WHMCS with my SaaS application.

Means, if any customer logs in to the SaaS application, it automatically become logged in to WHMCS, so that when he clicks on the WHMCS member link in his SaaS application, he logs in automatically, and vice verse.

I know there is a login module integration in WHMCS but it must redirect to the WHMCS login page to work!!, which is the thing I don't want. I Want to do the login process myself.

Please advice.

Thanks,

0 投票
1 回答
4293 浏览

c# - 循环通过 XML 节点

我正在从 XML 格式的网站中提取一些数据,当没有连续的节点时它工作正常,但我无法弄清楚如何在有节点时循环它们。我得到的数据看起来像......

如何循环并从每个节点读取数据?我现在的代码如下...

票务类...

0 投票
4 回答
2447 浏览

whmcs - whmcs 标题代码如何修改?

我的 whmcs 标题代码显示如下。我想修改它。

我想当我去我的网站主页/索引页面然后显示这个代码

但是当我去其他页面,如共享主机、经销商主机等时,代码显示

我怎么能做到。有可能吗?

0 投票
1 回答
144 浏览

wordpress - Magento/WHMCS 的 Wordpress 查询返回错误结果

我正在尝试在网站的页脚列中显示来自 WordPress 中特定类别的帖子。除非页脚显示在 WHMCS 或 Magento 中集成的页面上,否则它工作正常。出于某种原因,在这些应用程序中的那些页面上,它仍然显示博客文章列,但不是返回指定类别中的最后 X # 篇文章,而是返回 X # 次的最后一篇文章。

例如,这是从特定类别中提取的独立 Wordpress 博客专栏:

http://www.thinkshovels.com/includes/latest_work.php

这正是我们希望在整个站点中显示的内容,但是如果您访问http://www.thinkshovels.com/service/,您会看到中间列没有显示该信息。

这是查询wordpress的代码:

定义('WP_USE_THEMES',假);要求('/home/shovels/public_html/blog/wp-load.php');

while (have_posts()): the_post();

$args = array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID );

我不确定我是否在这里做错了什么,或者是否有更好的方法来解决这个问题,但似乎 WHMCS 和 Magento 打破了这些查询。

任何提示/建议表示赞赏!谢谢。

0 投票
2 回答
2811 浏览

permissions - 为什么WHMCS在应用其安全提示后显示权限错误,即使权限是777?

我已经在我的托管空间上安装了 WHMCS,并针对其文档做了安全提示。我将 templates_c、下载和附件移到 public_html 上一层(我正在使用 DirectAdmin 控制面板)并将它们的权限设置为 777。之后,我将这些行放在configuration.php文件中:

但是现在,当我想打开 WHMCS 时,我收到了这个错误:

权限错误模板编译目录'/home/mysite.com/templates_c/'必须是可写的(CHMOD 777)才能继续。如果显示的路径不正确,您可以在 configuration.php 文件中更新它。

我也测试了 configuration.php 文件的以下格式,但它们不起作用:

  • /domains/mysite.com/templates_c/
  • /home/domains/mysite.com/templates_c/

请帮我。

0 投票
2 回答
2743 浏览

php - 更改产品配置页面上的 WHMCS 标题?

这是我目前在 WHMCS 模板中 header.tpl 中的标题:

但是,当人们配置产品时,我无法弄清楚如何使标题看起来不同。例如,如果有人在http://portal.mysite.com/cart.php?a=confproduct&i=1

然后我希望标题显示他们正在配置的产品的名称。因此,如果那是产品的名称,它应该显示“Level 1 Package”,而不是显示上面的标题。我一直在玩这个标题,但似乎没有什么是正确的,任何帮助将不胜感激。

0 投票
0 回答
254 浏览

yii - 如何将 Yii 和 WHMCS Api 与 ps-yii-extensions 集成

是否有任何方法可以将 Yii 框架和计费 WHMCS 与扩展 ps-yii-extensions 集成?

这是twitter API教程的链接,它与WHMCS API一起工作吗?