douzao2590 2013-05-24 12:22
浏览 67
已采纳

问答插件没有在PHPBB论坛上显示

I'm working on a PHPBB 3.0.9 forum using a theme named forum_7589. There's a captcha protecting the registration form but it has been useless against human spamming. So I've been asked to change the captcha plugin & set it to 'Q&A'. (formerly : previous image).

I found the configuration form in the backend, changed the settings to 'Q&A' and saved the changes. The plugin is configured for the good language (fr, here). It has a question and a set of answers registered.

Unfortunately, although it shows OK in the admin screen, it is not displayed at all in the registration form. Instead, part of the old captcha displays : I see the input for the security code (not the image).

I have cleaned the cache (templates & themes) in the backend and my browser.

I did some search and found that this could be a theme issue. I should have to update some files of the theme. I 've taken a look at the forum/styles folder and noticed that 3 files : *captcha_default.html, captcha_qa.html and captcha_recaptcha.html* were present in the subsilver/templates folder but not in the *forum_7582/templates* subdirectory. I copied them from one folder to the other, cleaned caches etc.

Without success.

I'm a PHP developer but I know nothing about PHPBB architecture. I have no idea of what I'm missing here. Any help would be greatly appreciated.

And yes, before you ask : I'm not allowed to upgrade to v3.0.11 and I'm not allowed to change the theme.

  • 写回答

1条回答 默认 最新

  • douba2705 2013-05-24 13:23
    关注

    OK, I've figured it out eventually.

    In case it could help somebody later :

    I have updated the *styles/forum_7582/template/ucp_register.html* file : the section following the line with <!-- END profile_fields --> was not the same than the one in the subsilver theme. I replaced it with the the subsilver code for the said section :

    <!-- IF CAPTCHA_TEMPLATE -->
            <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
    

    Cleaned caches.

    The Q&A shows at least, and works fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?