1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Timer off

Discussion in 'XenForo Questions and Support' started by whynot, Aug 16, 2013.

  1. whynot

    whynot Well-Known Member

    On registration is it possible to hide the timer?(Not to disable it!)
    If I can see it than the bot can see it as well, easy to change its operation to wait.

    What part of the code should be changed and how?
  2. Da Bookie Mon

    Da Bookie Mon Well-Known Member

    Bots have eyes now? :confused: If a spammer is seeing it, it is a real person registering, not a bot.
  3. JulianD

    JulianD Well-Known Member

    You can remove the HTML from the template:

    In register_form search for
    <span id="RegTimer">({xen:phrase please_wait_x_seconds, "seconds=<span>{$xenOptions.registrationTimer}</span>"})</span>
    and remove it. I tested it and apparently it doesn't break the registration process nor produces a javascript error.

    However, I think it would be confusing for users if they try to register before the timer is done.
    whynot likes this.
  4. whynot

    whynot Well-Known Member

    Can they(bots) "see" the captchas?
    No? How do they solve it so quickly?
  5. whynot

    whynot Well-Known Member

    There is no way a user could complete his/her registration in 20 seconds.(My setup)
    I could not do it in 30 seconds.

    Thank you for the code!
  6. Jeremy

    Jeremy Well-Known Member

    Machines and software can very easily see and interpret HTML code. I actually make a living writing code that does just that: reads HTML to pull out data.
    whynot likes this.
  7. JulianD

    JulianD Well-Known Member

  8. whynot

    whynot Well-Known Member

    If I comment it out would it be fine?

    <!-- <span id="RegTimer">({xen:phrase please_wait_x_seconds, "seconds=<span>{$xenOptions.registrationTimer}</span>"})</span>--> 
  9. JulianD

    JulianD Well-Known Member

    If you comment it out like that, the browser will not render it but the code will still be visible in the HTML source.

    Use XenForo comment tag instead:

    whynot likes this.
  10. whynot

    whynot Well-Known Member

    I owe you a beer, Julian!

Share This Page