News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Look But No Read

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

Previous topic - Next topic

Deprecated

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.

jiraya

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

Deprecated

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?

jiraya

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?

BOS4O


Deprecated

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?

jiraya

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.

Deprecated

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?

jiraya

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

Deprecated

Then give me the primary member group for your VIPs. The number.

Armin2008

Well done. I was looking for something like this. Thanks

anakmacan

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

Deprecated

"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.

bullbreedluverz

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

Deprecated

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.

bullbreedluverz

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

Deprecated

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! :)

bullbreedluverz

im not getting the addition to the features and options menu bar to use the function

Deprecated

You didn't manually modify ./Themes/default/languages/index.english.php like I suggested. Attach it to a post.

anakmacan

#39
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  ;)

Advertisement: