vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Disable reCaptcha for Mobile Skin (https://vborg.vbsupport.ru/showthread.php?t=204765)

Silviu 02-09-2009 02:57 PM

Disable reCaptcha for Mobile Skin
 
Hello all,

Recently we decided to implement a mobile skin for our forum, but the registration process is hampered by the reCaptcha system.

Is there any way to disable it just for the mobile skin, or is it a global variable for all the forum styles?

Yes, we can use other human verification methods that are mobile-friendly, but if possible we'd like to stick to reCaptcha for everything else.

Dismounted 02-10-2009 05:41 AM

That is possible with a modification. However, I have not seen such a modification.

Silviu 02-10-2009 10:16 AM

Understood.

And speaking of limitations, do the vBulletin conditionals support showing a certain link in the navbar or footer by IP address?

So if a member visits from the 193.x range for instance, he'll be shown a "Go to site X" link?

Dismounted 02-10-2009 10:32 AM

The IP address is stored by vBulletin in the "IPADDRESS" constant, which can be used everywhere (nearly).

Silviu 02-11-2009 01:16 PM

You're right, the IPADDRESS constant works like a charm, but there's one last snag. We need to compare it to a range of addresses.

Basically, the condition looks like this:

PHP Code:

<if condition="IPADDRESS == 'IP Range'"><a href link>Link</a><else /></if> 

The problem is with the IP Range bit... I know about the array(X,Y,Z) option, but that's kind of limited for what we need, because we'd have to write down every single address in the range.

Ultimately, our if rule should be like

PHP Code:

<if condition="IPADDRESS == '192.168.1.x'"><a href link>Link</a><else /></if> 

but we don't know how to define the range per-se or the x part.

Later edit:

We figured it out. You have to use a start and end value, like so:

PHP Code:

<if condition="(IPADDRESS >= '192.168.1.1') and (IPADDRESS <= '192.168.1.254')"



All times are GMT. The time now is 09:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00940 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete