Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Disable forum section in daily post [?]
#1
Not Solved
Hello guys,

how i can disable the forum section in daily posts? 
I have categories in the forum where i hide all the archive and I would like his posts not to appear in the "daily posts" tab at 

/search.php?action=getnew and /search.php?action=getdaily 


can someone help me ignore certain forum sections in this function?
Reply
#2
Not Solved
custom permissions can be set for the required user groups for each forum.

forum admin panel >> Forums & Posts >> Forum Management --> edit forum --> permissions (tab)

right side of the group contains edit permissions link.
it pops up custom permissions of that user group for the specific forum

miscellaneous tab consists of search forum option ; un-select & save

[Image: iXXQ0mb.gif]

note: also un-select that option for the guests group & other required groups
Reply
#3
Not Solved
thank you for nice solution,
but i wonder if there is possibility to disable it only at functions /search.php?action=getnew and /search.php?action=getdaily

i dont want totaly disable searching topics at forum for this section.
Reply
#4
Not Solved
^ basically that requires modifying search.php file
[can't check the code right now ..]
Reply
#5
Not Solved
probably this is what i looking for, if anyone will have a second to help me modifie it i will be really grateful
Reply
#6
Not Solved
though I do not recommend modifying the core files, here is a method for your requirement

search.php#L1401 and search.php#L1487

find below code at above two lines
$unsearchforums = get_unsearchable_forums();

after that code line
in a new line , add below code segment
if($unsearchforums) $unsearchforums .= ","; 
$unsearchforums .= "'fid'";  // fid  is forum number of required forum eg. 15 


Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel to edit the files.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)