News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Look But No Read

Started by Deprecated, August 17, 2008, 08:55:53 PM

Previous topic - Next topic

nwobhm

Thanks for thit great mod. Works nicely.
But I found a backdoor for guests to see posts. They still can see what's been posted on the forum by clicking form the info center: Show recent posts. That way they can see the posts from the forums they should only see, not read.
Is there a way to avoid this? Other than the "Hide info center from guests" -mod.

Deprecated

#61
Okay Linette, and you're welcome! I've manually modified your ModSettings.php and attached it to this post.

First make sure you haven't loaded any mods that change ModSettings.php since you uploaded the file that I modified, or uninstall them before proceeding. Next, download the latest version of Look But No Read which I uploaded mere minutes ago. The new LBNR stores its language strings in Modifications.english.php for better theme compatibility, and should give you a better chance of success.

It might be a good idea to download backup copies of your index.php and Modifications.english.php. I presume the copy of ModSettings.php attached to your earlier post is sufficient backup. If you run into problems you could just copy these three files over to your forum to recover from any errors.

Go ahead and apply the new version LBNR and ignore the error message about not being able to apply the modification to LBNR. The mod installer should apply LBNR's changes to other files and will leave ModSettings.php alone. When installed, upload the copy of ModSettings.php that I modified so that it will copy over the site's ModSettings.php. That should complete the installation of your LBNR and it should work for you after you have configured it in Features and Options.

Let me know how it works out. :)

Deprecated

Quote from: nwobhm on August 30, 2008, 12:53:26 PM
But I found a backdoor for guests to see posts. They still can see what's been posted on the forum by clicking form the info center: Show recent posts. That way they can see the posts from the forums they should only see, not read.

I appreciate the feedback but I believe that you are mistaken. I've just made some test posts at my demo site and I am unable to read them when I am not logged in.

Please recheck your settings and verify that they work the way you want them to from the board index, then try the info center again. Note that my demo site is SMF 2.0 so let me know if you're running 1.1.5 and still have the problem, and I'll test it on my 1.1.5 test forum. Please let me know your findings.

Deprecated

Quote from: zijO on August 29, 2008, 09:28:31 PM
It looks similar to "View only boards" mod, where permission can be set for any group.

I am waiting for mod to be available for SMF2.

There is also "frustrate guests" which is similar.

It would be good to put it all together.

Any resemblance is purely coincidental. The names have been changed to protect the innocent. Portrayal is by stunt actors. ;) Besides, I don't want to frustrate my guests. I just want to encourage them to become members on the theory that they might like it and start participating. :)

I'm sure there are similar modifications particularly in the 1.1.5 area. Mine is not intended to be an exact replacement and you may prefer the functionality provided by the other mods over my own mod. YMMV

But... Mine already works on SMF 2.0. :) And it works on 1.1.5 too! :)

linette97

#64
Ok Dep! Thanks for all your help.

I followed your instructions to the T. I did not install any mods. I uploaded the copy of the file you attached and when I clicked on "Features & Options" I got this

QuoteParse error: syntax error, unexpected ']', expecting ')' in /var/www/vhosts/bxwarez.com/httpdocs/Sources/ModSettings.php on line 120

Looks like there is something there that is not suppose to be there.  SOOOOO being the curious and love to learn person I am... I went ahead and downloaded Notepad++ (so I can find those damn lines!!)

Found this on line 120
'lbnr' => 'ModifyLbnrSettings', ]]) </add> With trial & error, little by little I removed each until I did not get the error anymore! YAY!! I did it!

I got into "features & Options" and found
        Enable guest browsing control:     
   Categories to deny guest reading:    
   Boards to deny guest reading:

Ok now for the good stuff.. HOW do I configure this thing??? I tried different ways...

Do I need to enable/disable quest access when Modifying boards? Under Boards->Modifiy Boards
Do I Uncheck/check Allow guests to browse the forum? Under Features & Options->Basic Features

I want the quest to be able to see the whole front index but once they click on a board they can not go in. for instance
Category: Important Announcements
Boards under: Announcements
                        Introductions
                        Feedback & Suggestions

So they can SEE all this but can not click on lets say Introductions to see the topics inside
which will make them have to register.

Can you please explain. Thanks again for your time!!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

Deprecated

Okay Linette (and I really like your name :) )... I want to make sure we are on the same line here.

I understand that I muffed your manual edit and I'm sorry. It's hard enough to keep my mod packages clean, and that's because I install/remove/test/retest them countless times. Your average mod author has probably tested his mod a couple hundred times before you can download it. A manual edit is tested once, by you. I'm glad you straightened it out and you are very clever. :)

Please visit my demo site to see a live demonstration of LBNR. You need to enable full access for guests to read every forum, then you use LBNR to keep them from reading boards or categories you pick. Please visit my demo site and see how it works, and then if you can't get your site to work the same way feel free to post a support request and I'll look into it. Include your site URL and the correct numbers for the boards or categories you wish to restrict to guest viewing. Send a PM if you don't want to post your board URL for the public and I'll promise to keep your data private. :)

linette97

Thanks Dep!! That's my real name too! LOL!

I understand completely about all the work you guys have to do! I have mad respect for you because of that! it takes a lot of patience!

I will visit your demo site and get back to you and let you know if I was able to do it! Thanks again for your dedicated efforts on helping us!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

linette97

I DID IT! I figured it out! Whooohooo! LOL! Thanks so much again Dep! You are the MAN!! Keep these amazing mods coming!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

Deprecated

That's great Linette! I love my fans and I'm so pleased that my mod worked for you. Please feel welcome to post again if you have any other questions or problems about my mod. Click my signature below if you'd like more info about my other mods.

I have a new mod coming out shortly that has been very well received by people who I can't mention due to confidences (i.e PMs). I have yet a few more coming that will blaze new grounds. I have my own very small hobbyist forum, just cracked the 6 week 50 member level this week, and I'm writing these mods for myself and my own forum, but there's no sense in keeping them to myself because the labor is already done by the time you see them.

Each new mod is a thrill for me because I just can't wait to see the reaction from the SMF community, and you all have been so nice to me! This is as close as I'll ever get to being a rock star. I'm so pleased that you enjoy my music! :)

My new mod is in the approval queue, has already been vetted once, and I revised it to satisfy our very critical Customizations Team (and rightfully so!), and I think I got their last critique satisfied today. I hope you'll like the new one too! We'll discuss it in that support thread.

Miyagi

after a little bit of manual massage this is working a treat on 3 of my forums. :)
FordXR5Turbo.com - Dedicated to the Ford Focus & Mondeo XR5 Turbo in Australia
FordXR4.com - Dedicated to the Ford Fiesta XR4 in Australia

nwobhm

Quote from: Deprecated on August 30, 2008, 06:46:49 PM

I appreciate the feedback but I believe that you are mistaken. I've just made some test posts at my demo site and I am unable to read them when I am not logged in.

Please recheck your settings and verify that they work the way you want them to from the board index, then try the info center again. Note that my demo site is SMF 2.0 so let me know if you're running 1.1.5 and still have the problem, and I'll test it on my 1.1.5 test forum. Please let me know your findings.
I did recheck settings and permissions for guests.

When I give guests a permission to see some boards and then I limit via this mod that they cannot see the posts on those categories and boards, it works fine, but they still can see the posts by clicking the "Show recent posts" from infocenter.
And if I don't give the permission to see a certain board or category, ttey cannot see anything, then it doesn't matter what kind of limitations I have set up with this "look but no read" -mod.

Deprecated

Quote from: nwobhm on August 31, 2008, 03:15:49 AMWhen I give guests a permission to see some boards and then I limit via this mod that they cannot see the posts on those categories and boards, it works fine, but they still can see the posts by clicking the "Show recent posts" from infocenter.

Please visit my demo site (see my signature) and note the two posts titled "test," and then compare that to what your seeing on your own forum. Perhaps one or both of us is not communicating well and maybe we are talking about different things. As far as I know there is no way to read those posts without logging in.

The LBNR code puts up a road block in the middle of your index.html and flags down guests, looks at where they are going, and if it's to a forbidden board or category it kicks them to the login screen. I don't care how much the guests know about the thread (it's URL) they don't get to go to the thread. I won't try to tell you that I know how every line of code in SMF works, but I'm not aware of any way to read threads without going through index.php.

Check it out and if you're still having a problem I'll visit your site and see if I can figure it out from that. If you want a site visit tell me the URL and which categories and boards you have restricted. Send it via PM if you don't want to make it public and I'll keep the information confidential.

jlove207

#72
I'm having a hell of a time trying to get this to work. I've uploaded the mod. I installed it and I received no errors. It states that it installed perfectly but I do not see the feature in the admin panel. I've looked everywhere.

I've looked into the configuration panel in "features and option" but do not see it.

I'm willing to pay somebody to get it to work. I have light php experience just enough to add things like a header and play with smaller aspects of code, but I have no clue how to modify the program to make it work.

Can someone help me.

jlove207


Poolpy

Thanks You Are A Lifesaver

Deprecated

Jlove please tell us which version SMF you are running. Please attach the modified files to your reply post, particularly your ManageSettings.php or ModSettings.php (version dependent) and your Modifications.english.php. Also for 2.0 attach your Admin.php. Actually you should attach all modified files. And always, whenever you post a support request at SMF, state your SMF version. Otherwise you will inevitably be asked to post it, and you won't get any help until you do. Helping you often depends on which version you are running.

jlove207

Quote from: Deprecated on September 02, 2008, 10:07:21 AM
Jlove please tell us which version SMF you are running. Please attach the modified files to your reply post, particularly your ManageSettings.php or ModSettings.php (version dependent) and your Modifications.english.php. Also for 2.0 attach your Admin.php. Actually you should attach all modified files. And always, whenever you post a support request at SMF, state your SMF version. Otherwise you will inevitably be asked to post it, and you won't get any help until you do. Helping you often depends on which version you are running.

Sorry for my lack of info. I'm new to the forum mod thing. My SMF version is 1.1.5 I'm including the ModSettings.php.

Thank you for your assistance.

jlove207

nwobhm

Hi again.

Just testing on my forum guests seeing recent posts on those boards I have blokked guests from seeing the actual board or thread.
The boards visible, I have set permission to see the board, for guests. There should be three of them. And I have enabled LBNR on those boards, categorywise. Guests can see the boards, which is good ( LBNR is working ), guests can even see the threads, but not messages ( LBNR is working like it should be ).
But if I hit this address: http://bbhorot.tarse.org/index.php?action=recent
guests can see the messages, I have blokked via LBNR.
And this is my forum addy: http://bbhorot.tarse.org/index.php

Deprecated

Jlove, the mods got into your ModSettings.php perfectly. I installed LBNR on my 1.1.5 test forum and compared your file to my file and they are identical.

Either:

1.) Go to the mod site and hit the "Manual Install Instructions" button and use that to verify that all the changes got in

Or

2.) Attach your index.php and Modifications.english.php files to your next post and I'll do it.

You might also try manually putting the language strings in your index.english.php file. Let us know if you have any mod packages or other non-standard stuff going on at your forum.


One other thing that is maybe a long shot. Maybe you're looking at it and don't see it. On your Admin -> Configuration -> Features and Options page, you should see a menu BASIC FEATURES, LAYOUT AND OPTIONS, LOOK BUT NO READ, KARMA. You have to hit the LOOK BUT NO READ tab before you will see LBNR's settings.

Deprecated

Quote from: nwobhm on September 02, 2008, 03:20:52 PM
Hi again.

Just testing on my forum guests seeing recent posts on those boards I have blokked guests from seeing the actual board or thread.
The boards visible, I have set permission to see the board, for guests. There should be three of them. And I have enabled LBNR on those boards, categorywise. Guests can see the boards, which is good ( LBNR is working ), guests can even see the threads, but not messages ( LBNR is working like it should be ).
But if I hit this address: http://bbhorot.tarse.org/index.php?action=recent
guests can see the messages, I have blokked via LBNR.
And this is my forum addy: http://bbhorot.tarse.org/index.php

I'm sorry man, I went to that page and I don't see any messages. All I see is this:


BB Hörhöt > Tuoreimmat viestit
Sivuja: 1 ... 5 6 [7] 8 9 10
Sivuja: 1 ... 5 6 [7] 8 9 10


No matter what I click I don't see any messages.

nwobhm

Quote from: Deprecated on September 02, 2008, 04:45:43 PM


I'm sorry man, I went to that page and I don't see any messages. All I see is this:


BB Hörhöt > Tuoreimmat viestit
Sivuja: 1 ... 5 6 [7] 8 9 10
Sivuja: 1 ... 5 6 [7] 8 9 10


No matter what I click I don't see any messages.
Click again this http://bbhorot.tarse.org/index.php?action=recent

Advertisement: