AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Set all topics to private by default

3 Posts
2 Users
0 Reactions
4,537 Views
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tharindu)
Active Member
Joined: 8 years ago
[#6265]

Hello,

I would like the ability to set all topics created on a certain forum to be private by default. Users share sensitive information on this forum and can't take the rise of exposing these information if someone forget to tick the Private Topic.

I understand this is not possible on current version. But hoping someone can give me a code snippet till the feature is implemented. I'm guessing this is not a hard thing to do.

Thanks!


2 Replies
Robert
Posts: 10730
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

It's hard to say if we'll add this in our to-do or not. I'll ask our theme to take this under consideration.

In case you want to do this manually, please open the  /wpforo/wpf-includes/class-template.php file, find this line:

<input id="wpf_t_private_<?php echo $uniqid ?>" name="topic[private]" type="checkbox" value="1">&nbsp;&nbsp;

Change to this:

<input id="wpf_t_private_<?php echo $uniqid ?>" name="topic[private]" type="checkbox" checked="checked" value="1">&nbsp;&nbsp;

Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tharindu)
Active Member
Joined: 8 years ago

Thanks for the reply Robert. I understand that this is not high priority for developers. And may never get added as it's a special requirement.

I believe the code you gave change it globally. Not what I was looking for.  I want it to work on a single forum or category.

Thanks anyway. I really like wpforo.


Share: