1
jjcmoney
newbb language file & template question
  • 2004/2/1 3:17

  • jjcmoney

  • Just popping in

  • Posts: 34

  • Since: 2003/5/10


Hello,

I added the following line to the newbb language file, main.php:

define ("_MD_NEWCOMM","New Comments");

I was hoping that I could add <{$lang_newcomm}> to the newbb_viewforum.html template in order to get it to display, but I have had no success. Other changes that I've made to this file are displayed correctly, but it seems that ADDING a definition is the problem, when previously I had only modified a definition that was already included.

Does anyone know how I could add a new definition to the language file and get it to display in a template?

Thanks for your help!

Jody

2
Dave_L
Re: newbb language file & template question
  • 2004/2/1 5:04

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


My guess is that you'd have to add
$xoopsTpl->assign('lang_newcomm'_MD_NEWCOMM);
to modules/newbb/viewforum.php, so that the template variable $lang_newcomm will be defined.

Login

Who's Online

150 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits