How to limit guest access ?

Started by NaYa, July 14, 2010, 11:10:15 AM

Previous topic - Next topic

NaYa

Hello there ,

I want to prevent guests from reading topics .But not boards .

So that te guest can see boards and categories ,But not posts .

And also i installed simple portal latest ,I dont want to prevent guest from reading the posts in the home page .But when the Guest clicked on Read More on simple portal ,then it need to say "You need to Register to see the content " .

Anyway ? Any possibilities ? Any Re directions ?

I am littlebit newbie ,so please help me in ease .

Thank you .
http://www.filmyplanet.com - The entertainment portal !

Jamie Sealson

I cant think of a way

I guess you can try and search for an addon

Or just block them from the catorgries and make one saying Why you should join

mirahalo


NaYa

Quote from: 130860 on July 14, 2010, 01:16:19 PM
theres a mod that does something similar to what you want:  http://custom.simplemachines.org/mods/index.php?mod=1332
Ahh Thank you very much .

But i am using SMF 2.0 RC3 .I downloaded that pack and tried to install and it giving me many errors during the installation .
Can i edit that manually ? Or is tht mod have any problem with RC3 ?

@ JamieSealson

Thank you ,I will search .
http://www.filmyplanet.com - The entertainment portal !

Jamie Sealson


mirahalo

the mod does install on a RC3 forum,  and sure you can edit your files manually, take a look a t this:  Manual Installation of Mods


or tell me whta files give you errors and attach it here so I can have a look

NaYa

Sorry for the late reply . (Busy with Life,Sorry ) !

I have installed the mod with some errors ,and after the installation i edited the files (Which shows errors during installation ) .And after that i watched some option to .But i have installed the Pretty URL'S mod and i cant see the ID of boards,category .

That MOD saying that to enter the ID ,od the boards,categories in a text box,but it will not work with me ...

and also i think that it may work (If the mod is created by a expert) with the  pretty URL'S .

So how move next ?
http://www.filmyplanet.com - The entertainment portal !

mirahalo

to see the board ID  go to / admin /  forums /  where the list of all your forum is, theres a modified link, if you click on that link you will see the board ID, the same goes to categories.

and also, you can disable pretty url just for a moment, check your boards and then enable again.

cicka

Another way to do it. At the Display.template.php file find this code.

echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';


And replace it with this code

if($context['user']['is_guest'])
        echo
fatal_lang_error('no_access', false);
else
echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';


This will allow the guests to see all the threads but not the posts inside them. If you would like to apply this for some boards only, then please do let me know and I will post the code.

NaYa

Quote from: 130860 on July 20, 2010, 11:17:25 AM
to see the board ID  go to / admin /  forums /  where the list of all your forum is, theres a modified link, if you click on that link you will see the board ID, the same goes to categories.

and also, you can disable pretty url just for a moment, check your boards and then enable again.


Thank you ,I got what you said .i will check and reply soon .(Really great help )

@ cicka ,

Thank you ,But i need to limit guest access from almost all boards .I think that this MOD will help me .If it failed then i will info U .I think that you will help me.

Thank you .
http://www.filmyplanet.com - The entertainment portal !

cicka

Quote from: NaYa on July 21, 2010, 01:32:37 AM
Quote from: 130860 on July 20, 2010, 11:17:25 AM
to see the board ID  go to / admin /  forums /  where the list of all your forum is, theres a modified link, if you click on that link you will see the board ID, the same goes to categories.

and also, you can disable pretty url just for a moment, check your boards and then enable again.


Thank you ,I got what you said .i will check and reply soon .(Really great help )

@ cicka ,

Thank you ,But i need to limit guest access from almost all boards .I think that this MOD will help me .If it failed then i will info U .I think that you will help me.

Thank you .

That code I posted above will limit guests from entering threads in all boards too.

Advertisement: