News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Random Pagan Verse

Started by vbgamer45, January 13, 2012, 06:00:35 PM

Previous topic - Next topic

Deaks

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

      $num = rand(1,165);

change to

      $num = rand(1,2);
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Kindred

#42
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...


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>';
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Deaks

hmm maybe I should look at SP blocks and release it as one lol
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: