Allow Guest access to a Forum on only the front page

Re: Allow Guest access to a Forum on only the front page

by B. Gültekin Çetiner -
Number of replies: 0

Even the users cannot search from the first site although they are registered with many courses. I have allowed guests to login automatically and I want the the guest user being able to search from the front site without logging in.

When I make a search with the guest user (user id=1) with the following http://www.mysdomain.com/mod/forum/search.php?id=1&search=string

it brings if there is anything in the front site forums. However, when I change the 'id=1' to 'id=2' manually, it brings the correct results with the guest login. The content of the course is open to guests. They can login without any problem.

I want the guests to be able to search all forums which exist in courses where guest login is allowed. I think a hack is needed for the front site in mod/forum/search.php. As stated earlier, when we give id=2, it brings the correct results. I have played with SQL by registering the guest (id=1) in all courses, but it did not solve problem.

Thanks a lot.