View Board and Topic Index but not read for Guests

Started by skip, March 10, 2008, 04:14:18 PM

Previous topic - Next topic

skip

I've gone through the 14 page topic which was originally created in order to allow guests to see the entire board index but when clicking on a board that had guest access unticked it asked you to login or register. I did this mod based on Unknown's code to just the board index file

Sources/BoardIndex.php, find:

Code:
WHERE $user_info[query_see_board]
Replace with:

Code:
WHERE ($user_info[query_see_board]" . ($user_info['is_guest'] ? " OR FIND_IN_SET('0', b.memberGroups)" : '') . ")

--> Tips and Tricks.
-[Unknown]

After unticking guest access that worked in 1.1.4 and allowed all my boards to display on the index for guests except a section that was restricted by post based membergroups  :)

I didn't implement any changes to message.index as I didn't need to. (Not sure if this causes any problems?)

That thread then went off on various variations, but I am trying to determine whether I missed a similar simple mod to allow guests to view the topic index's contained within the boards, including the child boards, but not actually read them as they would be prompted to login/register.

So this is where I am now stuck. Rudolf has a View Only Board Mod that seems to allow this, but I want to check whether I would have to delete the code provided by unknown that I am currently using before looking at applying this mod?

As I am using the dilbermc theme I note that the autoinstall wont work and I would have to manually edit the required files.

Thanks

Skip


Advertisement: