Random Pagan Verse

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

Previous topic - Next topic

vbgamer45

Link to Mod



Random Pagan Verse
Created by Runic


Support | Donate


Compatibility
For SMF 2.0.2

Introduction

This is a combination of four pagan texts, you can choose from:


       
  • Random Havamal Verse
  • Random Wiccan Rede Verse
  • Random Witch's Law Verse
  • Random Thelema Quotation
Or if you wish to show them all this is also possible.

The mod combines all the files into 1 language file and gives users the option of displaying what verse they would like to display.

This mod is designed for a Pagan Community.

This work is licensed under a closed license.  Please contact Runic for more information.

A very big thank you goes to IchBin for updating this mod so that it makes no file edits and so that it works with all portals!!
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Fussilet

good idea for holy books (Kuran, Torah, Bible, Psalter,Zarathustra, Buddha etc...)

nice mod...


Deaks

Thank you Fussilet it has actually been available for ages on my own site, just felt it was time to get more people interested in it, my site has many mods and themes taht arent available on here.
~~~~
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."

DarkAngel612

I had the rede for 1.1.16 but now that I have 2.0.2 I would like to install it again...however,

I have downloaded it several times and tried to install it but as you can see this is the error I get--please see image

I checked the files and this is what it is looking for in the boarddir/index.php:

// Action and board are both empty... BoardIndex!

this does not appear in the file at all.

How to fix?

Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

can you attach you index.php please, I just tested on my 2.0.2 forum and it works fine, so I am guessing that a mod has removed that line.
~~~~
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."

DarkAngel612

I never thought of that, here it is
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

try this, the issue is that TinyPortal removes that line.  I havent tested this and I refuse to install a crap portal just for testin it
~~~~
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."

DarkAngel612

that's fine, I tried it by overwriting the one on the server with this one and it just will not show up at all.

I will just uninstall it and transfer the lines to images and have a banner that rotates with them...all is good but thanks anyway.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

did you install the mod then overwrite with this one?
~~~~
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."

DarkAngel612

yes, installed mod, got error about the index file hit install anyway.

then uploaded the one you supplied and overwrote the installed one...was I not supposed to?
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

and did you turn the mod on?
~~~~
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."

DarkAngel612

yes sir I certainly did and choose the two I wanted to show but nada
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

~~~~
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."

DarkAngel612

still no go.

don't worry sweety, I don't mind making images as banners for the forum.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

hmm its pissing me off thats why ... should use a decent portal like Simple Portal ... works with that :D
~~~~
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."

DarkAngel612

well for some odd reason no matter what it won't show and it is frustrating when it should but decides not to. but tis ok, really. I have had TP since day 1 five or so years ago and sorta know how to wrangle it to behave...I am weird, I like it...lol

If you want to keep trying tis fine I will test the file but don't hurry on my account.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

DarkAngel612

ok how weird is this.

mebbe I misunderstood where it is supposed to be seen...was thinking forum board index page so no it is nekkid


but right now I went to one of the category topics and lo and behold there is the  little centered block showing up but


yes there is a but


on the default smf theme it is in a boundary box centered but in the theme I have for to show (BlazeDark) it is not centered and it is not in a boundary box...prefer it not centered...

so is it supposed to show in main forum page or just the category---would love it in the main forum page only
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

should show in both :/  is the text displaying?
~~~~
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."

DarkAngel612

yes text displays, placed the css code into the themes css file so that it is showing on the dark back with nice red border too.

but tis only when you leave the main board page that you see it...in the individual boards only.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Deaks

can you send me link please :)
~~~~
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

#20
I believe that the problem is indeed your portal mod...

The issue is that the portal mod assumes control of the "home" page....   and, in some cases, it appears that this assumption screws up several mods that target the same area or use that area of code to set themselves.

i.e. Every portal mod that I have tried (except ADK Portal) kills the ADK Blog mod
I know that the random verse mod works with SimplePortal and EZPortal...   I don't know about ADKPortal, PortaMX or Tiny Portal
Сл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

more trying to get it to work with the portal aswell :)
~~~~
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."

DarkAngel612

http://angelwingcreations.thefantasiesattic.net/forum/index.php?action=forum

it shows on the portal page and in the category/topic areas but not main board index.

just my own personal site that has no members.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

IchBin™

#23
Quote from: Kindred on April 22, 2012, 06:52:32 PM
I believe that the problem is indeed your portal mod...

The issue is that the portal mod assumes control of the "home" page....   and, in some cases, it appears that this assumption screws up several mods that target the same area or use that area of code to set themselves.

i.e. Every portal mod that I have tried (except ADK Portal kills the ADK Blog mod)
I know that the random verse mod works with SimplePortal and EZPortal...   I don't know about ADKPortal, PortaMX or Tiny Portal

Yes, the problem is indeed that the portal assumes control of the section where an action is not set. SimplePortal will have the same exact problem. The problem will show in at least SP, TP, and PMX from what I recall of how they work. 

I guess those portals are "crap" too? ...

Either way, this could be fixed in this mod if it was wrote using hooks. Wouldn't even require file edits if it did.
IchBin™        TinyPortal

Kindred

Ummmm... You quoted me, but I never said that any portal was crap...
Сл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."

IchBin™

Yeah I should of hit return there eh? :D Wasn't directed at you.
IchBin™        TinyPortal

Deaks

IchBin, bad news for you this mod works fine with SimplePortal or it did when I tested it.  So please chillax.

And I dont think all portals are crap ... just the ones you have touched :P

(Brad before you go cry the tongue is there to indicate a joke)
~~~~
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."

IchBin™

Actually no it doesn't work with simple portal. It has the same effect on SP that darkangel was indicating that it had on TP. I just tested SP, TP, and PortaMx. And the mod behaves the same on all of them as I mentioned it probably would. While the install problem was because of TP removing the comment, the problem with your quotes for this mod displaying is what I'm referring to.

If you'd like I can show you a way to code this so it would work on any site without having to worry about file edits.
IchBin™        TinyPortal

Deaks

please would save me alot of time and would hopefully solve this issue :)
~~~~
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."

IchBin™

Quote from: Runic on April 23, 2012, 11:00:08 AM
please would save me alot of time and would hopefully solve this issue :)

Check it out Runic. This why hooks are so cool! No file edits required now. Credit goes to Emanuele for the cool do_hooks.php code though. :) The rest is just a matter of knowing what the hook does and how it's used.

Although I'm not sure if you intended the quotes to show on all pages, that's what it does for now. :) You can throw in some checks to avoid that if people want though. Anyway, here's the zip.
IchBin™        TinyPortal

kyhk

How change text from Havamal Verse ?

DarkAngel612

YES! It now shows on all pages which is ok and all I had to do was find the proper places to add the apostrophe's, additional breaks and give border/color of box/font size....you know just a few tweaks.

Thanks guys
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

IchBin™

Quote from: kyhk on April 23, 2012, 02:16:54 PM
How change text from Havamal Verse ?

Change it in the Themes/default/PaganVerse.english.php file.
IchBin™        TinyPortal

Deaks

Thank you Brad I will update the mod shortly :)

kyhk: out of curiosity what do you feel needs changed in the Havamal, these are the english translations from the words of Odin (browsers wouldnt accept it written in runescript), so I am unsure why you would wish to insult Odin and change his words.
~~~~
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."

Deaks

The mod has been updated to include IchBins, and I do wish to thank him for doing this for me.
~~~~
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."

IchBin™

No problem Runic. It's not real complicated. So this should give you a glimpse into how useful hooks can me. And a reference for others to see too if they need to look at something using them.
IchBin™        TinyPortal

kyhk

I added my own text in PaganVerse.english.php at Havamal please, but still showing original Havamal messages. what is wrong?

Deaks

~~~~
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."

kyhk

My own text
<?php
//Havamal
$txt['paganverse1'] = 'Added text <A HREF="http://www.link.com">link</A>';


and deleted other 165 lines from Havamal but other lines I left.

Deaks

post the exact file .... makes it alot easier to give help ...
~~~~
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."


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: