Put the code below into your Free Nodelet and you get an [anonymous post] button near the [create] button. Now you don't have to logout to make an anonymous post.
Please do not abuse this feature...
<a href="http://www.perlmonks.org/index.pl?node_id=492700">Free Nodele
+t</a>
<script type="text/javascript">
<!--
function anonpost (frm) {
var act = frm.action;
frm.action = (act.indexOf('.org') > -1)
? act.replace('.org', '.com')
: act.replace('.com', '.org');
frm.target = 'anonifr';
var ifr = document.createElement('IFRAME');
ifr.name = 'anonifr';
ifr.src = frm.action+'node_id=109&op=logout';
document.body.appendChild(ifr);
var elem=document.createElement('INPUT');
elem.type ='hidden';
elem.name ='op';
elem.value ='create';
frm.appendChild(elem);
setTimeout('location.href = "'+act+'node_id=`parent_id`"', 1500);
frm.submit();
}
function ins_anon_btn () {
var submits = document.getElementsByName('op');
for (var i = 0; i < submits.length; i++) {
if (submits[i].type != 'submit' || submits[i].value != 'create')
+continue;
var elem=document.createElement('BUTTON');
elem.innerHTML ='anonymous post';
submits[i].parentNode.appendChild(elem);
elem.onclick=new Function("anonpost(this.form);return false");
}
}
setTimeout('ins_anon_btn()',500);
// -->
</script>
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|