Customizing SMF > Modifications and Packages
Random Pagan Verse
kyhk:
here you go http://pastebin.com/fCQLbiPz
Runic:
are you using the other verses or just that 1?
If just that 1 then you need to change the code aswell in paganvervse.template
look for
--- Code: --- $num = rand(1,165);
--- End code ---
change to
--- Code: --- $num = rand(1,2);
--- End code ---
Kindred:
question for you....
I just reopened Ask A Witch Community...
I don't want this to load at the top of the forum... I'd like it to load the verse into a portal block....
Unfortunately, if I turn on any of the options, it shows at the top of the forum (one of the problems with hooks)
So... how about a portal block version? :)
figured it out...
--- Code: ---echo '<div>';
global $txt;
loadlanguage('PaganVerse');
$num = rand(1,250);
if ($num <= 165)
echo '<h3>',$txt['hava'],'</h3><br />';
elseif ($num >= 166 && $num <= 199)
echo '<h3>',$txt['witch'],'</h3><br />';
elseif ($num >= 200 && $num <= 222)
echo '<h3>',$txt['rede'],'</h3><br />';
elseif ($num >= 223 && $num <= 250)
echo '<h3>',$txt['thelema1'],'</h3><br />';
echo $txt['paganverse' . $num];
echo '</div>';
--- End code ---
Runic:
hmm maybe I should look at SP blocks and release it as one lol
Navigation
[0] Message Index
[*] Previous page
Go to full version