Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Captcha iFrame / Contact Us Page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-20-2015, 08:24 AM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Captcha iFrame / Contact Us Page

We think there are a few alternative ways to do this, but hopefully somebody on here (with better coding experience than us) may suggest the winner...

The Captcha section provided FOC by Google, is inside an iframe and sits on the bottom of the Contact Us page. It's text/javascript type with an active script.

It's very easy to add as a page option, but by default, it's stuck in the middle of the Contact Us page (Why X-Cart Team???) and stands out like a sore thumb, as the rest of the page is all left-aligned.

Via Webmaster, you can only see:

Quote:
<div class="form-item">
{getCaptcha():h}
</div>

If you dig in further via a browser add-on, you can see:

Quote:
<div class="form-item">
<script type="text/javascript" src="https://www.google.com/recaptcha/api/challenge?k= *our specific site reference* "></script>
<noscript>
<iframe src="https://www.google.com/recaptcha/api/noscript?k= *our specific site reference* " height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript></div>

There is a preset size and width, which is fine, even for a mobile view.
We are looking for the easiest "webmaster mode route only" way of moving this item to the left (like the rest of this page)

It would be handy for most people we think, if a default left alignment (if/when added) went into 5.2.4. As it is now, it gives a poor reproduction via a mobile view, not size-wise, but purely because of the centre alignment of this item, which then trashes the correct page view....
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote
  #2  
Old 05-10-2015, 12:48 AM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Re: Captcha iFrame / Contact Us Page

No response on here, so this was solved by the efficient X-Cart Support Team in response to us placing a ticket. The answer is:

A left alignment for this option (if/when added) can be achieved via Custom CSS as follows:

#contact-site-form #recaptcha_widget_div {
margin-left: 0 !important;
}
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote

The following user thanks Triple A Racing for this useful post:
qualiteam (05-11-2015)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:14 AM.

   

 
X-Cart forums © 2001-2020