Once in a while I am asked how to add or change variable text in phpnuke. What I mean by this is text that in the phpfile is set as a variable, such as FAQ2 in the FAQ module’s index.php file.

This text is set in the corresponding language files, so in this case, we would look up the line FAQ2 in the modules/FAQ/language/lang-english.php (or whichever language you wanted to change!) file.

You can also add text in this way if say, you wanted to make a custom header, you would define the text blurb in the language file and then call it in your php file.

Advertisements