PHP & Phpnuke 18 Feb 2006 07:43 pm

How to add or change variable text in phpnuke

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.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply

You must be logged in to post a comment.


Creative Commons License
This work is licensed under a Creative Commons Attribution 2.5 License.