Not allowed to Read posts beyond first post unless a member - is it possible?

Started by Harryf, September 09, 2007, 12:43:36 PM

Previous topic - Next topic

Harryf

Hi All!

I would like to have my forum set up in such a way that guests may only see the first post (i.e. - the post by the starter of the thread) but nothing more than that unless they join.

I can see the setting that "allows members to browse forum" under the Features and Settings configuration option and would like that turned on.

I can also see, under the section Modify Boards, that I can disallow Guests from accessing the board - but how much access is actually disallowed?  Up to which point can Guests then "enter" the forum?  Can they see Categories?  If so, can they then also see boards within categories?  If so etc etc.  See where I am going?

I can also see, under the same secdtion Modify Boards, that there is a setting asking for Board Access privileges, i.e. Normal, No Poll, Reply only and Read only.  Once guests are members, their privileges should be Normal, but untill such time - refer to my request:  they should only be allowed to read the post placed by the starter of any thread and nothing more.

A warning should be displayed somewhere that clearly shows that, even though a post was responded to, the guest will have no access unless s/he joins.

Is it possible and how can it be done, please?

Kindest possible regards

Harry
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

jerm

That isn't possible by default. I would suggest posting this in the coding section or mod request board.

Harryf

Hi and Thanks Jerm!

Is it possible that a moderator can move my thread as per Jerm's suggestion?

Do I need to re-post there?

I'll wait a while before re-posting.

Kindest regards

Harry
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

codenaught

Dev Consultant
Former SMF Doc Coordinator

Harryf

Hi akabugeyes!

I completely missed your response to this question of mine - almost two years ago!  Thanks very much - and I apologise for not saying so sooner.  I kept forgetting to tick the "Notify me of replies" box and never looked at the topic without email responses.

Back to the topic, though:  I followed your link and changed the code.  It worked - but there is no indication that there are answers to the topic but that the guest simply cannot see it.  The idea, therefore, is to actually get them intrigued by the question someone had asked and that they (the guests) wouldn't mind registering to read the answer - but something must at least tell them that there is an answer.

Is it possible to have something show that there are replies but that guests just have to register to read them?

I've been giving information away for free for two years now, hoping that it'd create some awareness about my expertise - but alas, guests simply take what they can for free and use my info to shop elsewhere...

Hope you still have some links to this topic - hehe, it being so old and all!

Kind regards

Harry
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

Harryf

Hi again!

I notice that by changing the number 1 in the line of code (as supplied by akabugeyes) to a number 2 (for example), the first post (topic starter) as well as the first reply (second post) is shown.

LIMIT " . ($user_info['is_guest'] ? "0, 1" : "$start, $limit") . ""), __FILE__, __LINE__);

Now, again, back to my request:  Can the number "1" be replaced with some "if guest then" code to actually insert a post into position 2 in each topic if viewed by a guest?  This inserted topic should simply say something like "Sorry, even though there are replies to this topic, you have to register as a member to read it.".

If the reader is a member, no post will be inserted and the normal no 2 post will be shown.

I keep bothering you guys, but as nobody seems to respond, I don't know what to expect!  I actually thought of simply insering a standard message like the above into each topic and moving it into second spot, but I have no idea how to do it and asked about it here:  http://www.simplemachines.org/community/index.php?topic=330937.0

Because each post seems to have a fixed number ("reply #1" etc) attached to it, I wonder whether the insertion of a reply between topic starter and reply no1 is posible for guests.  What happens to the numbers allocated to the actual other posts?

Just me wondering...

Any ideas, please?

Harry
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

Harryf

Hi!

People in this post are now also trying to help:  http://www.simplemachines.org/community/index.php?topic=330937.0

The original post did not start out that way, but it ended up being linked.

Please accept my apologies for eventually double posting. 
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

Advertisement: