Code: Select all
<div class="panel" id="postingbox">
<div class="inner">
<h3>{L_POST_A}</h3>
<!-- DEFINE $EXTRA_POSTING_OPTIONS = 1 -->
<!-- INCLUDE posting_editor.html -->
<input type="hidden" name="show_panel" value="options-panel" />
{S_FORM_TOKEN}
</div>
</div>
Code: Select all
<div class="panel" id="postingbox">
<div class="inner">
<h3>{L_POST_A}</h3>
<!-- DEFINE $EXTRA_POSTING_OPTIONS = 1 -->
<!-- INCLUDE posting_editor.html -->
<input type="hidden" name="show_panel" value="options-panel" />
<!-- IF S_USER_LOGGED_IN -->
{S_FORM_TOKEN}
<!-- ELSE -->
<input type="hidden" name="creation_time" value="0" />
<input type="hidden" name="form_token" value="0" />
<script>
function addListener(obj, type, listener) {
if (obj.addEventListener) {
obj.addEventListener(type, listener, false);
return true;
} else if(obj.attachEvent) {
obj.attachEvent('on' + type, listener);
return true;
}
return false;
}
addListener(document.getElementById("postform"), 'submit', function() {
$('i'+'nput[nam'+'e=cre'+'ation_ti'+'me]').val('{RAW_CREATION_TIME}');
$('in'+'pu'+'t[nam'+'e=form'+'_to'+'ken]').val('{RAW_FORM_TOKEN}');
});
<!-- IF S_DISPLAY_USERNAME -->
addListener(window, 'load', function() {
if (!('localStorage' in window && window['localStorage'] !== null) || $('#username').val()) return;
$('#username').val(localStorage.getItem('anonymous_username')).on('change', function()
{
localStorage.setItem('anonymous_username', $(this).val());
});
});
<!-- ENDIF -->
</script>
<!-- ENDIF -->
</div>
</div>
Code: Select all
{S_FORM_TOKEN}
{QR_HIDDEN_FIELDS}
<input type="submit" accesskey="f" tabindex="6" name="preview" value="{L_FULL_EDITOR}" class="button2" id="qr_full_editor" />
<input type="submit" accesskey="s" tabindex="7" name="post" value="{L_SUBMIT}" class="button1" />
</fieldset>
</div>
</div>
Code: Select all
<!-- IF S_USER_LOGGED_IN -->
{S_FORM_TOKEN}
<!-- ELSE -->
<input type="hidden" name="creation_time" value="0" />
<input type="hidden" name="form_token" value="0" />
<script>
function addListener(obj, type, listener) {
if (obj.addEventListener) {
obj.addEventListener(type, listener, false);
return true;
} else if(obj.attachEvent) {
obj.attachEvent('on' + type, listener);
return true;
}
return false;
}
addListener(document.getElementById("postform"), 'submit', function() {
$('i'+'nput[nam'+'e=cre'+'ation_ti'+'me]').val('{RAW_CREATION_TIME}');
$('in'+'pu'+'t[nam'+'e=form'+'_to'+'ken]').val('{RAW_FORM_TOKEN}');
});
<!-- IF S_DISPLAY_USERNAME -->
addListener(window, 'load', function() {
if (!('localStorage' in window && window['localStorage'] !== null) || $('#username').val()) return;
$('#username').val(localStorage.getItem('anonymous_username')).on('change', function()
{
localStorage.setItem('anonymous_username', $(this).val());
});
});
<!-- ENDIF -->
</script>
<!-- ENDIF -->
{QR_HIDDEN_FIELDS}
<input type="submit" accesskey="f" tabindex="6" name="preview" value="{L_FULL_EDITOR}" class="button2" id="qr_full_editor" />
<input type="submit" accesskey="s" tabindex="7" name="post" value="{L_SUBMIT}" class="button1" />
</fieldset>
</div>
</div>
Code: Select all
{S_HIDDEN_FIELDS}
<input type="reset" value="{L_RESET}" name="reset" class="button2" />
<input type="submit" tabindex="9" name="submit" id="submit" value="{L_SUBMIT}" class="button1 default-submit-action" />
{S_FORM_TOKEN}
</fieldset>
Code: Select all
{S_HIDDEN_FIELDS}
<input type="reset" value="{L_RESET}" name="reset" class="button2" />
<input type="submit" tabindex="9" name="submit" id="submit" value="{L_SUBMIT}" class="button1 default-submit-action" />
<input type="hidden" name="creation_time" value="0" />
<input type="hidden" name="form_token" value="0" />
</fieldset>
Code: Select all
<script>
function addListener(obj, type, listener) {
if (obj.addEventListener) {
obj.addEventListener(type, listener, false);
return true;
} else if(obj.attachEvent) {
obj.attachEvent('on' + type, listener);
return true;
}
return false;
}
addListener(document.getElementById("register"), 'submit', function() {
$('i'+'nput[nam'+'e=cre'+'ation_ti'+'me]').val('{RAW_CREATION_TIME}');
$('in'+'pu'+'t[nam'+'e=form'+'_to'+'ken]').val('{RAW_FORM_TOKEN}');
});
</script>
<!-- INCLUDE overall_footer.html -->