News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Guests see no posts

Started by babjusi, May 31, 2009, 01:53:17 AM

Previous topic - Next topic

babjusi

Link to Mod

I created this mod with SmokyBlue when someone asked at her forum for such a feature. But since atm, she is tied up with some personal matters I took it on me to submit it here and support it.


What does it do: This mod will not allow the guests to view the posts on a topic. Instead of redirecting them immediately to the log in/register area, this mod takes it a bit further. it actually allows the guests to see a topic but not the contents of the posts themselves inside the topic. For more info, please check the attached screenshots at the download page.

Compatibility: Atm it is compatible only with 1.1.9 and every below version of the 1x1 serie.

Support: If you are using a custom theme that uses its own Displaytemplate.php file, then you must add the codes manually to that file. How to do so, have a look at the mod parser attached under the download package.

Also, please don''t ask questions of the kind that are outside of the mod functionality like how can I make that the guests see only the first post but not the rest, or the second post etc etc. Questions of this kind will be ignored.

Thank you for your understanding :)

German language strings added thanks to Manu0372


Turkish language strings added thanks to dantebyy

sAce

nice mod buddy,
but i c you  are using windowbg2 as ur msg background, it wd be better wid a new or wid nothing , dont u think ? it look kinda odd

ოկtђ


babjusi

Quote from: S-Ace on May 31, 2009, 02:40:51 AM
nice mod buddy,
but i c you  are using windowbg2 as ur msg background, it wd be better wid a new or wid nothing , dont u think ? it look kinda odd

You can always create your own class in the style.css to your likings :)

Quote from: Mythcomeback | Burak on May 31, 2009, 03:18:46 AM
nice mod dude

Thanks :)

alex30

Great mod.

Will search engines be able to access posts and index them?

babjusi

Quote from: alex30 on May 31, 2009, 11:19:33 AM
Great mod.

Will bots be able to access posts and index them?

Yes, I believe so. The purpose of this mod is to only make the posts contents unviewable for guests only.

Smoky "Rider" Blue

Babjusi,

please see my pm on my site to you..

thanks!
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Manu.G

Quote from: babjusi on May 31, 2009, 01:53:17 AM
Also, please don''t ask questions of the kind that are outside of the mod functionality like how can I make that the guests see only the first post but not the rest, or the second post etc etc. Questions of this kind will be ignored.

Thank you for your understanding :)

I hope my question won't be ignored, cause I don't ask how can I make that the guests see only.... ;)

I just want to ask, isn't it possible to add categories were guest will see the message?
Please take a look at our forum http://forum.arseniums.com
I want to give the guests the possibility to see the posts in the category "Announcement" and "Meeting Point", but when they try to read in the category "Arsenium" they should see only the message to register or login.
At the moment, some boards in the category "Arsenium" aren't visible for guests. ;)

I know there are a mods available to give a topic overview in boards, but not reading in the topics. The problem is, we have a lot of boards and whenever we add a new member group to our forum, we have to check every board, if the new member group is having access to the boards. That's why we decided to remove the mod "View only board".

Do you think there will be a way to do it as my idea is?

Thanks a lot, and I'm not angry if you can't help me.
Sorry for my bad English.  O:)
Version SMF 2.0.8
SimplePortal 2.3.5

babjusi

Quote from: Manu0372 on May 31, 2009, 03:58:30 PM
Quote from: babjusi on May 31, 2009, 01:53:17 AM
Also, please don''t ask questions of the kind that are outside of the mod functionality like how can I make that the guests see only the first post but not the rest, or the second post etc etc. Questions of this kind will be ignored.

Thank you for your understanding :)

I hope my question won't be ignored, cause I don't ask how can I make that the guests see only.... ;)

I just want to ask, isn't it possible to add categories were guest will see the message?
Please take a look at our forum http://forum.arseniums.com
I want to give the guests the possibility to see the posts in the category "Announcement" and "Meeting Point", but when they try to read in the category "Arsenium" they should see only the message to register or login.
At the moment, some boards in the category "Arsenium" aren't visible for guests. ;)

I know there are a mods available to give a topic overview in boards, but not reading in the topics. The problem is, we have a lot of boards and whenever we add a new member group to our forum, we have to check every board, if the new member group is having access to the boards. That's why we decided to remove the mod "View only board".

Do you think there will be a way to do it as my idea is?

Thanks a lot, and I'm not angry if you can't help me.
Sorry for my bad English.  O:)

The thing is that atm this mod disallows the view to all the posts in your forum, without exception. But what you says sounds nice for an idea to expand the mod''s functionality. I will keep it in mind for later on when or rather if, I will get some free time to work on it.

And you english is excellent btw :)

Manu.G

Quote from: babjusi on May 31, 2009, 04:02:51 PM
Quote from: Manu0372 on May 31, 2009, 03:58:30 PM
Quote from: babjusi on May 31, 2009, 01:53:17 AM
Also, please don''t ask questions of the kind that are outside of the mod functionality like how can I make that the guests see only the first post but not the rest, or the second post etc etc. Questions of this kind will be ignored.

Thank you for your understanding :)

I hope my question won't be ignored, cause I don't ask how can I make that the guests see only.... ;)

I just want to ask, isn't it possible to add categories were guest will see the message?
Please take a look at our forum http://forum.arseniums.com
I want to give the guests the possibility to see the posts in the category "Announcement" and "Meeting Point", but when they try to read in the category "Arsenium" they should see only the message to register or login.
At the moment, some boards in the category "Arsenium" aren't visible for guests. ;)

I know there are a mods available to give a topic overview in boards, but not reading in the topics. The problem is, we have a lot of boards and whenever we add a new member group to our forum, we have to check every board, if the new member group is having access to the boards. That's why we decided to remove the mod "View only board".

Do you think there will be a way to do it as my idea is?

Thanks a lot, and I'm not angry if you can't help me.
Sorry for my bad English.  O:)

The thing is that atm this mod disallows the view to all the posts in your forum, without exception. But what you says sounds nice for an idea to expand the mod''s functionality. I will keep it in mind for later on when or rather if, I will get some free time to work on it.

And you english is excellent btw :)

Thanks a lot for your reply, I'm happy you will keep my idea in mind and till this I will try to install your mod in our forum, cause I don't like to hid categories, but I don't like it too, that guests can read everything.  ;D
Version SMF 2.0.8
SimplePortal 2.3.5

Filipina

Quote from: babjusi on May 31, 2009, 11:21:23 AM
Quote from: alex30 on May 31, 2009, 11:19:33 AM
Great mod.

Will bots be able to access posts and index them?

Yes, I believe so. The purpose of this mod is to only make the posts contents unviewable for guests only.

Thanks this is the key to me. I don't see how it can make the posts "unviewable" to guests but allow google to crawl. I am not sure but it seems to good to me true :)

babjusi

Quote from: Cloud Walker on June 01, 2009, 04:35:31 AM
QuoteWhat does it do: This mod will not allow the guests to view the posts on a topic. Instead of redirecting them immediately to the log in/register area, this mod takes it a bit further. it actually allows the guests to see a topic but not the contents of the posts themselves inside the topic. For more info, please check the attached screenshots at the download page.

Really?  You think this actually functions?? I think NOT!!  I am tempted to report it as unsafe. Why?  Because I have a forum for Survivor's of abuse (including sexual abuse and rape and oh, yeah I want to have the posts read by any guest that happens to come along!!!!!!!!!!!  :o >:(

Here's one
http://www.asanctuary.net/forum/index.php?topic=203.0
NOTICE that THE POST YOU ARE READING is for members ONLY!!! :o


Need another??
http://www.asanctuary.net/forum/index.php?topic=14.0
This one is the Welcome to Survivors.  Oh yeah, you'll read that too. :-[

This is the Welcome to Survivor's of Sexual Abuse
and is titled "This Area Is Separate". :-\
http://www.asanctuary.net/forum/index.php?topic=751.0


This is one out of "The Attic ~ The Place Where Private Things Are"
http://www.asanctuary.net/forum/index.php?topic=787.0 :'( :'(

Not private with this mod in place

Have I made my point? ???

Because if I haven't I also have the board that is for people with multiple personalities that the guests can read. :-[

Proceed with caution if your forum requires that the guest do not READ your posts.

BTW, I am  way past angry, the thought entered my mind to take down the SMF Forum and see about another style of software


Good Luck,
Cloud Walker
PS - I am now taking Screen Shots so that you can see that it is fully installed.









@Cloud Walker, the mod works fine. It has been tested countless of times. Can you attach here your display.template.php file? And in the future, try to ease up on the drama, will you?

babjusi

Quote from: SmokyBlue on May 31, 2009, 01:16:53 PM
Babjusi,

please see my pm on my site to you..

thanks!

It has been taken care of Smoky.

Manu.G

I got the mod installed, after some manual edits in the Display.template.php, and it works like a charm! ;D

Take a look here: http://forum.arseniums.com/index.php/topic,6533.0.html

Here is the German translation (iso) of the mod:

Modifications.german.php

//The start of the language strings for the mod
$txt['enable_g_see_noposts']='Verbiete Gäste die Beiträge zu lesen';
$txt['g_see_noposts_custom_message']='Geben sie hier die Nachricht ein, die G&auml;sten angezeigt werden soll, wenn sie ein Thema &ouml;ffnen.<span class="smalltext">Leer lassen, um die Standardnachricht anzeigen zu lassen. Smileys und HTML sind erlaubt</span>';
$txt['default_g_message']='<img src="' . $settings['images_url'] . '/attention.gif" alt="" /><br />
Beitr&auml;ge k&ouml;nnen nur von <strong>registrierten Mitglieder</strong> gelesen werden.<br />Du bist herzlich willkommen unserer Gemeinschaft beizutreten. <a href="' . $scripturl . '?action=register">Registrieren</a><br />
Du bist schon Mitglied? Bitte <a href="' . $scripturl . '?action=login">einloggen</a> um die Beitr&auml;ge zu sehen.';


Help.german.php

// The start of the language strings
$helptxt['enable_g_see_noposts'] = 'Hier k&ouml;nnen sie festlegen, ob G&auml;ste Beitr&auml;ge in ihrem Forum lesen d&uuml;rfen oder nicht.<br />
Im Textfeld k&ouml;nnen sie eine eigene Meldung einf&uuml;gen, die G&auml;ste angezeigt bekommen, wenn sie ein Thema einsehen wollen. HTML und Smileys sind aktiviert.';
Version SMF 2.0.8
SimplePortal 2.3.5

babjusi

Thanks Manu :) I updated the package with the german language strings.

kraspay

babjusi, can you add option of the choice of the sections?
i think this was much useful many ppl

babjusi

Quote from: kraspay on June 01, 2009, 01:27:30 PM
babjusi, can you add option of the choice of the sections?
i think this was much useful many ppl

Do you mean on a board per board basis? Maybe at a future time I will.

Manu.G

#17
Is it possible to use the mod at "Recent Post" too?
The problem is, guests can still see there the postings.  :(
For the moment I have hide the Recent Post for guests, but I would like to bring it
back. :)
Version SMF 2.0.8
SimplePortal 2.3.5

babjusi

Quote from: Manu0372 on June 01, 2009, 05:26:55 PM
Is it possible to use the mod at "Recent Post" too?
The problem is, guests can still see there the postings.  :(

Try this for a quick fix.

Find the following code in the Recent.php file in the /Sources/ directory:

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


And before that add:

is_not_guest();

Hope it helps and don't forget to backup first the file before you apply the edits.

Manu.G

Quote from: babjusi on June 01, 2009, 05:30:14 PM
Quote from: Manu0372 on June 01, 2009, 05:26:55 PM
Is it possible to use the mod at "Recent Post" too?
The problem is, guests can still see there the postings.  :(

Try this for a quick fix.

Find the following code in the Recent.php file in the /Sources/ directory:

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


And before that add:

is_not_guest();

Hope it helps and don't forget to backup first the file before you apply the edits.

Works perfect!!! Thanks  ;D

Backing up my files is the first thing I do. ;)
Version SMF 2.0.8
SimplePortal 2.3.5

Advertisement: