<?xml version="1.0" encoding="windows-1252"?>
<node id="107808" title="Re: Random NonHome Nodes" created="2001-08-25 08:49:51" updated="2005-08-13 20:55:35">
<type id="11">
note</type>
<author id="83485">
blakem</author>
<data>
<field name="doctext">
I added some options to this script to allow you to
select which sections get skipped over.  The folowing
params can be used to select sections to skip.&lt;P&gt;
news=skip&lt;BR&gt;
meditations=skip&lt;BR&gt;
discussions=skip&lt;BR&gt;
cufp=skip&lt;BR&gt;
poetry=skip&lt;BR&gt;
code=skip&lt;BR&gt;
craft=skip&lt;BR&gt;
sopw=skip&lt;P&gt;
In addition, the 'homexp' param takes an integer value that will skip any users homenode whos xp is less than the value.  It also accepts 'ALL' to skip all homenodes.&lt;P&gt;
If no params are set, the following will be assumed 'homenodes=ALL&amp;news=skip&amp;poetry=skip'&lt;P&gt;
Here are some examples:&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;skip craft,code, and news&lt;BR&gt;[http://perlmonks.thepen.com/scripts/randomnode.pl?craft=skip&amp;code=skip&amp;news=skip] 
&lt;LI&gt;skip discussions and homenodes&lt;BR&gt;[http://perlmonks.thepen.com/scripts/randomnode.pl?discussions=skip&amp;homexp=ALL] 
&lt;LI&gt;skip news, poetry, and homenodes with xp&amp;lt;200 &lt;BR&gt;[http://perlmonks.thepen.com/scripts/randomnode.pl?news=skip&amp;poetry=skip&amp;homexp=200] 
&lt;/UL&gt;

I personally like that last one, because it avoids the baren homenodes, the outofdate newsfeed, and skips the poetry (which I have nothing against, I just need to be in 
a special mood to appreciate that particular craft)
So, I have added the following to my personal nodelet:&lt;BR&gt;
&lt;code&gt;
&lt;A HREF="http://perlmonks.thepen.com/scripts/randomnode.pl?news=skip&amp;poetry=skip&amp;homexp=200"&gt;Custom Random Node&lt;/A&gt;
&lt;/code&gt;
Which shows up in my side column as: &lt;A HREF="http://perlmonks.thepen.com/scripts/randomnode.pl?news=skip&amp;poetry=skip&amp;homexp=200"&gt;Custom Random Node&lt;/A&gt;

&lt;P&gt;
-Blake</field>
<field name="root_node">
106489</field>
<field name="parent_node">
106489</field>
</data>
</node>
