MyBB Community Forums

Full Version: template post_captcha_nocaptcha
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, I am changing the table attributes in template because they use obsolete code.
Today I was changing the td style in post_captcha_nocaptcha and variable {$theme['tablespace']} don't work in this template, why?

Template
<tr id="captcha_trow">
<td class="trow1" style="vertical-align: top; padding: {$theme['tablespace']}px"><strong>{$lang->human_verification}</strong></td>
<td class="trow1" style="padding: {$theme['tablespace']}px">
<table style="width: 300px; padding: 4px;">
<tr>
<td><span class="smalltext">{$lang->verification_note_nocaptcha}</span></td>
</tr>
<tr>
<td><script type="text/javascript" src="{$server}"></script><div class="g-recaptcha" data-sitekey="{$public_key}"></div></td>
</tr>
</table>
</td>
</tr>

page
<tr id="captcha_trow">
<td class="trow1" style="vertical-align: top; padding: px"><strong>Verifica Umana</strong></td>
<td class="trow1" style="padding: px">
<table style="width: 300px; padding: 4px;">
<tr>
<td><span class="smalltext">Clicca la casella che vedi qui sotto. Questo processo รจ usato per prevenire gli spam bot.</span></td>
</tr>
<tr>
<td><script type="text/javascript" src="http://www.google.com/recaptcha/api.js"></script><div class="g-recaptcha" data-sitekey="6LdsywoTAAAAAEtHW_eh83QG1BlyROUR0WV5rPt1"></div></td>
</tr>
</table>
</td>
</tr>

for now I use the script below, but how I can fix this?
{$captcha}
<script>
$("#captcha_trow td.trow1").css("padding", "{$theme['tablespace']}px");
</script>