• Post Reply Bookmark Topic Watch Topic
  • New Topic

Moderator and Admin permission in Freemarker  RSS feed

 
Greenhorn
Posts: 24
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a question regarding to this expressions:



I have noticed that I cannot use these expression in all the templates. Why is that? What should I do to make them work in other templates.

Please I need help with this. It is a key for my project.

Thank you!
 
author & internet detective
Marshal
Posts: 38170
618
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jackie,
Out of the box, JForum only defines those for some templates. You can make them available to all templates by adding the following to your ControllerUtils.java file:

 
Jackie Bermudez
Greenhorn
Posts: 24
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Jeanne!!! I really really appreciate your help. I just put the code a little different, but with the same idea, and it perfectly worked.

Thank you again!

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 38170
618
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great. The idea is the important part ;). The code I pasted is how we happened to do it here at CodeRanch.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!