I'm also struggling to get my head around this
I am trying to access a phrase from within a vbA CMPS module I am writing
OK I know I could/should? ask this in the vbA forums but I thought you helpful lot could help me here?
I've had a look around in another php file (usercp.php) where the phrase I want is available in the $vbphrase array
However in my module the $vbphrase array does not contain the phrase I want.
Also the $vbphrase array in my custom module contains quite a lot of phrases whether I put require_once('./global.php'); in my file or not
I have also tried adding $phrasegroups = array('user', 'infractionlevel'); I got that from usercp.php so assume one of those phrasegroups contains the phrase I want to use?
None of this helped any
So I am also wondering where does this $vbphrase array get built and how do I choose what phrases I want to be in it?
I know I could get around all this hassle by putting the text string I want to use directly into my php (I only want to access a couple of phrases anyway) but I would like to know how to do it the proper way
cheers
Rich
|