xoops forums

fabou78

Friend of XOOPS
Posted on: 9/12 15:00
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#1

NewBB 5.0 loading wrong template?

I have an issue on NewBB 5.00 where the web page is loading with unresolved smarty constant like this

_MD_USERS_ONLINE 1 _MD_BROWSING_FORUM
[ _MD_ADMINISTRATOR ] [ _MD_MODERATOR ]
0 _MD_ANONYMOUS_USERS
1 _MD_REGISTERED_USERS

I suspect that the template that is loaded when I click on furum is themes/xbootstrap/modules/newbb/newbb_index.tpl since I am running the xbootstrap theme. In that file all smarty constants are in the form of “_MD_XXXXXXX”.

However, if I look in modules/newbb/language/english/main.php all constants are in form of “_MD_NEWBB_XXXXXX".


I found out that the template here modules/newbb/templates/newbb_index.tpl make reference to the correct constants format “_MD_NEWBB_XXXXXX".

How can I force XOOPS to load newbb_index.tpl from modules/newbb/templates/ instead of loading it from themes/xbootstrap/modules/newbb/ ?

fabou78

Friend of XOOPS
Posted on: 9/12 20:04
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#2

Re: NewBB 5.0 loading wrong template?

UPDATE: I have downloaded the latest version of XOOPS 2.5.10 and NEWBB 5.00 from github and tried the install a few time on my Linux server, I still encounter the same problem with the forum display.

Would be glad if someone confirm they see the same issue

Mamba

Moderator
Posted on: 9/13 0:54
Mamba
Mamba (Show more)
Moderator
Posts: 10777
Since: 2004/4/23
#3

Re: NewBB 5.0 loading wrong template?

Go to the /EXTRA folder in NewBB 5.0 and copy the /xbootstrap folder to the /themes folder.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

fabou78

Friend of XOOPS
Posted on: 9/13 20:50
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#4

Re: NewBB 5.0 loading wrong template?

Thanks, it worked.

Mamba

Moderator
Posted on: 9/15 9:49
Mamba
Mamba (Show more)
Moderator
Posts: 10777
Since: 2004/4/23
#5

Re: NewBB 5.0 loading wrong template?

I'm happy to hear that!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs