Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Deprecated on August 17, 2008, 08:55:53 PM

Title: Look But No Read
Post by: Deprecated on August 17, 2008, 08:55:53 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1332)

Obsolete
Title: Re: Look But No Read
Post by: evil-angelist on August 18, 2008, 06:17:31 AM
Thats quite interesting (the psychology behind it).
Title: Re: Look But No Read
Post by: Deprecated on August 18, 2008, 08:07:11 AM
Here's the contents of the modification's readme.txt file:

Look But No Read

Version: 1.1 Date 2008-08-21
Compatibility: SMF 1.1.5, SMF 2.0 Beta 3.1 or later

One problem with SMF's permission based control of guest access is that it's an all or nothing proposition. Some forum operators would like allow guests to read the board index but not be able to read the topics themselves. In theory this increases membership by encouraging guests to register so that they can read what they've been missing.

This modification adds a different means of controlling the ability of guests to read topics. First configure SMF to allow guest access into all boards that you want them to see and may want them to be able to read. Then use Look But No Read's configuration in Admin settings to select specific categories and boards where you want to prevent their reading topics. They will still be able to see the board index including all the topic titles, but they will be taken to the "Please login or register" page if they attempt to read any topics.




The Look But No Read configuration settings are located in Admin -> Configuration -> Modifications -> Look But No Read (SMF 2.0), or in Admin -> Configuration -> Features and Options -> Look But No Read (SMF 1.1.5). The following settings are provided:

Enable Guest Browsing control     [ ]

Categories to deny guest reading  [__________]

Boards to deny guest reading      [__________]





You may list multiple categories or boards by using commas to separate them. Use only integer numbers. You may select either categories or boards or both. There is no need to enter boards if their parent category is listed because a category denial denies access to all boards in that category including child boards.

You can determine the category number by hovering your mouse over a category link and look for c=#; in the browser's link preview area, where # is the number that you enter into in the categories area.

By the same means you can hover over a board link and look for board=#.0; to get the number that you enter into the boards area. Ignore the ".0" and use only the integer part.

You can enable and disable this modification without losing your settings by using the "Enable Guest Browsing control" check box.

Note that the default setting is that the modification is disabled and no categories or boards are selected. Remember to enable guest browsing control after you have selected which categories or boards to deny to guests. Hit "Save" and the modification will begin operating. Logout to become a guest and test your settings to verify that they are as you intended.




Example of denying guest reading of category 3, and also denying guest reading of boards 2 and 6:


Enable Guest Browsing control     [x]

Categories to deny guest reading  [3_________]

Boards to deny guest reading      [2, 6______]





You may get support or submit questions and comments in the modification's support thread at the SMF site.
Title: Re: Look But No Read
Post by: SwapsRulez on August 18, 2008, 01:31:08 PM
What about bots ? Can you allow them to enter while keeping guests away ? :P
Title: Re: Look But No Read
Post by: Basie on August 18, 2008, 01:47:55 PM
Can I use this mod to deny access to a specific board? (rather than just the topics within it).

For example - The board name will be visible on the main index, but if a guest clicks it then they are taken to the log-in/register screen?
Title: Re: Look But No Read
Post by: Deprecated on August 18, 2008, 02:52:55 PM
Quote from: evil-angelist on August 18, 2008, 06:17:31 AM
Thats quite interesting (the psychology behind it).

I guess the psychology is that if you hold a bit back from somebody perhaps they will be encouraged to register, with the hope that once registered they will become contributing members. Even if they don't participate it indicates an interest in your forum.
Title: Re: Look But No Read
Post by: Deprecated on August 18, 2008, 03:01:36 PM
Quote from: Basie on August 18, 2008, 01:47:55 PM
Can I use this mod to deny access to a specific board? (rather than just the topics within it).

For example - The board name will be visible on the main index, but if a guest clicks it then they are taken to the log-in/register screen?

You can deny guests the ability to read posts on any board, but the board index and topic titles will still be visible. If you don't want guests to see the board index and titles, just set the board permissions to exclude guests entirely. They won't even see the name of the board or have any indication that it's there.

The purpose of the mod is to allow you to pick which categories or boards to show the index and titles but the guests will not be able to read the posts. You hope they will register to be able to read the full forum. Whether it works or not each must decide.
Title: Re: Look But No Read
Post by: Basie on August 18, 2008, 03:44:09 PM
Yes but by default on SMF it is impossible to set a board on the index so that guests can see it but not access it.

With SMF if you deny guests access then they won't be able to see that the board even exists.

So if I have a 'members only' forum guests cannot see it, and thus will be less likely to register.

With this hack they can see the board, but they can also read the topic titles.

What I want is guests to see the board title on the index (so that they know it exists), but not access it.
Title: Re: Look But No Read
Post by: Adish - (F.L.A.M.E.R) on August 18, 2008, 05:30:00 PM
:) lets have a try to get as many bugs as i can find.. :P just kidding.. its a very good mod..
Title: Re: Look But No Read
Post by: Deprecated on August 18, 2008, 05:55:16 PM
Quote from: Basie on August 18, 2008, 03:44:09 PM
What I want is guests to see the board title on the index (so that they know it exists), but not access it.

Well obviously that is not what Look But No Read does. Considering I've submitted 9 mod packages in the last 12 days (admittedly some of them small) and one more small package ready to upload (more of a fix), I'm kind of burned out and at the present I don't have any plan on adding that feature.
Title: Re: Look But No Read
Post by: BOS4O on August 18, 2008, 06:38:59 PM
works with 1.1.5 ?
Title: Re: Look But No Read
Post by: Deprecated on August 18, 2008, 07:00:56 PM
Quote from: BOS4O on August 18, 2008, 06:38:59 PM
works with 1.1.5 ?

Edit: Yes, I have now modified LBNR to work with SMF 1.1.5. See details below.
Title: Re: Look But No Read
Post by: BOS4O on August 19, 2008, 02:59:55 AM
ok tnx for the info :)
Title: Re: Look But No Read
Post by: Deprecated on August 20, 2008, 09:01:20 PM
Good news!!! :)

It appears that my initial pessimism was unwarranted. I was digging into SMF 1.1.5 today, trying to figure out if I could make LBNR work with 1.1.5, and I discovered all the reasons why it just wasn't worth the trouble to modify it to work with the old dilapidated SMF 1.1.5.

Unfortunately, at the same time I figured out how to make it work. :) I have what appears to be a viable release candidate that works on both 2.0 and 1.1.5, and I intend to release it tomorrow when I have finished my local testing.

It turned out that it is a lot more trouble for mod authors to release bi-versional modification packages, but open source software isn't about doing what's easy. It's about doing what is necessary and what is desirable.

So you 1.1.5 people, hang loose, it appears that LBNS will be available for both supported versions of SMF by some time tomorrow!!! Yay!!! ;)
Title: Re: Look But No Read
Post by: Tanks on August 21, 2008, 02:20:11 AM
Great job - how will this mod affect the RSS feeds ?
Title: Re: Look But No Read
Post by: Deprecated on August 21, 2008, 10:17:46 AM
Look But No Read new version 1.1 now supports both SMF 2.0 and SMF 1.1.5!!!

Okay gang, I've updated the code and it now works with both SMF versions. :)

I'm continuing to provide the old 1.0 version in case anybody has deleted their package at their site, and needs a fresh copy for removal. Do not use the 1.0 version of LBNR for new installations.
Title: Re: Look But No Read
Post by: Deprecated on August 21, 2008, 10:18:52 AM
Quote from: Tanks on August 21, 2008, 02:20:11 AM
Great job - how will this mod affect the RSS feeds ?

I don't know because I don't do RSS. I will appreciate if some RSS enthusiast will look into it and let us know. Thanks!
Title: Re: Look But No Read
Post by: BOS4O on August 22, 2008, 01:41:03 PM
lolllll GREAT JOB MAN!! can you tell me if the google bots can read the things in the boars because i don't want to read my posts
Title: Re: Look But No Read
Post by: Deprecated on August 22, 2008, 01:48:04 PM
The Googlebot and other web crawlers are guests as far as your forum is concerned. If the guests can read the posts the bots can index them. If the guests cannot read the posts, like if LBNR oprevents it, then the bots cannot index the pages.
Title: Re: Look But No Read
Post by: jiraya on August 22, 2008, 06:23:58 PM
and to the group members?
i want  a group of members look but not read.
Title: Re: Look But No Read
Post by: Deprecated on August 22, 2008, 06:36:28 PM
It can be any group you like as long as it's the guests group. :)

LBNR was not intended to be any more complicated than it is, nor to tackle anything more challenging than letting guests read the board index, look at the topic titles, but no read the topics.

The purpose of this modification is to hopefully encourage some of the guests to register and become members. Anything else is outside the design intent of this mod. Sorry.

Perhaps at some future date I might entertain the idea of further development.
Title: Re: Look But No Read
Post by: jiraya on August 22, 2008, 06:38:09 PM
Quote from: Deprecated on August 22, 2008, 06:36:28 PM
It can be any group you like as long as it's the guests group. :)

LBNR was not intended to be any more complicated than it is, nor to tackle anything more challenging than letting guests read the board index, look at the topic titles, but no read the topics.

The purpose of this modification is to hopefully encourage some of the guests to register and become members. Anything else is outside the design intent of this mod. Sorry.

Perhaps at some future date I might entertain the idea of further development.
i have a forum with regular member and vips.
I want that the regulars members see all topic in VIP category but not read
Title: Re: Look But No Read
Post by: Deprecated on August 22, 2008, 06:55:54 PM
Let me give it some thought. These things often appear more complicated than they turn out to be, and maybe there is an easy way to get what you want. I'm not so sure I want to add that to the modification, but I might be able to work out some manual edits for you, change your functionality from guests vs. logged in to regular members vs. vip members. It would replace the previous function, would not work with guests vs. logged in any more. Would that accomplish what you want?

It seems to me that only the index.html would have to be modified. It appears that if we replace $user_info['is_guest'] with something that is true for regular members and false for vip members, that might do the job. Your action would be that the member gets thrown to the login page, but we might be able to just return them to the index by using redirectexit() instead of the return 'KickGuest' method.

What do you think?
Title: Re: Look But No Read
Post by: jiraya on August 22, 2008, 07:03:14 PM
Quote from: Deprecated on August 22, 2008, 06:55:54 PM
Let me give it some thought. These things often appear more complicated than they turn out to be, and maybe there is an easy way to get what you want. I'm not so sure I want to add that to the modification, but I might be able to work out some manual edits for you, change your functionality from guests vs. logged in to regular members vs. vip members. It would replace the previous function, would not work with guests vs. logged in any more. Would that accomplish what you want?

It seems to me that only the index.html would have to be modified. It appears that if we replace $user_info['is_guest'] with something that is true for regular members and false for vip members, that might do the job. Your action would be that the member gets thrown to the login page, but we might be able to just return them to the index by using redirectexit() instead of the return 'KickGuest' method.

What do you think?
i want the 2 functionality, if possiblity.
dont it possiblity make another mod but only for the regular members?
Title: Re: Look But No Read
Post by: BOS4O on August 22, 2008, 07:14:40 PM
ok tnx again cool mod  :)
Title: Re: Look But No Read
Post by: Deprecated on August 22, 2008, 07:15:01 PM
I'm sorry, the additional functionality exceeds my task loading to alloted time parameters. But I might be able to get the members vs. vip thing working for you on a manual edit.

If interested, let me know how your vip members are different. I presume they are in a different primary member group? Or additional member group?
Title: Re: Look But No Read
Post by: jiraya on August 23, 2008, 04:16:21 PM
Quote from: Deprecated on August 22, 2008, 07:15:01 PM
I'm sorry, the additional functionality exceeds my task loading to alloted time parameters. But I might be able to get the members vs. vip thing working for you on a manual edit.

If interested, let me know how your vip members are different. I presume they are in a different primary member group? Or additional member group?
thanks anyway, but its more difficulty, i have two members VIPS, VIPS normal and VIP FOREVER.
Title: Re: Look But No Read
Post by: Deprecated on August 23, 2008, 06:30:54 PM
Well are they different member groups or what? When you admit somebody to the VIPs do you change their primary member group or do you add the VIP member group to their primary setting?
Title: Re: Look But No Read
Post by: jiraya on August 24, 2008, 05:19:02 PM
Quote from: Deprecated on August 23, 2008, 06:30:54 PM
Well are they different member groups or what? When you admit somebody to the VIPs do you change their primary member group or do you add the VIP member group to their primary setting?
yes, they are different member groups.i change their primary member group
Title: Re: Look But No Read
Post by: Deprecated on August 24, 2008, 07:01:30 PM
Then give me the primary member group for your VIPs. The number.
Title: Re: Look But No Read
Post by: Armin2008 on August 24, 2008, 07:15:18 PM
Well done. I was looking for something like this. Thanks
Title: Re: Look But No Read
Post by: anakmacan on August 25, 2008, 08:29:58 AM
I did manual edit, and "features & options& >"Look but no read">"check enable guest browsing control" and fill out boards & categories number", but the mod still doesnt work man..board & categories & also posts are visible,  will you help me with this?
im using 1.1.5, my other mods are..

Quote1.     SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Pretty URLs - Base    0.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    AdSense Section Targeting Mod    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
4.    Referrals Mod    1.4    [ Uninstall ] [ List Files ] [ Delete ]
5.    Custom Profile Field Mod    3.17    [ Apply Mod ] [ List Files ] [ Delete ]
6.    RemovePM    1.1.4    [ Uninstall ] [ List Files ] [ Delete ]
7.    rateTopic    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    Double Post Stopper    1.0.1    [ List Files ] [ Delete ]
9.    Add Domaintools to TrackIP    1.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF 1.0.11 / 1.1.3 Update    1.1    [ List Files ] [ Delete ]
12.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    SMF Sitemap    1.2.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Look But No Read    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
15.    View Only Boards    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
16.    SMF Gallery Lite    1.8.1.2    [ Uninstall ] [ List Files ] [ Delete ]
17.    Easy Edit Meta Data    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMFbuy    1.2    [ List Files ] [ Delete ]
19.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ List Files ] [ Delete ]
20.    Social Bookmarks    1.1    [ Uninstall ] [ List Files ] [ Delete ]
21.    Prevent Adding Signature Images And Links
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 09:10:18 AM
"Doesn't work" gives me nothing to go on. Post a link to your site or PM me. Include category and board numbers you have restricted. Also, attach a copy of your index.php to your reply.
Title: Re: Look But No Read
Post by: bullbreedluverz on August 25, 2008, 06:27:39 PM
im having a problem with this mod and the rules mod with installing them

i have 1.1.5 and a few mods but also a slightly edited default theme in that the header area has been changed

my mods are;

E-Arcade  2.5.0      
MCLegendII.2    2.0    
FlashChat Integration 1.0    
Auto Embed Video/Audio Clips 3.1.2    
Todays Birthday    0.1    
Affiliates    1.1    
Welcome Topic Mod    1.1    
Advanced AJAX Shoutbox  1.21    
Age and Gender Board Filter

i get the following error

1.     Execute Modification     ./index.php     Test failed
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful

is there any known issues with any of the mods i have installed or could it be the changes to my default theme header that is causing the problem

www.bullbreedluverz.com/smf
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 06:36:19 PM
It is quite possible that one of the other mods changed the target line for my mod. For example I've added a global to the index.php right after the globals list for function smf_main(). I added it after rather than adding to the list because if another mod looks for that globals list as a target, it wouldn't be there anymore if I changed it. That's why i put my added global on the next line.

It's difficult to imagine anybody changing the next target: // Is the forum in maintenance mode? (doesn't apply to administrators.)

The final target is probably the most likely problem: elseif (empty($_REQUEST['action'])) ... if somebody added another condition to that then my mod won't be able to find it.

If you would like my advice in manually adding this modification, please attach your index.php and ModSettings.php to a post, and I can look into it and find the problems. If you manually modify your files you will need to keep backups and notes so that you will be able to uninstall or reinstall the mod in the future.
Title: Re: Look But No Read
Post by: bullbreedluverz on August 25, 2008, 06:42:11 PM
you lost me with all that lol but heres the files, if you can edited them to add both the LBNR & The Rules would be grateful
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 07:19:04 PM
One thing at a time please. You can place your request in the support thread for the other mod, but don't do it until this one is working.

I discovered why your index.php is honked up. It was exactly as I had suspected, that some mod or other cause disrupted your code slightly. Here's what your file has:
    elseif (isset($_REQUEST['area']) && $_REQUEST['area'] == 'managearcade')
    {
        $_REQUEST['action'] = 'managearcade';
    }    [color=red]elseif (empty($_REQUEST['action']))[/color]
    {
        // Action and board are both empty... BoardIndex!


Here's what it should be:
    elseif (isset($_REQUEST['area']) && $_REQUEST['area'] == 'managearcade')
     {    $_REQUEST['action'] = 'managearcade';
     }
     [color=red]elseif (empty($_REQUEST['action']))[/color]
     {
         // Action and board are both empty... BoardIndex!


As far as the other file, it looked perfectly fine to me. I even uploaded it to my test forum and ran the mod there successfully. In fact I uploaded both and I've provided you with the modified copies.

Just add these strings to the bottom of your ./Themes/default/languages/index.english.php:
$txt['lbnr'] = 'Look But No Read';
$txt['mods_cat_lbnr'] = 'Look But No Read';
$txt['boards_deny_guest_browsing'] = 'Boards to deny guest reading:';
$txt['categories_deny_guest_browsing'] = 'Categories to deny guest reading:';
$txt['enable_guest_browsing_control'] = 'Enable guest browsing control:';

Note: Place those strings before the line with the ?> !!!

Please give me some time off! I've been programming for over 10 hours straight today! Save The Rules for tomorrow! :)
Title: Re: Look But No Read
Post by: bullbreedluverz on August 25, 2008, 07:33:19 PM
im not getting the addition to the features and options menu bar to use the function
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 07:40:18 PM
You didn't manually modify ./Themes/default/languages/index.english.php like I suggested. Attach it to a post.
Title: Re: Look But No Read
Post by: anakmacan on August 25, 2008, 07:41:28 PM
I did manual edit, and "features & options& >"Look but no read">"check enable guest browsing control" and fill out boards & categories number", but the mod still doesnt work man..board & categories & also posts are visible,  will you help me with this?
im using 1.1.5, my other mods are..

QuoteQuote

    1.     SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
    2.    Pretty URLs - Base    0.7    [ Uninstall ] [ List Files ] [ Delete ]
    3.    AdSense Section Targeting Mod    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
    4.    Referrals Mod    1.4    [ Uninstall ] [ List Files ] [ Delete ]
    5.    Custom Profile Field Mod    3.17    [ Apply Mod ] [ List Files ] [ Delete ]
    6.    RemovePM    1.1.4    [ Uninstall ] [ List Files ] [ Delete ]
    7.    rateTopic    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    8.    Double Post Stopper    1.0.1    [ List Files ] [ Delete ]
    9.    Add Domaintools to TrackIP    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    10.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
    11.    SMF 1.0.11 / 1.1.3 Update    1.1    [ List Files ] [ Delete ]
    12.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
    13.    SMF Sitemap    1.2.0    [ Uninstall ] [ List Files ] [ Delete ]
    14.    Look But No Read    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
    15.    View Only Boards    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
    16.    SMF Gallery Lite    1.8.1.2    [ Uninstall ] [ List Files ] [ Delete ]
    17.    Easy Edit Meta Data    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    18.    SMFbuy    1.2    [ List Files ] [ Delete ]
    19.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ List Files ] [ Delete ]
    20.    Social Bookmarks    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    21.    Prevent Adding Signature Images And Links

my site : www.bincangprofesi.com/forum/
restricted category  & board numbers : 1, 2, 4, 5, 6 (category), 1,2,3,4,5,6,7,8,9,10,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66 (board).

and all the files, here they are  ;)
Title: Re: Look But No Read
Post by: bullbreedluverz on August 25, 2008, 07:49:51 PM
soz... like i said ya lost me lol ive had a drink or several lol
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 08:04:22 PM
@Bull
Title: Re: Look But No Read
Post by: Deprecated on August 25, 2008, 08:07:22 PM
anakmacan, please feel free to bump the thread if I forget about your request. I'm done programming for the day. I was kidding about the bottle before but now I'm taking a serious interest, since it's 1700 hours now. :)
Title: Re: Look But No Read
Post by: bullbreedluverz on August 25, 2008, 08:08:56 PM
cheers deprecated, im just FTP'in some stuff but when done ill upload the file and get back to you now go get a drink in ya, your body and mind will thank you for it  ;D
Title: Re: Look But No Read
Post by: alex30 on August 25, 2008, 09:04:23 PM
Wow this mod doesn't want to work on my 1.1.5, but why?

Author why can't I install it? interesting...

QuoteExecute Modification     ./Sources/ModSettings.php     Test failed
Title: Re: Look But No Read
Post by: wmcintosh on August 26, 2008, 11:30:53 PM
Very nice, installed without a hitch, have a future forum this will come in handy on.
Title: Re: Look But No Read
Post by: Deprecated on August 26, 2008, 11:47:09 PM
Alex, dunno. It's designed to work with 1.1.5. Since my crystal ball is in the shop, if you want help you will have to give more info. "Doesn't work" gives me nothing to go on.

Wmcintosh, great I'm glad it will work well for you. It's working fine on my 2.0 forum and I've tested it on my 1.1.5 test forum with no remaining problems.

I am a bit concerned about what if somebody adds 10, 15, 25, 50, 100 forums. I never tested it with that many. If anybody has a lot of forums, please test it with just a few categories and just a few boards before going whole hog. That way you can tell me if your problem is related to the number of entries for either.

And everybody please remember you have to check the "enable" box or it won't work. Must enable "Enable guest browsing control" !!!!!!!!
Title: Re: Look But No Read
Post by: megastar on August 27, 2008, 02:27:58 AM
i installed the LBNR mod on my forum, www.megastarforum.com and then i tried to go to my homepage and it is showing me 'parse error:syntax error,unexpected & end,expecting']'in/home/wwmewga/public_wml/index.php on line 369'.what do i do
Title: Re: Look But No Read
Post by: Deprecated on August 27, 2008, 08:40:21 AM
Look at line 369 and see what it is doing, what the syntax problem is. Or attach your modified index.php to a post and I'll look at it and see what the syntax problem is. :)
Title: Re: Look But No Read
Post by: megastar on August 27, 2008, 09:18:31 AM
Quote from: Deprecated on August 27, 2008, 08:40:21 AM
Look at line 369 and see what it is doing, what the syntax problem is. Or attach your modified index.php to a post and I'll look at it and see what the syntax problem is. :)
Pardon me but how do i look at line 369,is it from my cpanel or what? How do i attach the modified index.php to a post.If you dont mind,see it for yourself at www.megastarforum.com
Title: Re: Look But No Read
Post by: Deprecated on August 27, 2008, 10:28:38 AM
Looking at your forum won't help me. Your description of the problem is already sufficient that it tells me what I'd see.

I need to look at the source php file. FTP into your site (from your cpanel if you have no other way) and download your index.php then reply to this thread and hit the + in the reply page to see the file upload dialog, then attach your file and post it.

I can't help you without that file.
Title: Re: Look But No Read
Post by: megastar on August 27, 2008, 06:15:46 PM
I'm totally lost.From the FTP manager in my cpanel,where do i go from there.Where do find the source php file or download the index.php
Better still,can i PM you the login details to my cpanel?
Title: Re: Look But No Read
Post by: Deprecated on August 27, 2008, 06:36:31 PM
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

No, sorry, you sending me your cpanel login is more responsibility than I'm willing to accept.
Title: Re: Look But No Read
Post by: megastar on August 28, 2008, 03:14:40 AM
okay,i have downloaded Fireftp.What next?
Title: Re: Look But No Read
Post by: anakmacan on August 28, 2008, 06:20:44 AM
Depre: Have you found out whats going on with my forum?
Title: Re: Look But No Read
Post by: Deprecated on August 28, 2008, 08:09:20 AM
Quote from: anakmacan on August 28, 2008, 06:20:44 AM
Depre: Have you found out whats going on with my forum?

Hi anakmacan. I'm sorry but I forgot about you. I had a look at your files but I was primarily interested in ModSettings.php, and the file you attached is not your ModSettings.php so you'll have to do it again, attach that file to a reply.
Title: Re: Look But No Read
Post by: linette97 on August 28, 2008, 08:55:52 PM
Hi great mod would love to have this BUT
I get this just like Alex up there

QuoteExecute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful

I installed anyways thinking well I need to modify it for my "Fire" theme.. I went to /Sources/ModSettings.php
and could not find any of the lines requested then I saw that there was a /Sources/ModSettings.php~
in that same directory.. went in and found all the lines! Yay!!

Now I went and saw the options in Admin Cpanel BUT did not see the options for what you have in /Themes/default/languages/index.english.php

So I went to add that code and of course it's in /Themes/default/languages/index.english.php but when I went to my custom theme /Themes/FIRE/languages/ all I see is Themes/fire/languages/Settings.english.php

will this not work for my theme "fire"?

Please advise thanks!!
Title: Re: Look But No Read
Post by: Deprecated on August 29, 2008, 01:29:10 AM
I think I can fix your problem with the index.english.php because we modders had a discussion and agreed that the best place for the language strings was in Modifications.english.php, and I hope your custom theme will like that. I may release a new version of this mod shortly with the changed file name.

How about you attach your ./Sources/ModSettings.php to a post and let me have a look at it, see what happened. This is probably a case of modification clash. Say which mods you have installed too please.
Title: Re: Look But No Read
Post by: linette97 on August 29, 2008, 08:16:31 PM
Hi there! Ok I changed my theme completely was having to many issues with it. Sorry about that. So now I'm using Dilber MC seems very popular... anyways same thing happened with this theme and same no index.english as well.

Quote
QuoteExecute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful

Now you asked for which mods I have here they go
Quote
   Mod Name     Version     
1.    Advanced Login Form    1.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Auto Email Inactive Users    1.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    Lots_o_Smileys    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    AvatarSelect    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    AvatarOnBoard    2.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Mood Stars    2.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    YouTube BBCode    2.3    [ Uninstall ] [ List Files ] [ Delete ]
8.    nCode Image Resizer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
10.    Simple ImageShack    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
11.    Images On Board    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
12.    Profil Moderator Managment    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Registered Links    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Allowed Groups Embedded Flash    1.2.3    [ Uninstall ] [ List Files ] [ Delete ]
15.    Look But No Read    1.1    [ Apply Mod ] [ List Files ] [ Delete ]

As you can see I uninstalled your mod, Is that ok? So whatever I modified in that other file is gone of course since I'm using a new theme  :D
& finally here goes the file you requested....

Thanks for looking into it! I really appreciate your help!  ;D

Title: Re: Look But No Read
Post by: 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.
Title: Re: Look But No Read
Post by: nwobhm on August 30, 2008, 12:53:26 PM
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.
Title: Re: Look But No Read
Post by: Deprecated on August 30, 2008, 06:31:51 PM
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. :)
Title: Re: Look But No Read
Post by: Deprecated on August 30, 2008, 06:46:49 PM
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.
Title: Re: Look But No Read
Post by: Deprecated on August 30, 2008, 06:52:03 PM
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! :)
Title: Re: Look But No Read
Post by: linette97 on August 30, 2008, 08:15:33 PM
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!!
Title: Re: Look But No Read
Post by: Deprecated on August 30, 2008, 10:08:58 PM
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. :)
Title: Re: Look But No Read
Post by: linette97 on August 30, 2008, 10:52:11 PM
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!
Title: Re: Look But No Read
Post by: linette97 on August 30, 2008, 11:15:03 PM
I DID IT! I figured it out! Whooohooo! LOL! Thanks so much again Dep! You are the MAN!! Keep these amazing mods coming!
Title: Re: Look But No Read
Post by: Deprecated on August 30, 2008, 11:27:40 PM
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.
Title: Re: Look But No Read
Post by: Miyagi on August 31, 2008, 03:12:11 AM
after a little bit of manual massage this is working a treat on 3 of my forums. :)
Title: Re: Look But No Read
Post by: nwobhm on August 31, 2008, 03:15:49 AM
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.
Title: Re: Look But No Read
Post by: Deprecated on August 31, 2008, 06:59:36 AM
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.
Title: Re: Look But No Read
Post by: jlove207 on September 01, 2008, 04:28:44 PM
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

Title: Re: Look But No Read
Post by: Poolpy on September 02, 2008, 12:22:24 AM
Thanks You Are A Lifesaver
Title: Re: Look But No Read
Post by: 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.
Title: Re: Look But No Read
Post by: jlove207 on September 02, 2008, 11:40:17 AM
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
Title: Re: Look But No Read
Post by: 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
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 04:43:27 PM
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.
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 04:45:43 PM
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.
Title: Re: Look But No Read
Post by: nwobhm on September 02, 2008, 04:53:01 PM
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
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 06:26:37 PM
Okay nwobhm, I guess the language barrier impeded my understanding of what you were telling me. I see what you're saying now and apparently I'll have to modify Recent.php and put restrictions in that too. Thank you for bringing this to my attention and I'll address this issue as soon as possible. Please monitor this thread for a fix which I expect to make available in the near future.
Title: Re: Look But No Read
Post by: jlove207 on September 02, 2008, 06:37:40 PM
Quote from: Deprecated on September 02, 2008, 04:43:27 PM
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.

I'm including the index.php file but I don't have the "Modifications.english.php" file.



Jlove207
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 07:32:33 PM
Quote from: jlove207 on September 02, 2008, 06:37:40 PM
I'm including the index.php file but I don't have the "Modifications.english.php" file.

Well if you don't have Modifications.english.php then that's why you don't have any configurations screen! Here, you can have mine. Put it in your ./Themes/default/languages directory and that should fix you up. Let me know.
Title: Re: Look But No Read
Post by: jlove207 on September 02, 2008, 09:39:31 PM
Quote from: Deprecated on September 02, 2008, 07:32:33 PM
Quote from: jlove207 on September 02, 2008, 06:37:40 PM
I'm including the index.php file but I don't have the "Modifications.english.php" file.

Well if you don't have Modifications.english.php then that's why you don't have any configurations screen! Here, you can have mine. Put it in your ./Themes/default/languages directory and that should fix you up. Let me know.

Well thanks for trying. It didn't work. Could it be I have a different theme other than the default theme? I have the Bluesound theme from Hoochie Choochie man. Also the "Look but no Read" mod is the only mod installed.

According to the install, everything installed right with no errors. I cannot figure it out why it's not showing?

jlove207
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 09:47:33 PM
Well... you never told me you had themes installed.... I don't know themes.
Title: Re: Look But No Read
Post by: jlove207 on September 02, 2008, 09:52:14 PM
Quote from: Deprecated on September 02, 2008, 09:47:33 PM
Well... you never told me you had themes installed.... I don't know themes.

Oh, so the themes makes a difference? Sorry for the trouble.

jlove207
Title: Re: Look But No Read
Post by: Deprecated on September 02, 2008, 10:31:04 PM
Try the file Jlove. I don't care about themes. I just want to get you up and running. I want you to walk away a happy customer. Please take the theme out and try the LBNR for a test, and if it works then maybe it might be appropriate to try getting themes help.

Before that you should try putting the same language strings in your index.english.php. Make sure you flush your caches before you test your changes.
Title: Re: Look But No Read
Post by: Adish - (F.L.A.M.E.R) on September 03, 2008, 08:22:16 AM
I had 2 test failed for index.php and modsettings.php so i did the manual edits, after doing so, i am getting this error.

Parse error: syntax error, unexpected T_ELSEIF in /home/goldysun/public_html/index.php on line 320

Please let me know what maybe the problem


EDIT:-
All Solved, i added the code before one bracket which caused the error... All done..cheers..
Title: Re: Look But No Read
Post by: Deprecated on September 03, 2008, 09:10:18 AM
@Jlove: I'm just looking this over and the more I think about it, your only problem is that the language strings -- the $txt[] ones -- are not available to your SMF so the modification cannot be enabled. All you have to do is get those strings in the right spot. Look at the file I attached above and figure out which language file you're using and manually put them in that file. I believe you said you're "light php." This should be well within your capabilty.

Hoochie Choochie man is a good guy. Go ask him where you should put the language strings if they don't work in your index.english.php file. He will fix you up.
Title: Re: Look But No Read
Post by: hw610 on September 03, 2008, 01:21:01 PM
Ok We installed this for version 2 and its working like a charm except the hit recent post link then the guests can see them, I read all the replies but I wasnt able to see a clear cut solution for that. Is there one? We are using the default them as well
Title: Re: Look But No Read
Post by: Deprecated on September 03, 2008, 01:34:02 PM
I have yet to fix the action=recent bug. I have other obligations besides supporting this modification and due to the minimal severity of this flaw the fix will have to wait until I can figure out the code.

As long as anybody can simply create a member account using a disposable address and read the posts anyway I do not consider this to be of pressing importance, but I do intend to fix it when I have the time.

Please either monitor this topic or periodically check the mod's revision level to determine when it is fixed. I will post a notice in this topic when it is fixed.
Title: Re: Look But No Read
Post by: Marcus Forsberg on September 03, 2008, 02:00:21 PM
Looks interesting.
I'll try iy out when I have time!
Title: Re: Look But No Read
Post by: anakmacan on September 08, 2008, 11:41:43 PM
Quote from: Deprecated on August 28, 2008, 08:09:20 AM
Quote from: anakmacan on August 28, 2008, 06:20:44 AM
Depre: Have you found out whats going on with my forum?

Hi anakmacan. I'm sorry but I forgot about you. I had a look at your files but I was primarily interested in ModSettings.php, and the file you attached is not your ModSettings.php so you'll have to do it again, attach that file to a reply.

Thats ok  ;D

It wasnt?  ::) well, okay, ill download from /source and upload again. here it is.
Title: Re: Look But No Read
Post by: ManilaGurL on September 09, 2008, 02:35:32 AM
Will this work with SMF 1.1.5, DilberMC and Tinyportal installed?
Title: Re: Look But No Read
Post by: Deprecated on September 09, 2008, 10:27:07 AM
@anakmakan:

Attached is your ModSettings.php with LBNR manually edited in. You're suffering from "mod clog," that too many mods have been installed, some written by less tidy people who did not look at the post-modification code to see that their installation script did what they intended. As a result they mess up the file for other modifications that are added afterwards. That was your problem.

Please let us know how the new file works for you.
Title: Re: Look But No Read
Post by: Deprecated on September 09, 2008, 10:28:33 AM
Quote from: ManilaGurL on September 09, 2008, 02:35:32 AM
Will this work with SMF 1.1.5, DilberMC and Tinyportal installed?

It beats the heck out of me. :) I'm not a themer, nor have I tried TP yet. Perhaps somebody who has those installed can answer your question.

Yes, this modification works for SMF 1.1.5 (and 2.0). That's all I can tell you.
Title: Re: Look But No Read
Post by: REHK on September 12, 2008, 04:25:16 AM
At Last!! ive been waiting for a mod like this it is exactly what ive been looking for and havent managed to achieve with other mods :( Ive installed on a test of SMF 2 Beta 4 and all is cool :D However I cant get it working on my forum which is now 1.1.6. The 'look but no read' option shows in the setting and options but does nothing when i click it :( please help O:)

Ive attatched screen and will gladly forward any information needed.

**UPDATE** **FIXED**

:D :D :D :D :D :D :D :D :D :D :D :D

Fixed and really happy great mod ;D

I believe already installed mods had used lines needed so they wernt written, so i did it manually. The lines were both instances of:-

'lbnr' => 'ModifyLbnrSettings',

once i put these in everything was good :D
Title: Re: Look But No Read
Post by: anakmacan on September 13, 2008, 08:37:51 AM
Quote from: Deprecated on September 09, 2008, 10:27:07 AM
@anakmakan:

Attached is your ModSettings.php with LBNR manually edited in. You're suffering from "mod clog," that too many mods have been installed, some written by less tidy people who did not look at the post-modification code to see that their installation script did what they intended. As a result they mess up the file for other modifications that are added afterwards. That was your problem.

Please let us know how the new file works for you.

I see... Thanks for your explanation.

Which new file do you mean? This mod's file at the mod page?
Title: Re: Look But No Read
Post by: Deprecated on September 24, 2008, 09:57:24 AM
Quote from: anakmacan on September 13, 2008, 08:37:51 AM
Quote from: Deprecated on September 09, 2008, 10:27:07 AM
@anakmakan:

Attached is your ModSettings.php with LBNR manually edited in. You're suffering from "mod clog," that too many mods have been installed, some written by less tidy people who did not look at the post-modification code to see that their installation script did what they intended. As a result they mess up the file for other modifications that are added afterwards. That was your problem.

Please let us know how the new file works for you.

I see... Thanks for your explanation.

Which new file do you mean? This mod's file at the mod page?

attached
Title: Re: Look But No Read
Post by: Phoenixauto on September 24, 2008, 03:13:59 PM
Hello and thank you for the excellent mod
I installed perfectly but I wanted to know if it was possible to extend the restriction to not only guest but also to registered users but not belonging to groups.
Is this possible?
Title: Re: Look But No Read
Post by: Deprecated on September 24, 2008, 03:42:54 PM
Not impossible but maybe not very likely. I have some other more urgent work to do on this modification first.
Title: Re: Look But No Read
Post by: Phoenixauto on September 24, 2008, 04:02:26 PM
patience .. through the same I would have done very comfortable
Thank you
Sorry for my English just perfect
Title: Re: Look But No Read
Post by: ryozo on September 26, 2008, 06:39:10 PM
no news for 1.1.6? :D

---- nevermind, its good already. thanks!
Title: Re: Look But No Read
Post by: Deprecated on September 27, 2008, 11:54:18 AM
I'm sorry about the 1.1.6. I'm still working on fixing upgrade problems at three production sites, ranging from mild to severe, so I've been either fixing or working around problems so that their respective members could go on posting without generating tons of errors. Fortunately I think I just solved the major problem yesterday, and I could have more time to go back and fine tune mod packages that haven't been verified for 1.1.6 and possibly updated. Actually I have updated a few packages already for varying reasons. Note also that sometimes simple fixes can receive priority over more complicated ones, just because it's easy to get those out of the way.

I'm planning on reviewing all my mod packages that were 1.1.5 compatible and verifying that each is 1.1.6 compatible, and probably adding a few new features like UTF-8 support, and I'm even writing new packages that are dual mode 1.1.6-2.0 compatible (dual mode is a LOT more effort). Just this last week I added 1.1.6 compatibility to a previously 2.0-only mod package. It may take 1-2 weeks before it all sorts out. As I said, I intend each of my 1.1.5 compatible packages to be upgraded where necessary and certified for 1.1.6 in the near future.
Title: Re: Look But No Read
Post by: Jsd on October 05, 2008, 06:24:58 PM
First sorry for my very bad english.

I like this mod very much. But is he to voor dutch.
I have SMF 2.0 Beta 4
Title: Re: Look But No Read
Post by: Asshandler on October 07, 2008, 05:54:20 PM
Will this work in 1.1.6?
Title: Re: Look But No Read
Post by: Deprecated on October 07, 2008, 06:03:45 PM
I just tested it and yes it does work with 1.1.6. I have changed the mod site page to reflect that.


For the record:

"This modification has been verified to work properly with both SMF 1.1.6 and SMF 2.0 Beta 4."
Title: Re: Look But No Read
Post by: Asshandler on October 07, 2008, 06:20:07 PM
Works great, thanks Dep. 
Title: Re: Look But No Read
Post by: Deprecated on October 07, 2008, 06:23:37 PM
You're welcome! Have fun Equus asinus Handler! ;)
Title: Re: Look But No Read
Post by: BlackXBOX on October 07, 2008, 10:13:38 PM
Installed this on my 1.1.5 (it has a custom theme), and it didn't work even though it said all tests were successful. Help?
Title: Re: Look But No Read
Post by: Deprecated on October 07, 2008, 10:58:36 PM
Wow that's a pretty difficult question. I wasn't aware that LBNR changed any theme related files. (No templates or anything.)

I suppose it could be theme related but I'm sorry I just don't know.
Title: Re: Look But No Read
Post by: katib on October 08, 2008, 09:36:45 AM
Great mod !!!
I was using one on phpbb
Quote from: Deprecated on August 22, 2008, 01:48:04 PM
The Googlebot and other web crawlers are guests as far as your forum is concerned. If the guests can read the posts the bots can index them. If the guests cannot read the posts, like if LBNR oprevents it, then the bots cannot index the pages.
this is a bad news, because everyone likes his forum be indexed by crawlers and bots
I am new to SMF, so
1-can we put Bots into a memebergroup like Bots_Crawlers to let them pass this limitation ?
2- instead of preventing guests from reading post contents, can we limit access to, say, 300 first characters ? again I was using a similar mod on phpbb, it is called: "guests read part of posts"
Title: Re: Look But No Read
Post by: Deprecated on October 08, 2008, 09:51:51 AM
To treat 'bots and crawlers differently than ordinary guests is a violation of Google terms of service and probably all the other major search engines too. I know how I would accomplish what you want, but here at the SMF forums I believe I have a certain ethical standard that I must maintain, and I expect that SMF management would be critical of any effort on my part to help people evade TOS restrictions. For that reason I'm going to tell you that it can be done but you're on your own figuring it out, and I will appreciate that if you communicate your findings that you do it somewhere other than my mod package support thread. I hope you understand the position that I'm in, that I'm really unable to help you evade the TOS.

And your second idea is a killer idea!!! I like it, I really like it, and I'm adding it to my LBNR notes as a suggested upgrade for this mod. I would probably add a new value, number of characters that guests can read without logging in. If zero the mod behaves as usual, if non-zero the guest gets to read that number of characters before they hit a message, "log in or register to read the rest of this post."

Unfortunately the changes would not be trivial. Nevertheless I'm adding your suggestion to my list and perhaps I will add the feature at a future date.

There are a few LBNR features that I am not satisfied with and I do intend to make some changes to this package at an unspecified future date. LBNR is but one of my many dozens of SMF projects so it will have to wait its turn.

Thanks for the suggestion!
Title: Re: Look But No Read
Post by: katib on October 08, 2008, 10:27:03 AM
Quote from: Deprecated on October 08, 2008, 09:51:51 AM
And your second idea is a killer idea!!!
....................
Unfortunately the changes would not be trivial. Nevertheless I'm adding your suggestion to my list and perhaps I will add the feature at a future date.
I am very glad I inspired you some good idea  :)

Quote from: Deprecated on October 08, 2008, 09:51:51 AM
I would probably add a new value, number of characters that guests can read without logging in.
ok, but my idea is to let guest read UNLIMITED number of post, but in each post, he can only read first 300 characters !!!
the limit count is post based not board or forum based
this is the code I used to use on phpbb2
hope it inpire more usefull idea to you  :)

// Begin Gusets see only part of posts

# here you can specify certain forums and topics to be excluded from not reading by guests



if ((($forum_id == 1) or ($forum_id == 2) or ($forum_id == 3) or ($forum_id == 4) or ($forum_id == 5) or ($forum_id == 6) or ($forum_id == 7) or ($forum_id == 8) or ($forum_id == 11) or ($forum_id == 14) or ($forum_id == 15) or ($forum_id == 16) or ($forum_id == 21) or ($forum_id == 22) or ($forum_id == 23) or ($forum_id == 28)) && ($topic_id != 31) && ($topic_id != 20))

{

$lettercount = (strlen($message));

if (($userdata['username'] == 'Anonymous') && ($lettercount > 400))

{

$path = __FILE__;

$file = basename ($path);

if ($file != 'portal.php')//needed for portal support, otherwise portal layout will breakout when clips are played.

{

//first check if message has quote in it or a ot, quote box breaks forums layout.





$message = str_replace("[ot", "[ ot", $message);

$message = substr(($message), 0, 400).'... <br><br><table border=1 color=red style="background-color:#99CCFF"><tr><td>'.$lang['onlyforeguser'].'<tr><td><b><a href="http://'.$board_config['server_name'].$board_config['script_path'].'profile.php?mode=register">'.$lang['Register'].'</a><tr><td> '.$lang['or'].' <a href="http://'.$board_config['server_name'].$board_config['script_path'].'login.php?redirect=viewtopic.php?t='.$postrow[$i]['topic_id'].'">'.$lang['Login'].'</a> '.$lang['GuestWantReadAll'].'</b></td></tr></table>';

}

}

}

// End Gusets see only part of posts




Quote from: Deprecated on October 08, 2008, 09:51:51 AM
To treat 'bots and crawlers differently than ordinary guests is a violation of Google terms of service and ...
I dont like to break any TOS
my taughts about a spider membergroup was inspired by phpbb3 logic
There, I had a membergroup called spider/robots where I can adjust many settings including board layaout an theme to be veiwied by this robots....
In phpbb3, one can set a switch like that:  <!-- IF not S_IS_BOT --> or <!-- IF S_IS_BOT -->
(the following example is tacken from bluieimp.net ajax shat witch is also available for SMF )

<!-- IF not S_IS_BOT -->
<div style="font-size:1.3em; margin-bottom:20px;">{SHOUTBOX}</div>
<!-- ELSE -->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
<!-- ENDIF -->

Title: Re: Look But No Read
Post by: Deprecated on October 08, 2008, 10:30:14 AM
Sorry, but phpBB code is useless to SMF.

Please don't post stuff in my modification support topic about aiding in violating the search engines' TOS. This topic is for supporting my mod package and your comments are off topic. Please stick to the topic.
Title: Re: Look But No Read
Post by: katib on October 08, 2008, 12:02:18 PM
 
Quote from: Deprecated on October 08, 2008, 10:30:14 AM
Please don't post stuff in my modification support topic about aiding in violating the search engines' TOS.
Sorry if I wrote any things wrong  :-[  :-[
and right now, I dont figure out how my request would break any TOS  :(
Is it illegal to treat robots in a specific way !?
Once again, I am so sorry if I wrote any things wrong  :-[  :-[
Title: Re: Look But No Read
Post by: Deprecated on October 08, 2008, 12:40:30 PM
I am annoyed because this topic is about supporting the Look But No Read modification package, and your posts are off topic.

If you want to start your own topic and post whatever you want, please feel welcome to do so. Thank you.
Title: Re: Look But No Read
Post by: arifwicaksono on October 12, 2008, 08:28:13 AM
i've installed this mod but why the menu like image below. i'm using smf 1.1.6 , is this the problem of my themes(i'm using default themes) or the mod?

(http://img143.imageshack.us/img143/5656/lookbutnoread115bf6.jpg)

i'm sorry my english is bad. i hope all understand what i mean.
Title: Re: Look But No Read
Post by: Deprecated on October 12, 2008, 09:27:06 AM
Well that's my own screen shot so I don't understand what your problem is.

Yours will probably look a little different because I had to reduce the width of the browser window and scrunch up the lines so that I could get a narrow enough screen shot that it could be posted here in the support topic. Yours will probably have those labels all on one line instead of two.

So what is the problem?
Title: Re: Look But No Read
Post by: SpeedQuest on October 12, 2008, 08:55:57 PM
I like this mod if I could only get it to work :P...

Here is my situation.  I am running 1.1.6 and have the following mods installed:
Mod Name Version 
1. Easy Edit Meta Data 1.0   
2. Hide Info Center From Guests 1.0 
3. Look But No Read 1.2
4. Message for your guests 0.1     
5. Referrals Mod 2.0.1 
6. Remove SMF Logo 1.2   
7. TinyPortal 0.983   
8. Treasury 2.31   

When I initially installed I received an error message:
!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.  

With this following:
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed  
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

The issue I am having is this:

When I go to the 'Features and Options' menu, I can see the 'Look But No Read' Tab but when I click on it, my 'Basic Features' Tab is activated.

Do I need to manually edit my modsettings file?  I can attach or send any files you may need to look at, in the meantime I will hunt and peck.

Thanks in advance!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 09:33:22 AM
Please, do not ignore warning messages in the future, unless it is a test forum and not a production forum and you know what you are doing. You can crash your SMF by doing ignoring warnings. That's why they are there.

Important: Never uninstall mod packages if you get warning messages. Just in case  you have done that too...

Download your current ModSettings.php and attach it to your next post.
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 11:54:30 AM
Here is the Sources/Modsettings.php

Thanks again!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 12:37:37 PM
Quote from: SpeedQuest on October 13, 2008, 11:54:30 AM
Here is the Sources/Modsettings.php

Thanks again!

Here ya go! :)

It was some mod with the name 'meta' in it that was interfering.
Title: Re: Look But No Read
Post by: Dirtbike on October 13, 2008, 12:56:07 PM
Very good mod thanks for the effort
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 01:54:32 PM
Thanks again Deprecated.  I downloaded the new ModSettings.php and put it in the Sources Folder.

Now I get this error when trying to click on Features and Options:

Parse error: parse error, unexpected ']', expecting ')' in Sources\ModSettings.php on line 118

I will try to look at it with ConText in a minute.  Trying to do all this through a remote virtual server makes it interesting.
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 02:43:04 PM
My mistake. That's what you get when you manually edit files, and why we prefer automatic installation.

Corrected file attached. Please send a PM to Amacythe requesting a full refund. Tell her I said it was okay. ;) ;) ;)
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 04:00:16 PM
Thanks yet again.  It seems there might still be more however.  This time when clicking on the 'Features and Options' menu I get the following error:

Parse error: parse error, inexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in Sources\Modsettings.php on line 149

I hate to see you working this hard just for one server, but if this works we will be putting it onto multiple forums and then the PayPal donations will flow in your direction.  Thanks again!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 04:06:24 PM
Bribes!!! Bribes!!! I just love bribes! ;) Funny, I was just thinking this morning of getting a PayPal...

File attached. :)
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 05:07:40 PM
Made it further this time, but still not quite...

Clicking on 'Features and Options' get these (2) messages:

Parse error: parse error, unexpected ']', expecting ')' in Sources\ModSetting.php on line 181

Fatal error: Call to undefined function: modifybasicsettings() in Sources\ModSettings.php on line 162

You need to get PayPal.  When this is done it's worth some $$ for you.  No bribe. Just truth.
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 05:12:16 PM
Again attached.

Problem is that I would notice that in an instant if I uploaded it to my own site, but I have no way to do that because your other mods would probably crash my test site.

Let me know how it works out.
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 05:57:28 PM
Awesome stuff Deprecated.  I totally understand not being able to test it.  I don't get impatient, especially when the software is inexpensive.  I will see what I can do to reward you for the time spent today.

Do you ever get to Orlando? LOL! ;)
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 06:24:09 PM
But did it work? (Been to Miami once, boarding the Song of Norway cruise ship. I'm in L.A.)
Title: Re: Look But No Read
Post by: romper on October 13, 2008, 07:24:11 PM
I had an error during instalation of the mod, to be precise:
Execute Modification     ./index.php     Test failed

But first time I pushed ok, just to see, because this sounds like the best package ever...and It looked fine, everything as in pictures, but it doesn't work? I have no problems with forum(no strange massages or error reports), but no matter what numbers of category oo board I put it shows catgory I allowed for the guests but doesn't stop them for reading, so it's like I don't use the mod at all!
I guess it's obvious why, error above, but can it be fixed, because this mod I soooooo want!!!
I'm using SMF 1.1.6 on Dilber MC!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 07:53:25 PM
 O. M. F. G. ... ... ... ... [comment deleted]

Is there some place at SMF where I can tell everybody to NOT install mod packages when you get warning messages? That's like saying, "I wonder if this gun is loaded. Let me stick the barrel to my temple and pull the trigger and see if there is any loud noise."

A mod package isn't ever going to work properly if you get a warning message about one of the files. Even I don't install those packages that get the message when I'm testing them. That will never work!!! Never!!!

Most of the guts of the mod is in index.php. The rest is just to configure it. Ain't gonna work without index.php. Gahhhhhhhhh...............

Attach your index.php to your reply post. And promise you will never do that again. And also promise you won't ever delete a mod package before uninstalling it.
Title: Re: Look But No Read
Post by: romper on October 13, 2008, 09:51:46 PM
Quote from: Deprecated on October 13, 2008, 07:53:25 PM
O. M. F. G. ... ... ... ... [comment deleted]

Is there some place at SMF where I can tell everybody to NOT install mod packages when you get warning messages? That's like saying, "I wonder if this gun is loaded. Let me stick the barrel to my temple and pull the trigger and see if there is any loud noise."

A mod package isn't ever going to work properly if you get a warning message about one of the files. Even I don't install those packages that get the message when I'm testing them. That will never work!!! Never!!!

Most of the guts of the mod is in index.php. The rest is just to configure it. Ain't gonna work without index.php. Gahhhhhhhhh...............

Attach your index.php to your reply post. And promise you will never do that again. And also promise you won't ever delete a mod package before uninstalling it.

Well I uninstalled it at least O:)....I promise to the rest...here is the index file...THX!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 10:39:26 PM
Please PM me in 12 hours from present time if I haven't replied yet. I'm eating dinner and probably a bit too tired to work on complicated problems. Peace!
Title: Re: Look But No Read
Post by: SpeedQuest on October 13, 2008, 10:57:00 PM
Now you are starting to get entertaining Deprecated!

Yes, it works.  So many thanks!  I will go to bat tomorrow for some reward  $$.  Get a PayPal account set up!
Title: Re: Look But No Read
Post by: Deprecated on October 13, 2008, 11:02:08 PM
It's working? Really? Gawd I was willing to give up but you kept posting. ;)

I didn't write my mods for any other reason except for people to like them, although my wanting them for my sites was another factor in motivating me to write them.

You guys are important to me. An author is nothing if nobody wants to read his books.

Please confirm that you are fixed up. It will be a relief.
Title: Re: Look But No Read
Post by: Deprecated on October 14, 2008, 05:49:43 PM
Quote from: romper on October 13, 2008, 09:51:46 PM
Quote from: Deprecated on October 13, 2008, 07:53:25 PM
Attach your index.php to your reply post. And promise you will never do that again. And also promise you won't ever delete a mod package before uninstalling it.

Well I uninstalled it at least O:) ....I promise to the rest...here is the index file...THX!

Romper, how did you uninstall that mod package and ignore the warning that index.php was giving? Don't ignore warning messages in the future. Post here at SMF and get somebody to verify you are doing the right thing before you blow through the red light and cause a crash. And the crash is gonna be your forum! :)

Okay I researched your problem and it turns out that your arcade mod is improperly written. It merged my target line with another line and the package installer couldn't locate my target.

I've fixed the damage that your arcade caused and you should be able to install my mod package with no errors now. I've attached your file below. Come on back and let me know how it went. And don't continue if my mod gives you warnings. Come back and we'll iron it out before you continue. :)
Title: Re: Look But No Read
Post by: romper on October 14, 2008, 06:31:21 PM
Works great!!!!
Amaizing stuff this mod!!!!
Just what I needed!
THX!
Title: Re: Look But No Read
Post by: Asshandler on October 17, 2008, 04:06:17 PM
Hey Dep, this mod works wonderfully, but I have a question.

Is there any way to get it to ignore a specific forum?

The reason I ask is I'd like for this to be active on all regular boards, but on our customer service forum, I wouldn't mind letting guests read/write in there, ya know, in case they have trouble registering or soemthing.
Title: Re: Look But No Read
Post by: Deprecated on October 17, 2008, 06:19:41 PM
I'm not sure why you can't do that. You can pick any mix of boards or categories to apply it to. Just don't enter the board number that you want to allow guests access.  If you have the whole category blocked, just unblock the category and block individual boards except the ones you want to allow guest access. That's the way it is supposed to work.
Title: Re: Look But No Read
Post by: @rturo on October 24, 2008, 12:53:37 PM
I know that bots are in the guest group, BUT, as some mods let us know when is a guest and when is a bot, can you make that difference also so bots are allowed to read the topics??
Title: Re: Look But No Read
Post by: Deprecated on October 24, 2008, 02:48:51 PM
No, you have to treat bots and guests exactly the same or you will be violating Google's TOS among others.
Title: Re: Look But No Read
Post by: @rturo on October 24, 2008, 05:15:36 PM
Ohhh I didn't know that.

Well thx
Title: Re: Look But No Read
Post by: fyndler on October 27, 2008, 02:01:11 PM
Very nice mod just a quick question

Categories to deny guest reading:     
Boards to deny guest reading:

So if i make one category like General Discussion the guest will se it but they cant acces it ?

Thanks
Title: Re: Look But No Read
Post by: Deprecated on October 27, 2008, 03:29:21 PM
The SMF default setup General Discussion is a board, not a category.

If you set LBNR to make that board protected, guests will be able to read the topic titles, but they will have to log in or register to read the posts themselves.
Title: Re: Look But No Read
Post by: fyndler on October 27, 2008, 09:41:41 PM
Ok ok hehe then i understand thansk :P
Title: Re: Look But No Read
Post by: Deprecated on October 27, 2008, 09:52:08 PM
I too found SMF's nomenclature hard at first. I had to learn what they meant, quick, so as to be able to communicate it to others...

Boards. Categories. Post-bit. All the in-crowd jargon. ;)
Title: Re: Look But No Read
Post by: manlung on October 29, 2008, 12:51:07 PM
Does this mod works on 1.0.6?
_I installed on a 1.0.6 but cant find it on control panel
Title: Re: Look But No Read
Post by: Asshandler on October 29, 2008, 02:47:11 PM
Quote from: Deprecated on October 17, 2008, 06:19:41 PM
I'm not sure why you can't do that. You can pick any mix of boards or categories to apply it to. Just don't enter the board number that you want to allow guests access.  If you have the whole category blocked, just unblock the category and block individual boards except the ones you want to allow guest access. That's the way it is supposed to work.

ok, you were right, that worked fine.

I've set it up so that Guests can view topics within our customer serrvice board, as well as reply to any topics they want to in there.

However....

Guests are unable to post without first providing a name, email and verification of an image it seems.

Even if I input a name and anemail, it still says

"The letters you typed don't match the letters that were shown in the picture. "

Even though there is no picture anywhere.  lol

Any ideas?
Title: Re: Look But No Read
Post by: Deprecated on October 29, 2008, 08:52:51 PM
@manlung:

Sorry, I know nothing of SMF versions other that 1.1.5 and 1.1.6. You should not be running any version earlier than the current 1.1.6 which has fixed some security concerns.

@AH:

I'm sorry I don't know about your anti-spam settings. I doubt my mod is related but I could be wrong.
Title: Re: Look But No Read
Post by: manlung on October 29, 2008, 09:47:09 PM
sorry I mean 1.1.6
Title: Re: Look But No Read
Post by: Deprecated on October 30, 2008, 05:32:29 PM
Quote from: manlung on October 29, 2008, 12:51:07 PM
Does this mod works on 1.0.6?
_I installed on a 1.0.6 but cant find it on control panel
Quote from: manlung on October 29, 2008, 09:47:09 PM
sorry I mean 1.1.6

Admin -> Configuration -> Features and Options => Look But No Read

(see screen shot in OP of this topic)

Perhaps you have theme issues?
Title: Re: Look But No Read
Post by: El Brujo on November 02, 2008, 04:32:44 PM
Hi, I can't install this mod because I get this error message:

2.     Execute Modification     ./Sources/ModSettings.php     Test failed

As you recommed I didn't continued with the installation. I attach the ModSettings.php file so you can take a look at it. I would appreciate your help.

Thanks in advance

EDIT: I have solved it, I uninstalled previous mods, installed then LBNR without any error and then reinstalled the other mods and everything worked fine
Title: Re: Look But No Read
Post by: sombra on November 06, 2008, 07:30:59 AM
im triying to uninstalla this mod but its giving me an error


!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


Uninstall Actions "Look But No Read":
Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
      2.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
*    3.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
      3.    Replace    ./Sources/ManageSettings.php    Test failed
*    4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

can i preceed of what can i do
Title: Re: Look But No Read
Post by: tuguex on November 06, 2008, 05:54:28 PM
What i need to put in the

Enable guest browsing control:     
   Categories to deny guest reading:    
   Boards to deny guest reading:


To have this mod working in entire forum?
I trie in the category the number "1", but doesn't work
Title: Re: Look But No Read
Post by: LaughOften on November 07, 2008, 09:11:43 PM
I have 1.1.7 and I tried to install this mod and I get this:


1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

I have the following mods installed:

1. SMF 1.0.14 / 1.1.6 Update 1.0   [ List Files ] [ Delete ] 
2. SMFShop 3.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. The Rules 1.08   [ Uninstall ] [ List Files ] [ Delete ] 
4. simplemp 3.1   [ Uninstall ] [ List Files ] [ Delete ] 
5. Registered Links 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Hide Signatures for Guest 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
7. JPG Thumbnails 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Remove SMF Logo 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
9. Contact Page 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
10. SMF Staff Page 1.6   [ Uninstall ] [ List Files ] [ Delete ] 
11. Disable Right click 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Global Headers Footers 1.4.1   [ Uninstall ] [ List Files ] [ Delete ] 
13. Hide SMF Version 1.0.3a   [ Uninstall ] [ List Files ] [ Delete ] 
14. Avatar Under Membergroups Rank 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
15. Add PM Info To Header (v1.1) 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
16. Links Managment 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. Mod Hide Post 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
18. Order Stickied Topics 1.01   [ Uninstall ] [ List Files ] [ Delete ] 
19. SMF Classifieds 1.2.12   [ Uninstall ] [ List Files ] [ Delete ] 
20. Blog Community (for 1.1.x) 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
21. Welcome Topic Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
22. unboldnews 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
23. Custom Copyright 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
24. SMF Trader System 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
25. Advanced Login Form 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
26. Favicon 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
27. Enhanced Profile 1.1.5   [ Uninstall ] [ List Files ] [ Delete ] 
28. Hide Info Center From Guests 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
29. Custom Profile Field Mod 3.19   [ Uninstall ] [ List Files ] [ Delete ] 
30. SMF 1.0.15 / 1.1.7 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
31. SMF 1.0.15 / 1.1.7 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
32. Look But No Read 1.2  [ Apply Mod ] [ List Files ] [ Delete ] 

Here is my Sources/ModSettings.php file:

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'multiplayer' => 'ModifymultiplayerSettings',
'multiplayer' => 'ModifymultiplayerSettings',
'layout' => 'ModifyLayoutSettings',
'rules' => 'ModifyRulesSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'Multiplayer' => array(
'title' => $txt['ModifymultiplayerSettings'],
'href' => $scripturl '?action=featuresettings;sa=multiplayer;sesc=' $context['session_id'],
),
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
),
'rules' => array(
'title' => $txt['mods_cat_rules'],
'href' => $scripturl '?action=featuresettings;sa=rules;sesc=' $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'rules' => 'ModifyRulesSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// Disable Right Click by: www.mundo-se.com
array('check''arrange_nrcg'),
'',
// Hide Signature for Guest by: www.mundo-se.com
array('check''arrange_hsfg'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),

array('check''hideVersion'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function ModifymultiplayerSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(


'',

array('check''multiplayer_enabled'),

'',

array('check''Enable_Conquer_Antarctica'),
            array(
'check''Enable_Texas_Hold_em_Poker'),
array('check''Enable_Bunny_Wars'),
array('check''Enable_Chess'),
array('check''Enable_Checkers'),
array('check''Enable_Match4'),
array('check''Enable_Trouble'),
array('check''Enable_Zodiac'),
array('check''Enable_Triva'),
array('check''Enable_Draw_my_Thing'), 
        array('check''Enable_Asteroids'),
        array('check''Enable_Nonoba_Racing'),
array('check''Enable_Platform_Racing_2'),
array('check''Enable_Blockles'),
        array('check''Enable_Dinglepop'),
array('check''Enable_Fridge_magnets'),
array('check''Enable_Castle_wars'),
array('check''Enable_Pawn_Game'),
array('check''Enable_Multi_Snake'),
        array('check''Enable_Territory_Wars'),
array('check''Enable_Dino_run'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=multiplayer');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings;save;sa=multiplayer';
$context['settings_title'] = $txt['mp13'];

prepareDBSettingContext($config_vars);
}
function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomProfile.php');
CustomFieldSettings();
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

function 
ModifyRulesSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(

array('check''rules_enable_guest_access'),
'',
array('text''the_rules_display_name''20'),
array('large_text''the_rules_text''12'),
'',
array('check''the_rules_enable_agreement'),
array('text''the_rules_agreement_display_name'),
'',
array('check''the_rules_enable_additional'),
array('text''the_rules_additional_display_name''20'),
array('large_text''the_rules_additional_text''12'),
);

if (isset($_GET['save']))
{
checkSession();

saveDBSettings($config_vars);
writeLog();

redirectexit('action=featuresettings;sa=rules');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=rules';
$context['settings_title'] = $txt['rules_title'];

prepareDBSettingContext($config_vars);
}

?>



Any help would be appreciated
Title: Re: Look But No Read
Post by: Deprecated on November 08, 2008, 10:03:10 AM
Sombra, you need to proceed with a manual install.

Tuguex, just put all the categories in your category box: 1, 2, 3, 4, 5, 6...

LaughOften, 1.1.7 just came out and I have not had the opportunity to test my mods with it. I hope to perform that process over the next few or several days.

And please, do not quote entire files. Attach them instead. A file posted like you've done is totally useless since I use automated document comparison, and I need a file for that. And a cut 'n paste doesn't work. Anyway, I don't need your file right now. I need to go test my mods using 1.1.7.
Title: Re: Look But No Read
Post by: LaughOften on November 08, 2008, 08:41:21 PM
Thank you for your response. This didn't work for me on 1.1.6 either. Same error.

I will remember to attach files in the future.

Thanks
Title: Re: Look But No Read
Post by: Deprecated on November 09, 2008, 10:12:55 AM
I hope to upgrade my test forum to 1.1.7 today. Meanwhile, why don't you attach your file to a post and I'll have a look at it.
Title: Re: Look But No Read
Post by: LaughOften on November 09, 2008, 01:13:21 PM
Hi thanks for looking into this for me :)

Title: Re: Look But No Read
Post by: Deprecated on November 09, 2008, 01:30:57 PM
You had some mod interference. I slightly rearranged a couple lines in one spot that was preventing LBNR from installing. I've attached your modified file to this post. Please let me know if it works okay for you. :)
Title: Re: Look But No Read
Post by: LaughOften on November 09, 2008, 01:53:23 PM
Thank you soooo much!!!

It worked!!! :) :)
Title: Re: Look But No Read
Post by: Deprecated on November 09, 2008, 02:00:23 PM
Glad to have helped you LaughOften. :)
Title: Re: Look But No Read
Post by: fyndler on November 10, 2008, 02:51:59 PM
Hi

I tryed to add my grapihcal section so gues couldent read it

I checked at the url in the adress browser it said 79 so i added that but guest can still read it :/

<a href="http://brutalfps.com/index.php?board=79.0" name="b79">Graphical Showoff</a></b>

That is the code i found when i checked the source :/
Title: Re: Look But No Read
Post by: Deprecated on November 10, 2008, 02:55:00 PM
Are you sure you have the right modification package support topic?
Title: Re: Look But No Read
Post by: fyndler on November 10, 2008, 03:58:03 PM
Maybe dont work on 1.1.7 ?
Title: Re: Look But No Read
Post by: Jhez on November 12, 2008, 07:46:48 AM
I would have liked to try using your mod, but when I try to verify it before installing, I get this message

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

I am using an installation of SMF 1.1.7 with the following packages installed

Modification Packages
   Mod Name    Version    
1.    Select Admin for Notifications    1.2
2.    RemoveQuotedImages    1.0
3.    Simple Award System    2.0.0.4b
4.    Table From CSV    1.30
5.    Auto Email Inactive Users    1.7
6.    Order Stickied Topics    1.01
7.    Default Membergroup on Registration    1.1
8.    Ellow yellow christmas edition smiley set    1.1.0.1
9.    SMF Chat - by Joseph Szenasi    1.0
10.    Group Moderators    1.4
11.    Manage Members Membergroups    1.0.0
12.    Registration redirection    0.1
13.    Display Age and Location next to posts    1.0
14.    Last Active On MemberList    1.01
15.    Member List Position Filter    1.1.0
16.    Registration - Show Gender mod    1.0.0
17.    No More Ugly Avatar Scrollbars    1.0
18.    AvatarSelect    1.1.2
19.    EmailValidator    1.0
20.    Force Topic Read On Login Mod    1.0
21.    Member Awards    1.0.2
22.    RateThatTopic    1.0

Avatar Packages
   Mod Name    Version    
1.    Sci-Fi Avatars    1.0
2.    Country Flags    1.1.1

Any ideas what is going wrong?

Thanks,
Jhez
Title: Re: Look But No Read
Post by: Shortrnd on November 12, 2008, 08:54:00 AM
I applied this mod 2 days ago and it works perfectly with 1.1.7.  My rate of new registrations has tripled since then.

Thanks for putting this up!
Title: Re: Look But No Read
Post by: thenepalgallery on November 12, 2008, 08:59:05 AM
i am totally lost when i read the messages of this topic from top to bottom

my problem is same

1.   Execute Modification   ./index.php   Test successful
2.   Execute Modification   ./Sources/ModSettings.php   Test failed
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful

now tell me what to do

should  i add my "ModSettings.php" in this post

should i have to add my mod lists here

please let me know
i haven;t instal this mod due to test fail
Title: Re: Look But No Read
Post by: Deprecated on November 12, 2008, 10:51:20 AM
Both Jhez and thenepalgallery, please reply and attach your ModSettings.php file to your post.
Title: Re: Look But No Read
Post by: tom333 on November 12, 2008, 10:59:59 AM
I want to install mod on my SMF 1.16 and get this message:
1.   Execute Modification   ./index.php   Test successful
2.   Execute Modification   ./Sources/ModSettings.php   Test failed
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful

I install mode and in modsettings.php is all OK (I don't write additional code for your mode in php, all is there when I install module )
I have:
Admin -> Configuration -> Features and Options => Look But No Read
Module don't work. why?
I attached my modsettings.php.
thanks in advance for help


Title: Re: Look But No Read
Post by: Deprecated on November 12, 2008, 11:16:21 AM
Tom333, the LBNR code looks like it is all present in your ModSettings.php file. I presume you added them manually? They look okay to me.

Have you programmed in categories and/or boards to apply the selective reading to? Also, you must open up those forums for guest reading, to allow LBNR to decide who gets to read.
Title: Re: Look But No Read
Post by: tom333 on November 13, 2008, 11:49:36 AM
I don't now where is a problem, but I uninstall all modules, upgrade forum to 1.17, install look but not read and now all test is ok:
1.   Execute Modification   ./index.php   Test successful
2.   Execute Modification   ./Sources/ModSettings.php   Test successful
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful

update ./Themes/default/languages/Modifications.croatian.php with your code and now module work ok.
It is possible that the some other module in conflict with your module.
Neverminde, now module work.
p.s. thanks for your quick answer Deprecated ;)
Title: Re: Look But No Read
Post by: Deprecated on November 13, 2008, 11:58:58 AM
It is always possible that another modification package may interfere. I'm glad you got it going. :)
Title: Re: Look But No Read
Post by: GMCbris on November 19, 2008, 09:43:38 PM
I got a test failed message and ignored it and now my forum has crashed... and its all your fault

Narghhh

Just joking  :)

This is a great mod - simple to install and works a treat

Thanks for all your hard work on the mod and helping others out

Cheers

GMC
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 20, 2008, 06:51:03 AM
Hi,

I recentlly started my own forums which I'm managing quite well even though I don't know much about php coding but I've hit a few snags with this package.

I have SMF 1.1.7 installed with the following mods

1. SMF 1.0.15 / 1.1.7 Update 1.0
2. Spiders Don't Increase Topic Views 1.1
3. Disable Decrease Post Count Option 2.0
4. BK-SMF Sub-Board 1.5
5. GarbledURLs 1.0
6. View Single PM 1.3  

Everything appears to go good this is the Installations actions for "Look But No Read":

1. Execute Modification     ./index.php                                                                        Test successful
2. Execute Modification     ./Sources/ModSettings.php                                               Test successful
3. Execute Modification     ./Themes/default/languages/Modifications.english.php    Test successful

but nothing happens! I use the Blue Ace theme but even if I switch back to the default theme nothing appears in the features and options.

The Forum Error log shows me this

8: Undefined index: mods_cat_lbnr
ModSettings.php
Line: 141

I have installed a test forums so I can test packages before i addd them to my own forums and I get the same error there.

Any help would be grateful and I have attached the 3 files from my test forum if they are required

Thanks
Title: Re: Look But No Read
Post by: Deprecated on November 20, 2008, 06:16:55 PM
Quote from: GMCbris on November 19, 2008, 09:43:38 PM
I got a test failed message and ignored it and now my forum has crashed... and its all your fault

Narghhh

Just joking  :)

This is a great mod - simple to install and works a treat

Thanks for all your hard work on the mod and helping others out

Cheers

GMC

Actually I designed the package to install and work perfectly for 30 days, and then it implodes your forum! :)

Haha, I'm kidding too! :P I'm glad you like it! :)
Title: Re: Look But No Read
Post by: Deprecated on November 20, 2008, 06:22:35 PM
Quote from: The_Wii_Nes_Boy on November 20, 2008, 06:51:03 AM
Everything appears to go good this is the Installations actions for "Look But No Read":

1. Execute Modification     ./index.php                                                                        Test successful
2. Execute Modification     ./Sources/ModSettings.php                                               Test successful
3. Execute Modification     ./Themes/default/languages/Modifications.english.php    Test successful

but nothing happens! I use the Blue Ace theme but even if I switch back to the default theme nothing appears in the features and options.

The Forum Error log shows me this

8: Undefined index: mods_cat_lbnr
ModSettings.php
Line: 141

I have installed a test forums so I can test packages before i addd them to my own forums and I get the same error there.

Please tell me if your forum uses UTF-8, and if your language setting is other than English.[/quote]
Title: Re: Look But No Read
Post by: bullbreedluverz on November 20, 2008, 06:32:39 PM
Quote from: Deprecated on November 20, 2008, 06:16:55 PM
Actually I designed the package to install and work perfectly for 30 days, and then it implodes your forum! :)

Haha, I'm kidding too! :P I'm glad you like it! :)

you any good at phpBB coding/design? could you make a mod that does this for a rival forum on phpBB lmao
Title: Re: Look But No Read
Post by: Deprecated on November 20, 2008, 07:38:43 PM
I'm good at all coding and design. I had never even heard of SMF until less than 4 months ago. Everything I know about SMF I learned since the beginning of August when I had my first look at SMF's code.

Let me know anytime you want to finance about 4 months of my lifestyle expenses so that I can put the same effort into phpBB. :P ;)
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 21, 2008, 03:23:41 AM
Quote from: Deprecated on November 20, 2008, 06:22:35 PM
Quote from: The_Wii_Nes_Boy on November 20, 2008, 06:51:03 AM
Everything appears to go good this is the Installations actions for "Look But No Read":

1. Execute Modification     ./index.php                                                                        Test successful
2. Execute Modification     ./Sources/ModSettings.php                                               Test successful
3. Execute Modification     ./Themes/default/languages/Modifications.english.php    Test successful

but nothing happens! I use the Blue Ace theme but even if I switch back to the default theme nothing appears in the features and options.

The Forum Error log shows me this

8: Undefined index: mods_cat_lbnr
ModSettings.php
Line: 141

I have installed a test forums so I can test packages before i addd them to my own forums and I get the same error there.

Please tell me if your forum uses UTF-8, and if your language setting is other than English.
[/quote]

Hi,

Thanks for replying, I believe my forums are using UTF-8 and my main language is English.

[EDIT] After asking me if my forums use UTF-8 I checked these files and discovered that the file had not been modified after quickly making the required changes this mod is now half working, I can deny guests reading catagories but I can't deny them reading boards!
Title: Re: Look But No Read
Post by: bullbreedluverz on November 21, 2008, 05:02:41 AM
Quote from: Deprecated on November 20, 2008, 07:38:43 PM
I'm good at all coding and design. I had never even heard of SMF until less than 4 months ago. Everything I know about SMF I learned since the beginning of August when I had my first look at SMF's code.

Let me know anytime you want to finance about 4 months of my lifestyle expenses so that I can put the same effort into phpBB. :P ;)

im poor and couldnt afford to pay that but ill trade in my girlfriend.....  :D :D :D :D
Title: Re: Look But No Read
Post by: Deprecated on November 21, 2008, 11:56:20 AM
The_Wii_Nes_Boy, please try the new version 1.3 and let me know if you continue to have problems, although the changes do not specifically address your complaint. Perhaps the new package will work better.

I've changed the way that the package installs using a new technique I've developed to keep other mod packages from interfering with my own mods.

I've also added not only English UTF-8 language strings, but also British both with and without UTF-8. In the future all my mod packages will cover at least English and British both with and without UTF-8, and I'll be adding them to every existing package as I maintain them for other fixes or improvements.

Let me know if you still have problems, and if you have problems with the NEW package please attach your index.php to your reply post.


And Bull, you've got yourself a deal! ;) :P
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 21, 2008, 01:56:32 PM
Well I uninstalled v1.2 from both my forums and installed v1.3 which installed perfect, I didn't have to manually edit any files again (which is good seeing as I just edited them to remove v1.2  :P).

Can deny access to categories as before but still can't deny guests access to boards!! I am trying to deny 21 board if it helps any.
Title: Re: Look But No Read
Post by: Deprecated on November 21, 2008, 04:34:53 PM
Nes Boy, please attach your index.php to your reply post, tell me which categories and which boards you have denied access, and post a URL for your forum site. Also, please verify that you are separating the denied board numbers with commas.
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 21, 2008, 07:34:03 PM
here is my site -->> http://twnb-worldofstuff.com

I have denied guest access to all my boards except....

News & Announcements
Introductions & Farewells

[EDIT] Sorry forgot to say all numbers a seperated by a comma
Title: Re: Look But No Read
Post by: Deprecated on November 21, 2008, 09:26:31 PM
Again, please tell me which categories and which boards you have denied access to. Please cut 'n paste the settings out of your LBNR control panel. I need the exact settings, the numbers.
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 21, 2008, 11:11:59 PM
Ah! sorry got you now, here you go....

Enable guest browsing control:         Ticked 
Categories to deny guest reading:    1, 2, 4, 7, 8
Boards to deny guest reading:          2, 8, 9, 10, 11, 12, 13, 16, 17, 18, 35, 36, 37, 38, 39, 40, 43, 47, 50, 53, 54

Everything looks correct, either that or I'm really stupid lol
Title: Re: Look But No Read
Post by: gemigene on November 22, 2008, 06:52:21 PM
Thank for another great Mod, installed without a hitch and works as described.

Cheers,
Gene
Title: Re: Look But No Read
Post by: Deprecated on November 22, 2008, 07:10:57 PM
Glad you liked it Gene. :)

Nes Boy, I'm sorry. I just now saw my note to visit this topic, simultaneously with Gene posting to the topic and bringing it up on my New Replies. Unfortunately I've been sick for the last few days, and just spent all day coughing my lungs out, and I'm so damned tired now that I've got enough oomph to address simple problems, but I'm just flat out too damned tired to tackle the difficult stuff.

I have an idea though. I don't actually know how many boards you can add to the list. Could you please try it with just a few boards, like perhaps 4 or 5 boards, and see if it works then? Please let me know what you find out.
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 22, 2008, 09:25:25 PM
Quote from: Deprecated on November 22, 2008, 07:10:57 PM
Glad you liked it Gene. :)

Nes Boy, I'm sorry. I just now saw my note to visit this topic, simultaneously with Gene posting to the topic and bringing it up on my New Replies. Unfortunately I've been sick for the last few days, and just spent all day coughing my lungs out, and I'm so damned tired now that I've got enough oomph to address simple problems, but I'm just flat out too damned tired to tackle the difficult stuff.

I have an idea though. I don't actually know how many boards you can add to the list. Could you please try it with just a few boards, like perhaps 4 or 5 boards, and see if it works then? Please let me know what you find out.
Reduced it to 4 post but people can still read the topics.
Title: Re: Look But No Read
Post by: Deprecated on November 23, 2008, 12:43:05 PM
Please leave it at just 4 boards for the time being, and tell me what they are. And if you change the category settings, tell me too.
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 23, 2008, 01:22:12 PM
@ Deprecated: this is the settings now.

Enable guest browsing control:         Ticked 
Categories to deny guest reading:    1, 2, 4, 7, 8
Boards to deny guest reading:          2, 8, 9, 10,
Title: Re: Look But No Read
Post by: Deprecated on November 23, 2008, 01:35:33 PM
I see what your problem is. Board 10 doesn't have any topics, just child boards. The child boards are readable unless you add them to the list. Add the child boards 58-61 to your list.

Same situation on boards 8-9. Add the child boards.

Board 2, the restriction works. :) I can't read the topics. :) "Only registered members are allowed to access this section." :)
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 23, 2008, 01:44:18 PM
Quote from: Deprecated on November 23, 2008, 01:35:33 PM
I see what your problem is. Board 10 doesn't have any topics, just child boards. The child boards are readable unless you add them to the list. Add the child boards 58-61 to your list.

Same situation on boards 8-9. Add the child boards.

Board 2, the restriction works. :) I can't read the topics. :) "Only registered members are allowed to access this section." :)
yeah but if i try and deny just boards you can access them!! Sorry i don't hink i made that clear from the beginning. At the moment I am just denying boards but you can still access them

Enable guest browsing control:         Ticked 
Categories to deny guest reading:   
Boards to deny guest reading:          2, 8, 9, 10,
Title: Re: Look But No Read
Post by: Deprecated on November 23, 2008, 01:51:09 PM
The restrictions do not apply to child boards unless you put them on the board list.

And your board #2 restriction IS working. It prevented me from reading it.

You should log out before testing access. You are logging out, right?
Title: Re: Look But No Read
Post by: The_Wii_Nes_Boy on November 23, 2008, 01:55:21 PM
Yep logged out again and tested it works a treat, like I though it was just me being stupid child boards must be added seperate :-[ Sorry for wasting your time Deprecated
Title: Re: Look But No Read
Post by: Deprecated on November 23, 2008, 03:22:10 PM
Aw, I gotta do the work if I wanna make the big bucks, right? :D Hey! Wait a second! I'm not getting paid any bucks! :( :( :( ;) >:D

Glad to have helped you. :)
Title: Re: Look But No Read
Post by: GMCbris on November 23, 2008, 08:19:37 PM
Just wanted to drop by and give some quick feedback

AVG members per day BEFORE this mod - 8 (ish)

AVG members per day AFTER this mod - 21

Seems to be doing great things for me

THANKS

GMC
Title: Re: Look But No Read
Post by: Deprecated on November 23, 2008, 08:53:51 PM
Wow! I'm glad you are satisfied! :)
Title: Re: Look But No Read
Post by: allumius on November 26, 2008, 04:39:01 AM
Sorry, but my English is very bad.

Is possible to apply the modification to all the categories without them having to specify one to one?

I want that guests couldn't read any category (look but not read) and it is very laborious to specify one to one category or forum :(
Thanks
Title: Re: Look But No Read
Post by: gotorx7 on November 28, 2008, 10:07:47 PM
Great Mod - Many Thanks!
Title: Re: Look But No Read
Post by: JrsyLdy on December 02, 2008, 02:28:37 PM
I get an error in my index.php during the test in 1.1.5. I know it's had changes made to it in the past.
Title: Re: Look But No Read
Post by: Tanks on December 11, 2008, 07:04:40 AM
@ Deprecated - You should really make this mod so one could aply it to other usergroups and not only guests.

Then it could be used to show normal membergroups what they will get access to if they sign up for a paid subscription.

Any chance of adding this feature to this mod ?
Title: Re: Look But No Read
Post by: skokiatt on December 13, 2008, 03:14:20 AM
Thank you for the great mod. I really love it.

Now, Guest can look but not read but I would like to have more feature such as allow a VIP group member can look and read on specific boards but other group members can look but no read also.

Could you advise ?
Title: Re: Look But No Read
Post by: baijianpeng on December 17, 2008, 03:22:53 AM
Agree with above suggestions about limit Registered users to some specific board.

But that may be a little complicated to write the program code. Let's give some more time to the author.

Now, I want to make a suggestion easier to be implemented.

At present, this Mod require the Admin input the Category or Board ID to protect those posts. This design is very good since we can open some board to visitors like Board Rules or Announcements.

However, manually finding and entering the IDs is not good. How about show a list of existing Category and Boards then the Admin can just choose one or more by clicking or ticking ?

Thanks.
Title: Re: Look But No Read
Post by: FragaCampos on December 28, 2008, 05:18:05 PM
Just to give my thanks to Deprecated.
Installed on 1.1.7 and working like a charm.

No doubt about it, a must have mod!
Title: Re: Look But No Read
Post by: Mick. on December 30, 2008, 10:18:45 AM
I shouldve installed this mod long time ago :P   I just installed this mod without issues and working as described.

Very easy to set cats & boards.

I just wish crawlers are allowed inside....

Ill check back with registration results. ;D
Title: Re: Look But No Read
Post by: tom333 on January 06, 2009, 01:50:57 PM
Guest can read post from forum stats -View the most recent posts on the forum.
How to disable that for guest?
thanks in advance .
Title: Re: Look But No Read
Post by: effex on January 08, 2009, 02:41:24 PM
Quote from: tom333 on January 06, 2009, 01:50:57 PM
Guest can read post from forum stats -View the most recent posts on the forum.
How to disable that for guest?
thanks in advance .

Great question, this mod would be perfect with this feature added.
Title: Re: Look But No Read
Post by: Mick. on January 08, 2009, 07:17:47 PM
Quote from: tom333 on January 06, 2009, 01:50:57 PM
Guest can read post from forum stats -View the most recent posts on the forum.
How to disable that for guest?
thanks in advance .


They can only read the first post.    They would need to register to continue on...
Title: Re: Look But No Read
Post by: bear21211 on January 12, 2009, 07:37:11 PM
Can someone help me with this error please?
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Title: Re: Look But No Read
Post by: bear21211 on January 12, 2009, 07:41:52 PM
Here is my Index.php
Title: Re: Look But No Read
Post by: Whimsical on January 14, 2009, 01:47:10 AM
Quote from: tom333 on January 06, 2009, 01:50:57 PM
Guest can read post from forum stats -View the most recent posts on the forum.
How to disable that for guest?
thanks in advance .

tru.. and would be excellent if this could be changed somehow

however having said that, they can only read that the single posts listed, if they click to read the rest of the thread they are at least still bounced back to the login/register page.

Installed without problems and running nicely!

Thank you!! :):)
Title: Re: Look But No Read
Post by: tom333 on January 14, 2009, 12:29:48 PM
hm, but guest can see all post when click on -view the most recent post on the forum.
i dont understand. Guest can view all post when click on that, not only first post.

Title: Re: Look But No Read
Post by: Tanks on January 14, 2009, 02:57:14 PM
Quote from: tom333 on January 14, 2009, 12:29:48 PM
hm, but guest can see all post when click on -view the most recent post on the forum.
i dont understand. Guest can view all post when click on that, not only first post.



But they can only see the title of the topics, not the inside ! Right ?
Title: Re: Look But No Read
Post by: Whimsical on January 14, 2009, 03:29:02 PM
I found if guests clicked on the list of recept posts/topics in the info center, they were able to read the contents of each single most recent post in the given list,  but they weren't  able to access the whole thread for those posts, if they clicked on it to read the rest of thread they were bounced back to the login/register page.

I solved that problem by applying another mod:
Hide Info Center From  Your Guests for 1.1.5, 1.1.6, 1.1.7, 2.0 Beta 3.1 Public, 2.0 Beta 4
http://custom.simplemachines.org/mods/index.php?mod=1335 (http://custom.simplemachines.org/mods/index.php?mod=1335)

Cheers
Whimsical
Title: Re: Look But No Read
Post by: tom333 on January 14, 2009, 07:08:05 PM
Quote from: Tanks on January 14, 2009, 02:57:14 PM
Quote from: tom333 on January 14, 2009, 12:29:48 PM
hm, but guest can see all post when click on -view the most recent post on the forum.
i dont understand. Guest can view all post when click on that, not only first post.



But they can only see the title of the topics, not the inside ! Right ?
no, they can see post, not only title.
Title: Re: Look But No Read
Post by: tom333 on January 14, 2009, 07:42:05 PM
Quote from: Whimsical on January 14, 2009, 03:29:02 PM
I found if guests clicked on the list of recept posts/topics in the info center, they were able to read the contents of each single most recent post in the given list,  but they weren't  able to access the whole thread for those posts, if they clicked on it to read the rest of thread they were bounced back to the login/register page.

I solved that problem by applying another mod:
Hide Info Center From  Your Guests for 1.1.5, 1.1.6, 1.1.7, 2.0 Beta 3.1 Public, 2.0 Beta 4
http://custom.simplemachines.org/mods/index.php?mod=1335 (http://custom.simplemachines.org/mods/index.php?mod=1335)

Cheers
Whimsical
that is solution.
the second solutionis - go to curent theme and uncheck -> show statistic in SP1 stile on frontpage.
Title: Re: Look But No Read
Post by: Fiidell on January 20, 2009, 10:57:58 AM
Pls how do I install this mod? Im new and didnt find it anywhere. Thanks
Title: Re: Look But No Read
Post by: santanu on February 01, 2009, 06:47:35 AM
installed this mod in The SMF 2 beta 4.

all was ok but when i disabled it from the control panel, the mod wasworking i.e. guests has to login to view the post. Then I uninstalled it with few error in index.php and manage settings which i removed manually.

Still guests have to login to read the post.

PLEASE HELP.
Title: Re: Look But No Read
Post by: Mick. on February 05, 2009, 10:56:31 PM
Well,i generated 150 new members last month when my average was 25.

But i think this mod puts a hurt on crawling spiders.   

So what im doing now is, apply mod ON for a week and OFF the next....to leverage the spiders.
Title: Re: Look But No Read
Post by: ttuu on February 06, 2009, 04:11:44 AM
i have a question.
if user that cannot have access to read for one board elso u can "Look But No Read" or this mod is anly for guest.
because of my bord have bords for all users and bord for special users and i want thet standart users can see the topics special bord but no read.
thanks.
Title: Re: Look But No Read
Post by: seeson on February 09, 2009, 03:42:22 PM
I'm using a custom theme (Xbox 360 Elite) and SMF 1.1.8. I just installed this mod and it installed perfectly. I've allowed guest viewing and denied categories 2, 4. I thought I did this correctly. Please help! I've attached what my LBNR looks like. I'm logging out and viewing my forums as a guest and can still see everything. THANKS IN ADVANCE!

http://360Junkies.com (http://360junkies.com)

Title: Re: Look But No Read
Post by: RedCairo on February 10, 2009, 06:17:21 AM
I think I should apply as a 'better idiot' beta tester.

I got some mods starting with this Most Coolest and Most Needed mod -- love it, exactly what I wanted.

Reading all instructions I could not find "how" to implement the mod except manually via the "search for this string" and "insert before/after" text. OK, so I did that, and uploaded that to my forum.

But when I go to the mods section in my admin area it tells me I have no mods.

Allegedly once I installed this it would show me settings and so on.  I checked that I had pasted stuff in above/below as instructed, that I had uploaded the new file versions, clear cache, still nothing.

So I went to the 'SMF manual' to read that (here on this forum) but all it says about mods relates to writing them it appears. It said if you had a question on a specific mod you had to post on its thread.

So, I feel guilty bugging the mod author just because I'm obtuse, as I'm sure this is something I'm doing wrong and nothing to do with the mod. But it's a cool mod and I'd like to use it, it's just my FIRST mod, and I don't understand why nothing is showing up in Admin -- why it thinks I have no mods.

Was there some magic button that would have auto-installed this for me, without the copy & paste, and hence had it recognized?  I honestly think this must be one of those things that is so blindingly obvious to everybody that they don't even really think to spell it out.  Any idea what I might be doing wrong??

So sorry to bother you. This mod is a fabulous and really needed idea.

Palyne

Title: Re: Look But No Read
Post by: SN on February 21, 2009, 06:25:07 PM
Im only having one problem with this mod. Im setting it up so it don't show any threads past the boaard Index, but it doesn't seem to be working. Its still showing all threads in every Category but not showing posts (which is good)

Now all i want it to do is stop showing threads in the likes of General Discussion Etc , how do i go about sorting this out?
Title: Re: Look But No Read
Post by: The Rancher on March 07, 2009, 07:52:07 PM
I am trying to install this and I had a test fail and I am not going any further.

Type     Action     Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
5.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
6.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Skipping file

I have lots of mods:
   Mod Name     Version     
1.    Automatic_Karma    1.0    [ Uninstall ]
2.    Bookmarks    2.2.1    [ Uninstall ]
3.    YouTube BBCode    2.4    [ Uninstall ]
4.    Aeva ~ Auto-Embed Video & Audio    5.1.32    [ Uninstall ]
5.    Hack's Park Color Picker    1.0    [ Uninstall ]
6.    Add IP2Location to Track IP    1.2    [ Uninstall ]
7.    Page_Reload_Mod    1.0    [ Uninstall ]
8.    Remove SMF Logo    1.2    [ Uninstall ]
9.    Simple Award System    2.0.0.4b    [ Uninstall ]
10.    Divine Smilies    1.0    [ Uninstall ]
11.    Excellent Smileys    1.0    [ Uninstall ]
12.    LightB smiley set    1.0    [ Uninstall ]
13.    Lots_o_Smileys    1.0    [ Uninstall ]
14.    SMF Gallery Lite    2.0.5    [ Uninstall ]
15.    Smiley Pops 1.1.0    1.1.0    [ Uninstall ]
16.    BK-SMF Sub-Board    1.5    [ Uninstall ]
17.    Global Headers Footers    1.4.1    [ Uninstall ]
18.    SMF 1.0.16 / 1.1.8 Update    1.0    [ Uninstall ]
19.    Gender on Memberlist    1.0    [ Uninstall ]
20.    PM Readed    1.0    [ Uninstall ]
21.    Cat Avatars    1.0    [ Uninstall ]
22.    Dog Avatars    1.0    [ Uninstall ]
23.    3D ART Avatars    1.1    [ Uninstall ]
24.    Animated Avatars    1.0    [ Uninstall ]
25.    FoodAddict    1.0    [ Uninstall ]
26.    Lots-of-Avatars-Pairs    1.0    [ Uninstall ]
27.    Lots-of-Avatars-Eyes    1.0    [ Uninstall ]
28.    Lots-of-Avatars-Girls1    1.0    [ Uninstall ]
29.    Lots-of-Avatars-Animated    1.0    [ Uninstall ]
30.    Lots-of-Avatars-Animals    1.0    [ Uninstall ]
31.    Lots-of-Avatars-Boys1    1.0    [ Uninstall ]
32.    Lots-of-Avatars-Girls2    1.0    [ Uninstall ]
33.    Lots-of-Avatars-Boys2    1.0    [ Uninstall ]
34.    Tribal Designs    1.0    [ Uninstall ]
35.    SMF Arcade    2.0.17    [ Uninstall ]


My Index.php:
<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
   include (dirname(dirname(__FILE__)) . '/index.php');
else
   exit;

?>


Any help is greatly appreciated.

www.homesteadinganewera.com
Title: Re: Look But No Read
Post by: ɔɔɔɔɔɔuɥoɾ on March 08, 2009, 08:42:18 PM
Will this mod work with smf 2.0 RC1?

if not when will you release a version that does?
Title: Re: Look But No Read
Post by: shaolin25 on March 16, 2009, 01:47:40 PM
I installed this here http://forums.domain-and-web-talk.com/index.php
but when i put cats to disallow access like this 1,2,3,4,5,6,7,8,9

Only certain boards get disallowed access

as you can see
this board allows access still http://forums.domain-and-web-talk.com/index.php?topic=128.0

http://forums.domain-and-web-talk.com/index.php?topic=37.0

disallowed

smf 1.1.8  , is that the problem?
Title: Re: Look But No Read
Post by: FragaCampos on March 22, 2009, 10:42:58 AM
I have it installed on my 1.1.8, so that can't be the problem.
Title: Re: Look But No Read
Post by: The Rancher on March 29, 2009, 10:52:53 AM
I am trying to install this and I had a test fail and I am not going any further.

Type     Action     Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
5.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
6.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Skipping file

I have lots of mods:
    Mod Name     Version     
1.    Automatic_Karma    1.0    [ Uninstall ]
2.    Bookmarks    2.2.1    [ Uninstall ]
3.    YouTube BBCode    2.4    [ Uninstall ]
4.    Aeva ~ Auto-Embed Video & Audio    5.1.32    [ Uninstall ]
5.    Hack's Park Color Picker    1.0    [ Uninstall ]
6.    Add IP2Location to Track IP    1.2    [ Uninstall ]
7.    Page_Reload_Mod    1.0    [ Uninstall ]
8.    Remove SMF Logo    1.2    [ Uninstall ]
9.    Simple Award System    2.0.0.4b    [ Uninstall ]
10.    Divine Smilies    1.0    [ Uninstall ]
11.    Excellent Smileys    1.0    [ Uninstall ]
12.    LightB smiley set    1.0    [ Uninstall ]
13.    Lots_o_Smileys    1.0    [ Uninstall ]
14.    SMF Gallery Lite    2.0.5    [ Uninstall ]
15.    Smiley Pops 1.1.0    1.1.0    [ Uninstall ]
16.    BK-SMF Sub-Board    1.5    [ Uninstall ]
17.    Global Headers Footers    1.4.1    [ Uninstall ]
18.    SMF 1.0.16 / 1.1.8 Update    1.0    [ Uninstall ]
19.    Gender on Memberlist    1.0    [ Uninstall ]
20.    PM Readed    1.0    [ Uninstall ]
21.    Cat Avatars    1.0    [ Uninstall ]
22.    Dog Avatars    1.0    [ Uninstall ]
23.    3D ART Avatars    1.1    [ Uninstall ]
24.    Animated Avatars    1.0    [ Uninstall ]
25.    FoodAddict    1.0    [ Uninstall ]
26.    Lots-of-Avatars-Pairs    1.0    [ Uninstall ]
27.    Lots-of-Avatars-Eyes    1.0    [ Uninstall ]
28.    Lots-of-Avatars-Girls1    1.0    [ Uninstall ]
29.    Lots-of-Avatars-Animated    1.0    [ Uninstall ]
30.    Lots-of-Avatars-Animals    1.0    [ Uninstall ]
31.    Lots-of-Avatars-Boys1    1.0    [ Uninstall ]
32.    Lots-of-Avatars-Girls2    1.0    [ Uninstall ]
33.    Lots-of-Avatars-Boys2    1.0    [ Uninstall ]
34.    Tribal Designs    1.0    [ Uninstall ]
35.    SMF Arcade    2.0.17    [ Uninstall ]


My Index.php:
<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
   include (dirname(dirname(__FILE__)) . '/index.php');
else
   exit;

?>


Any help is greatly appreciated.

www.homesteadinganewera.com
Title: Re: Look But No Read
Post by: Informatics on April 10, 2009, 10:16:23 AM
its a great mod ....

Unfortunately, guests still can see the post using feed...

Any suggest?
Title: Re: Look But No Read
Post by: FragaCampos on April 15, 2009, 11:11:38 AM
Quote from: Cyclon Boy on April 10, 2009, 10:16:23 AM
its a great mod ....

Unfortunately, guests still can see the post using feed...

Any suggest?

They can see the topic title in the feed but not the post itself. At least in my forum...
Title: Re: Look But No Read
Post by: Tanks on April 16, 2009, 12:56:35 AM
I Guess It depends on how many characters you have set your feeds to output ?
Title: Re: Look But No Read
Post by: Dr.Stinglock on April 27, 2009, 08:41:44 AM
This has been a great plugin, but I was looking to remove it because some users reported they could no longer view anything on the boards as a guest.

I had since upgraded to SMF 2.0 RC1 and I think that's what caused it, the addon was not able to be removed cleanly, so i went though and tried to manually remove it.

The only problem I seem to be having is that I can't find where the settings for the mod applied. As this look but no read seems to be working on any board I create now.

Before I removed it I tried turning it off, and then removing the two fields that set what boards were set to 'look but no read'.

Any idea of what file I should start attacking to give my guests permissions back to read? I'll probably look at putting this mod back on later after I remove it and get a good backup.
Title: Re: Look But No Read
Post by: Dr.Stinglock on May 04, 2009, 11:58:22 PM
Anyone got any ideas? I have completely removed the code and users are still forced to login to view any boards I create or that already exist.

I'm about to run up another smf 2.0 RC1 install and see if I can import all my users/content back in and get around the problem but I think this may just copy those permissions.

EDIT:
After backing it up and then restoring it into a fresh install, it worked fine after fixing a few small problems. Just grabbing this again as it's such a handy feature.
Title: Re: Look But No Read
Post by: Drover on June 02, 2009, 08:43:56 AM
This looks like a great mod, but I get this across the top of my forum when I install in 1.1.9.

Quote$txt['lbnr'] = 'Look But No Read'; $txt['mods_cat_lbnr'] = 'Look But No Read'; $txt['boards_deny_guest_browsing'] = 'Boards to deny guest reading:'; $txt['categories_deny_guest_browsing'] = 'Categories to deny guest reading:'; $txt['enable_guest_browsing_control'] = 'Enable guest browsing control:';         
Title: Re: Look But No Read
Post by: MaXiForum.cz on June 04, 2009, 02:12:29 AM
Hi,
Is it possible to adjust this modifikation - to be for both the guests and for the users with certain number of posts?
I want to let all the sections viewable but allow the access only to those who have at least 10 posts.
Title: Re: Look But No Read
Post by: philcross on June 08, 2009, 01:55:46 PM
Ive uploaded this Mod to RC 2.0 1-1 - everything uploaded fine.

But, it doesnt seem to work.

I enter the board numbers but guests can still see the boards.

Help

UPDATE:-

Guests can see/read the board but not the posts within the board.

I dont want them to read the board or the posts within.

I only have one category so cant restrict category as it will restrict the whole forum - and I want guests to see/read part of the forum.


Title: Re: Look But No Read
Post by: allymcbeal on June 22, 2009, 05:15:33 PM
Sorry, I have installed this mod. It works but the user can see the post by "View the most recent posts on the forum." Can yo help me?
Title: Re: Look But No Read
Post by: jezzb on June 30, 2009, 07:32:23 AM
Hi All,

I cannot find out how to set the Category to deny guest reading and the boards to deny guest ready.
From where do you get the numbers 1,2,4,5 etc ? I tried so many variations by counting the Boards and the Cats - but no luck.

You help is much appreciated on this gr8 Mod.

Thanks, Jezzb
Title: Re: Look But No Read
Post by: FragaCampos on June 30, 2009, 11:34:24 AM
Quote from: jezzb on June 30, 2009, 07:32:23 AM
Hi All,

I cannot find out how to set the Category to deny guest reading and the boards to deny guest ready.
From where do you get the numbers 1,2,4,5 etc ? I tried so many variations by counting the Boards and the Cats - but no luck.

You help is much appreciated on this gr8 Mod.

Thanks, Jezzb


You have the answer in the first post...
Title: Re: Look But No Read
Post by: Deal on July 29, 2009, 11:40:41 AM
Quote from: allymcbeal on June 22, 2009, 05:15:33 PM
Sorry, I have installed this mod. It works but the user can see the post by "View the most recent posts on the forum." Can yo help me?

This is true. I just tried it on my forum as well. I'm running 1.1.10 and really starting to think about heading to 2.x as my forum is small and not a business. 

Is 'reading posts' a permission that can be assigned to groups in 2.x? Just wondering if a mod will even be necessary to accomplish a similar goal which is keeping the content of the posts restricted to members only but the category/boards and post listings open to guests so they see what it is they are considering joining.
Title: Re: Look But No Read
Post by: abidejaz4u on August 17, 2009, 11:32:49 AM
this one...but its not Working on All my board...What can i do...give me setting that All  my board guest can not access on my post just read the thread
Title: Re: Look But No Read
Post by: abidejaz4u on August 20, 2009, 04:47:52 AM
Still w8ing
Title: Re: Look But No Read
Post by: linette97 on November 01, 2009, 04:59:41 AM
Installed on 2.0 RC1.2 and it works great!!!  Thanks!!
Title: Re: Look But No Read
Post by: Neverhurry on November 16, 2009, 06:35:44 AM
Quote from: linette97 on November 01, 2009, 04:59:41 AM
Installed on 2.0 RC1.2 and it works great!!!  Thanks!!

Will it be a update to fit 2.0 RC2? thanks!
Title: Re: Look But No Read
Post by: Tanks on November 22, 2009, 07:19:33 AM
Installed and working on 2.0 RC2 ;)
Title: Re: Look But No Read
Post by: Sarge on November 23, 2009, 06:38:33 AM
I wrote an add-on for Look But No Read that adds some options to control the output of Recent posts/topics and Search results.

I will attach it here if Deprecated has no problem with me posting it. In fact, I would have no problem with him integrating my add-on into the original package. :)
Title: Re: Look But No Read
Post by: FragaCampos on November 24, 2009, 03:50:26 PM
I have this mod installed almost a year and i noticed something that seems a bug.
Whenever i click in a post that i can look but not read (for example index.php/topic,7619.0.html) i'm redirected to the login page, but when i enter the forum, i'm redirected to index.php/topic,7619.0.html/prev_next,next.html which is not correct...
This only happens with links visible but not "openable", so i guess it has something to do with this mod.

Any suggestion?
Title: Re: Look But No Read
Post by: SN on December 04, 2009, 05:36:25 AM
Having problems installing this mod on 1.1.11.

fail on the index.php

i tried manual install but i cant find


// Is the forum in maintenance mode? (doesn't apply to administrators.)


any suggestions?
Title: Re: Look But No Read
Post by: FragaCampos on December 16, 2009, 10:55:16 AM
*bump...

Is this help thread dead? :(
Title: Re: Look But No Read
Post by: kgw on December 27, 2009, 04:11:00 PM
Using the latest 2.0 with this Mod. Works great!
My main page is using Wordpress with the BNS SMF Feeds widget. This gives the guest a small teaser (There not bridged) and when they click on the link it tells them to register. I love it.
Title: Re: Look But No Read
Post by: YogiBear on January 20, 2010, 10:07:11 AM
Can't get it to work on mine either I'm afraid. Is it because I'm using v2.0 RC2 Curve theme instead of Core?
Title: Re: Look But No Read
Post by: Uhura! on January 23, 2010, 08:35:28 PM
I have mine installed but guests can still see posts.
What should I do? - this is an awesome mod & I want it to work :D

Title: Re: Look But No Read
Post by: YogiBear on January 28, 2010, 11:16:42 AM
Quote from: Sarge on November 23, 2009, 06:38:33 AM
I wrote an add-on for Look But No Read that adds some options to control the output of Recent posts/topics and Search results.

I will attach it here if Deprecated has no problem with me posting it. In fact, I would have no problem with him integrating my add-on into the original package. :)


That would solve my problem too, Sarge.
Title: Re: Look But No Read
Post by: KensonPlays on January 28, 2010, 01:34:49 PM
Nice Mod, it works well for me so far...!
(SMF Version 2.0RC2)
Title: Re: Look But No Read
Post by: YogiBear on January 28, 2010, 07:05:57 PM
Which of your Boards are you using it on, KC?
Title: Re: Look But No Read
Post by: Uhura! on January 29, 2010, 03:43:01 PM
Can anyone help?

Thanks!


http://www.simplemachines.org/community/index.php?topic=256206.msg2471681#msg2471681
Title: Re: Look But No Read
Post by: YogiBear on January 29, 2010, 06:54:24 PM
We're waiting to hear about Sarge's add-on to Deprecated's mod, Uhura. Meanwhile, I've set some of my Boards visible only to signed-on members.
Title: Re: Look But No Read
Post by: Linda.V on February 09, 2010, 12:32:21 PM
Thanks Deprecated for this mod. I have just installed this on my SMF 2.0 RC2 and works good  ;)
Title: Re: Look But No Read
Post by: Hawkmoth on March 29, 2010, 11:58:52 AM
Hi

I'm using smf 1.1.11 and installed this mod. (Nice mod by the way)

But it appears that the catagorie block doesn't work.
It does the same as the board block.

ie catagorie no 2 with board no 1.
I add catagorie no 2 to the blocking and I can see the board title and see the threads but I'm unable to read the threads.

If I leave the catagorie empty and add board no 1 to the blocking I get the same result as above.

Have I done somit wrong?
Title: Re: Look But No Read
Post by: rd on March 29, 2010, 11:59:52 AM
This looks very useful.
Title: Re: Look But No Read
Post by: Hawkmoth on March 30, 2010, 09:42:44 AM
Quote from: Hawkmoth on March 29, 2010, 11:58:52 AM
Hi

I'm using smf 1.1.11 and installed this mod. (Nice mod by the way)

But it appears that the catagorie block doesn't work.
It does the same as the board block.

ie catagorie no 2 with board no 1.
I add catagorie no 2 to the blocking and I can see the board title and see the threads but I'm unable to read the threads.

If I leave the catagorie empty and add board no 1 to the blocking I get the same result as above.

Have I done somit wrong?
I think I answered my own question after reading the description for this mod more carefuly:-
"They will still be able to see the board index including all the topic titles, but they will be taken to the "Please login or register" page if they attempt to read any topics."

I was expecting that by adding the catagories you could only read the board titles.
But I now realise that it just prevents the reading of the threads for all the boards within the catagories.

Sry to have bothered you all.
Title: Re: Look But No Read
Post by: Linda.V on March 31, 2010, 12:50:28 AM
Quote from: Hawkmoth on March 30, 2010, 09:42:44 AM

But I now realise that it just prevents the reading of the threads for all the boards within the catagories.


That's it Hawkmoth  ;)
Title: Re: Look But No Read
Post by: ronnie42 on April 14, 2010, 07:12:33 AM
For everybody who has problems with Guests still reading the last post in the topics trough the most recent topics link.

Here is a solution:

Open the Recent.php  in /Sources/ and find this code:

loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



Replace:

is_not_guest(); loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



This is a solution wich works very fine for SMF  2.0 RC3 and recent.


This code will give the guest a warning to either log in or register to the forum.

Have a try HERE (http://www.chauffeursforum.eu/index.php?action=forum)

This forum is in dutch but at the bottom you will find: Bekijk de meest recente berichten op het forum.

click on that and the warning will be given.

Hope this helps a bit.  ;)


p.s: ofcorse always make a backup first from your recent.php to re-instal if needed.


Title: Re: Look But No Read
Post by: JessyKa on April 17, 2010, 11:43:06 AM
@Ronnie42:
Is there a similar solution for SMF 1.1.11?

I only find the following part in the recent.php:
loadTemplate('Recent');
$context['page_title'] = $txt[214];

Is this the right part to change?

And should the modification finally look like this?

is_not_guest(); loadTemplate('Recent');
$context['page_title'] = $txt[214];


I wonder, if the templates "214" and "Recent" are the same in the two versions and why the loading of the template in SMF 2 ist slightly different loadTemplate('Recent', 'forum'); instead of loadTemplate('Recent'); with 1.1.11

Sorry if the questions are stupid, I am new to SMF.
Thanks a lot,
sunny greetings from Germany

Jessy
Title: Re: Look But No Read
Post by: Linda.V on April 18, 2010, 04:23:50 AM
Quote from: ronnie42 on April 14, 2010, 07:12:33 AM
For everybody who has problems with Guests still reading the last post in the topics trough the most recent topics link.

Here is a solution:...

Thanks ronnie42, I've also changed the code  ;)
Title: Re: Look But No Read
Post by: ronnie42 on April 18, 2010, 11:43:58 AM
Quote from: JessyKa on April 17, 2010, 11:43:06 AM
@Ronnie42:
Is there a similar solution for SMF 1.1.11?

Sorry if the questions are stupid, I am new to SMF.
Thanks a lot,
sunny greetings from Germany

Jessy



There are no stupid questions as far as i'm concernd

I would say: just backup your recent php trough ftp and store it on a save place on your pc, then make a copy of the file and try to edit the code, if it works then!! well your happy ;-)

If not?

Just put the backup file back in the sources root and move on.

Just try it out.

But always be carefull with wat you do ofcorse and ask somebody for help if you need it.

Laterzz.
Title: Re: Look But No Read
Post by: JessyKa on April 18, 2010, 04:27:40 PM
Hello Laterzz,
thanks for Your answer.
It won't work because the recent.php in 1.11.1 doesn't contain this part.

Yet I started to edit the \Themes\default\BoardIndex.template.php
I removed the link to the recent posts.
But there is still a leftover within the statistic section:

<td class="windowbg2" width="100%">
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
<br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>


If I could also remove the link in <a href="', $scripturl, '?action=recent">', $txt[234], '</a>' anything would be ok. But if I try, I always get a parsing error.
Is there any other file that needs to be adapted?
best regards,
Jessy
Title: Re: Look But No Read
Post by: Hawkmoth on April 26, 2010, 04:32:06 AM
Hi JessyKa

I too use 1.1.11 and this mod (great Mod by the way)

This is what I followed to remove the 'View recent posts'
http://www.simplemachines.org/community/index.php?topic=355403.0

Hope this helps you.
Title: Re: Look But No Read
Post by: bryan_49ers on May 19, 2010, 08:46:44 PM
works out of the box for 2.03... lifesaver! ... now if I could only control by member group...
Title: Re: Look But No Read
Post by: JessyKa on May 25, 2010, 03:35:08 PM
Thanks Hawkmoth!
I didn't find this thread, although it is exactly what I was looking for.
Will have a try.
Jessy
Title: Re: Look But No Read
Post by: blakilox on June 06, 2010, 01:08:17 AM
Why is this mod depreceated? is it because a similar feature is now available ?

I like the solution posted just above, however would this stop Google from indexing the boards?

Thankyou for help.
Garry
Alice Springs
Outback Central Australia.
Title: Re: Look But No Read
Post by: KensonPlays on June 06, 2010, 01:10:06 AM
not using it anymore since RC3...
Title: Re: Look But No Read
Post by: linette97 on June 11, 2010, 04:09:36 PM
Installed in RC3 and it works just fine!
Title: Re: Look But No Read
Post by: Mave on July 02, 2010, 06:13:21 AM
Thanx

<file name="$languagedir/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['lbnr'] = 'Schauen, aber nicht lesen';
$txt['mods_cat_lbnr'] = 'Schauen, aber nicht lesen';
$txt['boards_deny_guest_browsing'] = 'Verbotene Boards für Gäste:';
$txt['categories_deny_guest_browsing'] = 'Verbotene Kategorien für Gäste:';
$txt['enable_guest_browsing_control'] = 'Aktiviere Gäste Browsing Kontrolle:';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['lbnr'] = 'Schauen, aber nicht lesen';
$txt['mods_cat_lbnr'] = 'Schauen, aber nicht lesen';
$txt['boards_deny_guest_browsing'] = 'Verbotene Boards für Gäste:';
$txt['categories_deny_guest_browsing'] = 'Verbotene Kategorien für Gäste:';
$txt['enable_guest_browsing_control'] = 'Aktiviere Gäste Browsing Kontrolle:';
]]></add>
</operation>
</file>
Title: Re: Look But No Read
Post by: BoxingChaos on July 03, 2010, 10:34:16 AM
Thank you  Deprecated, I had no idea this MOD existed but it was needed and I had to ask if anything like this was available. This should be a default CORE mod for SMF. Thanks for making this one bud :) I was using REG LINKS but that can get annoying seeing REGISTER everywhere.

Good job. I had to parse and stuff since my site is so full of MODS but, it was very easy. :)
Title: Re: Look But No Read
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 12:48:41 PM
Quote from: BoxingChaos on July 03, 2010, 10:34:16 AM
Thank you  Deprecated, I had no idea this MOD existed but it was needed and I had to ask if anything like this was available. This should be a default CORE mod for SMF. Thanks for making this one bud :) I was using REG LINKS but that can get annoying seeing REGISTER everywhere.

Good job. I had to parse and stuff since my site is so full of MODS but, it was very easy. :)
I agree, their should be an option which allows this.
Title: Re: Look But No Read
Post by: NaYa on July 21, 2010, 01:44:19 AM
i just installed this MOD with some errors,and after that i manually edited the files(which shows errors) ..
ANd also i set all in its options.But still it is not working with me.

Smf 2.0 Rc3
Simple portal,prettyURls installed .
Still guests can read the topics and threads..

what to do ?
Title: Re: Look But No Read
Post by: Mave on July 26, 2010, 08:05:33 AM
Quote from: ronnie42 on April 14, 2010, 07:12:33 AM
For everybody who has problems with Guests still reading the last post in the topics trough the most recent topics link.

Here is a solution:

Open the Recent.php  in /Sources/ and find this code:

loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



Replace:

is_not_guest(); loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



This is a solution wich works very fine for SMF  2.0 RC3 and recent.


This code will give the guest a warning to either log in or register to the forum.

Have a try HERE (http://www.chauffeursforum.eu/index.php?action=forum)

This forum is in dutch but at the bottom you will find: Bekijk de meest recente berichten op het forum.

click on that and the warning will be given.

Hope this helps a bit.  ;)


p.s: ofcorse always make a backup first from your recent.php to re-instal if needed.




Thanx ronny42

I make a bugfix its easier to de-/install it.
Title: Re: Look But No Read
Post by: J. S. on July 27, 2010, 01:00:04 PM
I am using your mod on my SMF 2.0 RC3. I have installed it and set up my forum so guest can see the boars but cannot enter a topic.

Now, if they register, they can read the topic. I need to lock registered members out. Only one of the member groups should be able to read the topics (the paying ones).

How can I do that?

Is there any way to add a note that they have to become a paying member in order to be able to read the topic?
Title: Re: Look But No Read
Post by: ɔɔɔɔɔɔuɥoɾ on July 27, 2010, 01:22:32 PM
Maybe you can set boards for paying members and boards for free members, its pretty simple to do.

Simply use the paid subscriptions, and have people who pay moved to a memberg roup which is allowed to see your "paid" content.
Title: Re: Look But No Read
Post by: J. S. on July 27, 2010, 01:28:12 PM
So..

If they are guest, they can see the titles, not the topic.

If they register they can see everything,
.. or, I can set the boards to be visible only to paying members, but then, the boards will magically disappear when they log in, because they can only see the boards as guest, right? They should still be able to see the topics but not to read the post.
Title: Re: Look But No Read
Post by: ɔɔɔɔɔɔuɥoɾ on July 27, 2010, 01:59:05 PM
Quote from: J. S. on July 27, 2010, 01:28:12 PM
So..

If they are guest, they can see the titles, not the topic.

If they register they can see everything,
.. or, I can set the boards to be visible only to paying members, but then, the boards will magically disappear when they log in, because they can only see the boards as guest, right? They should still be able to see the topics but not to read the post.

This mod will let members view the boards and their topic titles listed in those boards, as soon as they click the topic to read it they get a login box. If they register they see everything.
Once your guests are registered members this mod has no more function after that.

If you have other boards set so that say "Premium Members" (that would be the name of a member group you would create) can only use, they will not be visible to anyone except Admin and "Premium Members". To automate the process of making them be part of the member group "Premium Members" you can use the paid subscriptions, which is part of SMF already. This will move them to that group after they pay the fee, then they will see the boards only available to that group as well as any other boards available to other members.
Title: Re: Look But No Read
Post by: NotNice on August 14, 2010, 03:59:43 AM
great mod, works almost as I want it to work, guests can see the topics-lists but can not read the topics
except when they choose 'View the most recent posts on the forum.' in the forum stats on the front page, then they see the most recent posts and content.

That's not really a problem for me, I simply removed that part in the code, I have placed the 'Show unread posts since last visit. - Show new replies to your posts' at the bottom of the page for my members, but I can image it could be a problem on other forums
Title: Re: Look But No Read
Post by: Uhura! on September 22, 2010, 10:42:08 PM
I have 1.11 & Ronnie's suggestion  (http://www.simplemachines.org/community/index.php?topic=256206.msg2718091#msg2718091)fixed the issue of guests being able to see the restricted posts via the infocenter link :D



Title: Re: Look But No Read
Post by: endomorph on September 26, 2010, 05:21:55 AM
QuoteIf you have other boards set so that say "Premium Members" (that would be the name of a member group you would create) can only use, they will not be visible to anyone except Admin and "Premium Members". To automate the process of making them be part of the member group "Premium Members" you can use the paid subscriptions, which is part of SMF already. This will move them to that group after they pay the fee, then they will see the boards only available to that group as well as any other boards available to other members.

But if you havea board set to premium members only, then it cannot bee seen as a guest so they still do not know it is there. This si the problem I am having.

I have contacted the author to see if he can change the mod to work with regular members / paid members instead of guests/regular members.

I want guests and members to be able to see boards / topics, but not read them unless they are subscribed.
Title: Re: Look But No Read
Post by: kibtwane on September 28, 2010, 04:13:51 AM
Quote from: Basie on August 18, 2008, 01:47:55 PM
Can I use this mod to deny access to a specific board? (rather than just the topics within it).

For example - The board name will be visible on the main index, but if a guest clicks it then they are taken to the log-in/register screen?

That's what I'd like this mod to do too.
Title: Re: Look But No Read
Post by: Apllicmz on November 05, 2010, 05:51:29 PM
when Update dont forget

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['lbnr'] = 'Olham mais n&atilde;o Ler';
$txt['mods_cat_lbnr'] = 'Olham mais n&atilde;o Ler';
$txt['boards_deny_guest_browsing'] = 'Quadro sem acesso de leitura dos Visitantes:';
$txt['categories_deny_guest_browsing'] = 'Categorias sem acesso aos visitantes:';
$txt['enable_guest_browsing_control'] = 'Activar o controle de navega&ccedil;&atilde;o ds visitantes:';
]]></add>
        </operation>
    </file>
   
   
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['lbnr'] = 'Olham mais n&atilde;o Ler';
$txt['mods_cat_lbnr'] = 'Olham mais n&atilde;o Ler';
$txt['boards_deny_guest_browsing'] = 'Quadro sem acesso de leitura dos Visitantes:';
$txt['categories_deny_guest_browsing'] = 'Categorias sem acesso aos visitantes:';
$txt['enable_guest_browsing_control'] = 'Activar o controle de navega&ccedil;&atilde;o ds visitantes:';
]]></add>
        </operation>
    </file>
Title: Re: Look But No Read
Post by: jaisi on November 12, 2010, 07:45:20 AM
Please Update for Rc4 Also i really need this mod for RC4
Title: Re: Look But No Read
Post by: Patriiick on November 27, 2010, 06:26:30 PM
Quote from: NotNice on August 14, 2010, 03:59:43 AM
That's not really a problem for me, I simply removed that part in the code,

I'd like to know what part of the code I have to remove to do the same thing as you did, thanks.
Title: Re: Look But No Read
Post by: rakicko on November 30, 2010, 09:12:45 AM
Hi,i have a problem in smf lastes version..i tried to instal but in ./Sources/ManageSettings.php
i cant find this two lines..
Quote
.// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.

Quote// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

how to instal it..please ..
Title: Re: Look But No Read
Post by: rakicko on December 01, 2010, 08:38:43 PM
any help?
Title: Re: Look But No Read
Post by: jaisi on December 02, 2010, 03:54:47 AM
any help please how to install this mod my forum verison is r4 
Title: Re: Look But No Read
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2010, 09:23:59 AM
A nice mod. I never see this before but it is almost similar to view only board mod. Will have a try on this later.
Title: Re: Look But No Read
Post by: jaisi on December 20, 2010, 01:43:17 PM
Any chance to update for R4 ???
Title: Re: Look But No Read
Post by: bharatforum on January 26, 2011, 08:01:36 AM
I installed this mod but I found out that all guests can read the context of the topics which are not hidden from them. Is it possible to do something about it?
Title: Re: Look But No Read
Post by: Eyesman on February 12, 2011, 11:54:22 AM
Hello all,

I have just installed this mod and I have the following problem.
When the installation is finished it says that it will redirect me to the configuration page. The problem is right after that, I get a blank page. I refresh the browser but nothing happens. Blank page. Then I try to go to Admin -> Configuration -> Features and Options but the page is blank. I can go to any other Admin configuration page except from the Features and Options.

When I uninstall the mod everything is ok. If I install it again I get a blank page as soon as the mod is installed and redirects me to the Configuration page of the mod and it doesn't load the Features and Options.

Any ideas?

I'm using smf 1.1.13 with the default theme.
Title: Re: Look But No Read
Post by: usa4all on March 11, 2011, 10:18:18 AM
Hi there,

Where can i translate the files , so that i can read the mod in my Dutch language package? For now I see only two blank lines and a checkbox...
Title: Re: Look But No Read
Post by: FragaCampos on March 20, 2011, 12:46:17 PM
You need to copy the strings in Modifications.english.php file, traslate them and put them in Modifications.dutch.php
Title: Re: Look But No Read
Post by: usa4all on March 21, 2011, 07:32:04 AM
Quote from: FragaCampos on March 20, 2011, 12:46:17 PM
You need to copy the strings in Modifications.english.php file, traslate them and put them in Modifications.dutch.php

That works, tx!
Title: Re: Look But No Read
Post by: Kathleen Chute on May 21, 2011, 08:55:37 PM
 Is There a way to have this work with Current 2.0 RC5
Thanks
Kathleen
Title: Re: Look But No Read
Post by: Linda.V on June 06, 2011, 02:29:59 PM
I have this mod on my SMF 2.0 RC5 and works fine.
Hopely it still will work on SMF 2.0
Title: Re: Look But No Read
Post by: gigashiga on June 08, 2011, 01:52:47 AM
I was looking for this kind of mod and found it.

I am sure does this work with version 1.1.13 ?
Title: Re: Look But No Read
Post by: Linda.V on June 15, 2011, 01:44:32 PM
Quote from: Linda.V on June 06, 2011, 02:29:59 PM
Hopely it still will work on SMF 2.0

Upgraded my forum to 2.0 and this mod still works fine  ;)
Title: Re: Look But No Read
Post by: ɔɔɔɔɔɔuɥoɾ on June 30, 2011, 11:16:49 PM
I upgraded to SMF 2.0 then installed this mod, and yes, BETA 4 mod works fine on SMF 2.0 final, crazy.
Title: Re: Look But No Read
Post by: krash661 on November 29, 2011, 02:10:32 PM
i have these groups on my site,guest,members,and subscribers. guest dont have access unless they sign up for membership(register).i have 8 boards so far,4 of them will be for regular members(usergroups) and 4 of them will be for subscribers(paying customers),but i want all boards to show when your a member and only have subscribers access the 4 that cost money


I want to use it as a member to subscriber,not guest register or log in,,will this work for that?
Title: Re: Look But No Read
Post by: jarska on December 21, 2011, 01:33:06 AM
Unfortunately this mod won't work through tapatalk, quests can read all denied categories. :'(
Title: Re: Look But No Read
Post by: LT07 on December 23, 2011, 08:36:03 PM
*WARNING HUGE SECURITY RISK*

For those who care about keeping members posts invisible to guests or higher level members posts invisible to lower rank members you DO NOT want to install this plug-in. It works to some degree but the search displays partial text from members area's and clicking view recent posts allows you to view the entire forum in full when your logged in as a guest.
Title: Re: Look But No Read
Post by: LT07 on December 23, 2011, 11:30:29 PM
Having read through previous posts I can see that this was an issue with earlier versions of SMF but had been fixed. V2.0.2 has broken this mod and added a huge backdoor with view recent posts and search. Google is busy indexing private members content.

For me this would be an unmitigated disaster, I want people to see the members area is active so that they join, I also want to encourage post based groups by knowing they have goals to achieve but displaying any of the privileged user group content is a no go, love the idea of them seeing the forum post titles but the content is strictly limited (even the search snippet is too much info)

I hope this is fixed, I really like this mod :)