• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to disable PMs ?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there !

I'm making some customizations to JForum (2.1.7) and I would like to enable by default email display and disable by default PMs.

I made SSO with some other applications ... it works fine !

The first thing (enabling email displayed) has been successfully done by setting the "jforum_users.user_viewemail" database default value to '1'. But dealing with the same customization for the "jforum_users.user_allow_pm" field does not resolves my problem (I still have access to "private messages" link)

Am I missing something ? (Maybe "pm disabling" is impossible)
I'd like to edit the JForum base source code as less as possible (this is the reason why changing the database default values seat perfectly for my needs ;)) in order to follow JForum new releases =)

Thanks in advance

EDIT: uh oh ... looks like there lies some bug after a post edition =)
[originally posted on jforum.net by Atma]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In fact, you can't disable private messages. Here's the easiest way to do it:

Open the file WEB-INF/config/modulesMapping.properties, and remove the "pm" section. Then, just remove the links that point to the private messages page.

That's all.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay thanks to you rafael
[originally posted on jforum.net by Atma]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing a serious problem o_O ...

When looking for the .htm template where there is the "Private Messages" link (in the header), I can't reach the file where this link ("ForumBase.privateMessages" properties key) is located

Even when I look for "icon_mini_message.gif" (the little icon I have to the left) in every file content, I can't find any result which corresponds to my needs ... Is this normal o_O ?
[originally posted on jforum.net by Atma]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The files are pm_*.htm

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no it's ok I solved my problem ... the link I was looking for was in the header.htm ... but eclipse didn't search into it because of an invalid file encoding

Nevertheless thanks to you = )
[originally posted on jforum.net by Atma]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic