Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: babjusi on May 31, 2009, 01:53:17 AM

Title: Guests see no posts
Post by: babjusi on May 31, 2009, 01:53:17 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1863)

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
Title: Re: Guests see no posts
Post by: sAce 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
Title: Re: Guests see no posts
Post by: ოկtђ on May 31, 2009, 03:18:46 AM
nice mod dude
Title: Re: Guests see no posts
Post by: babjusi on May 31, 2009, 10:10:47 AM
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 :)
Title: Re: Guests see no posts
Post by: alex30 on May 31, 2009, 11:19:33 AM
Great mod.

Will search engines be able to access posts and index them?
Title: Re: Guests see no posts
Post by: 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.
Title: Re: Guests see no posts
Post by: Smoky "Rider" Blue on May 31, 2009, 01:16:53 PM
Babjusi,

please see my pm on my site to you..

thanks!
Title: Re: Guests see no posts
Post by: Manu.G 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:)
Title: Re: Guests see no posts
Post by: 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 (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 :)
Title: Re: Guests see no posts
Post by: Manu.G on May 31, 2009, 04:14:17 PM
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 (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
Title: Re: Guests see no posts
Post by: Filipina on May 31, 2009, 10:40:30 PM
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 :)
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 10:23:20 AM
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.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi185.photobucket.com%2Falbums%2Fx21%2F1greywolf%2Fguestsseenoposts.jpg&hash=a3703d3688224aa461944ecf14c43fd2c30e262d)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi185.photobucket.com%2Falbums%2Fx21%2F1greywolf%2Fguestsseenoposts2.jpg&hash=f7b1d83fd645231c3ade214a23bdb5f63a0f2339)



@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?
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 11:28:22 AM
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.
Title: Re: Guests see no posts
Post by: Manu.G on June 01, 2009, 11:53:20 AM
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.';
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 12:10:47 PM
Thanks Manu :) I updated the package with the german language strings.
Title: Re: Guests see no posts
Post by: 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
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 01:28:54 PM
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.
Title: Re: Guests see no posts
Post by: Manu.G 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.  :(
For the moment I have hide the Recent Post for guests, but I would like to bring it
back. :)
Title: Re: Guests see no posts
Post by: 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.
Title: Re: Guests see no posts
Post by: Manu.G on June 01, 2009, 05:38:44 PM
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. ;)
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 05:41:22 PM
Quote from: Manu0372 on June 01, 2009, 05:38:44 PM
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. ;)

Glad to hear it :)

We are alike in that regard then. Backing up has become like my middle name :D
Title: Re: Guests see no posts
Post by: Dante` on June 01, 2009, 06:38:04 PM
if guests press "Print" button
they can see posts


How i remove it ? (completely)

OPEN :
/default/Display.template.php
Find :
'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

"DELETE"


OPEN :
/index.php
Find :
'printpage' => array('Printpage.php', 'PrintTopic'),

"DELETE"

open : sources/load.php
find : 'printpage',
"DELETE"



If you are not using default theme

open display.template
Find :
'print'

delete following line


Note : Sorry for my english
Title: Re: Guests see no posts
Post by: babjusi on June 01, 2009, 07:57:22 PM
Thanks for reporting it dantebyy.
Title: Re: Guests see no posts
Post by: Dante` on June 02, 2009, 02:41:34 AM
Quote from: babjusi on June 01, 2009, 07:57:22 PM
Thanks for reporting it dantebyy.
i can write turkish language for your mod ??
Title: Re: Guests see no posts
Post by: kraspay on June 02, 2009, 03:36:01 AM
babjusi, thx for good mod!
i can write russian language for your mod.

possibly to to add a choice of section?
i think it will be useful, some public section guest can see, but some cant.
i meant about restriction.

this will help to create intrigue to register.
some open sections of the public, will be useful for SEO.

ps. sorry for my poor english.
Title: Re: Guests see no posts
Post by: babjusi on June 02, 2009, 07:13:22 AM
Quote from: dantebyy on June 02, 2009, 02:41:34 AM
Quote from: babjusi on June 01, 2009, 07:57:22 PM
Thanks for reporting it dantebyy.
i can write turkish language for your mod ??

If you don''t mind. Thanks :)

Quote from: kraspay on June 02, 2009, 03:36:01 AM
babjusi, thx for good mod!
i can write russian language for your mod.

possibly to to add a choice of section?
i think it will be useful, some public section guest can see, but some cant.
i meant about restriction.

this will help to create intrigue to register.
some open sections of the public, will be useful for SEO.

ps. sorry for my poor english.


I agree, but atm I am very busy. But I will keep that in mind for when I get some free time.
Title: Re: Guests see no posts
Post by: Dante` on June 02, 2009, 07:28:28 AM
Modifications.turkish

//The start of the language strings for the mod
$txt['enable_g_see_noposts']='Ziyaretçilerin mesajları görmesine izin verme';
$txt['g_see_noposts_custom_message']='Ziyaretçiler herhangi bir konuya bakmak istediğinde karşılaşacakları mesaj. <span class="smalltext">Boş bırakırsan varsayılan yazı görünür.HTML ve Smileylere izin verilmiştir.</span>';
$txt['default_g_message']='<img src="' . $settings['images_url'] . '/attention.gif" alt="" /><br />
Tüm yorumlar sadece <strong>Kayıtlı Kullanıcılar</strong> içindir.<br />Mesajı görüntüleyebilmek için.<br> <a href="' . $scripturl . '?action=register">Kayıt ol</a><br />
Eğer üyeysen? <a href="' . $scripturl . '?action=login">Giriş Yap</a>';

help.turkish


// The start of the language strings
$helptxt['enable_g_see_noposts'] = 'Sen burda ziyaretçilerin tüm mesajlara bakmasına izin verebilirsin veya yasaklayabilirsin.<br />
Ziyaretçilerin herhangi bir konuya tıkladığı zaman karşılaşacağı mesajı yazabilirsin. HTML ve İfadelere izin verilmiştir.';
Title: Re: Guests see no posts
Post by: babjusi on June 02, 2009, 07:38:49 AM
Turkish language strings added.
Title: Re: Guests see no posts
Post by: Dante` on June 02, 2009, 07:43:22 AM
Quote from: babjusi on June 02, 2009, 07:38:49 AM
Turkish language strings added.
..

edit
Title: Re: Guests see no posts
Post by: Naki on June 10, 2009, 05:00:41 AM
5. Execute Modification ./Themes/default/languages/Modifications.german.php File not found
6. Execute Modification ./Themes/default/languages/Help.german.php File not found
7. Execute Modification ./Themes/default/languages/Modifications.turkish.php File not found
8. Execute Modification ./Themes/default/languages/Help.turkish.php File not found


File not found makes eror make it to skip
Title: Re: Guests see no posts
Post by: Bruno36 on June 18, 2009, 09:22:36 AM
   
Hello!

The mod is not compatible with smf 2.0 RC1-1

In Display.template.php I do not find the line.

// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';
Title: Re: Guests see no posts
Post by: babjusi on June 18, 2009, 09:25:22 AM
Quote from: Bruno36 on June 18, 2009, 09:22:36 AM
   
Hello!

The mod is not compatible with smf 2.0 RC1-1

In Display.template.php I do not find the line.

// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';


It is stated at the download page that it is compatible only with the 1.1 series.
Title: Re: Guests see no posts
Post by: mashby on June 18, 2009, 10:12:02 PM
Quote5.     Execute Modification     ./Themes/default/languages/Modif​ications.german.php     File not found
6.    Execute Modification    ./Themes/default/languages/Help.​german.php    File not found
7.    Execute Modification    ./Themes/default/languages/Modif​ications.turkish.php    File not found
8.    Execute Modification    ./Themes/default/languages/Help.​turkish.php    File not found

I was helping another user install this mod and found this to be slightly detrimental...perhaps if the languages aren't being used, these files can be skipped. The mod is certainly operational, but these messages can lead to issues for non-German and non-Turkish sites (which I imagine there are countless of).
Title: Re: Guests see no posts
Post by: Manu.G on July 21, 2009, 05:52:08 PM
Quote from: Manu0372 on May 31, 2009, 03:58:30 PM
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 (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:)

Is there something new?  O:)
Title: Re: Guests see no posts
Post by: babjusi on July 21, 2009, 06:17:39 PM
Quote from: Manu0372 on July 21, 2009, 05:52:08 PM
Quote from: Manu0372 on May 31, 2009, 03:58:30 PM
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 (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:)

Is there something new?  O:)

Not yet. My free time is very limited atm.
Title: Re: Guests see no posts
Post by: Eclipse16V on August 17, 2009, 12:38:33 AM
Nice Mod

I need it for the 2.0RC1.2 Version.  :(
Title: Guests see no posts mod + AA_NEW_DAMAGE Theme
Post by: the_observer on October 01, 2009, 01:12:44 PM
Hi all,

i would like to install this mod as it is most useful.
It works for me only for default theme but i would like to install it to the Aa New Damage v2 (http://custom.simplemachines.org/themes/index.php?lemma=738) theme.

So i tried to install it manually and i face one problem.

According to the instructions for manual installation of this mod i should find in ./Themes/AA _NEW DAMAGE/  the file Display.template.php and inside this i should find the code // Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';


and replace it with another portion of code.

Well the problem is ,that the above code does not exists in the Display.template.php of AA_NEW_DAMAGE.


Does anyone has a suggestion on what i should do?

Thank you 4 reading this.

Regards,
the_observer.
Title: Re: Guests see no posts
Post by: the_observer on October 05, 2009, 10:45:27 PM
bump
Title: Re: Guests see no posts
Post by: babjusi on October 06, 2009, 07:08:39 AM
Quote from: the_observer on October 05, 2009, 10:45:27 PM
bump

I am not familiar with the theme in question. Ask at the theme''s author.
Title: Re: Guests see no posts
Post by: the_observer on October 06, 2009, 10:36:12 PM
Thanx 4 your answer babjusi.

But from what i see around in the forum ,it is very difficult to get support for this theme . Runic ,the creator of v2 ,is not responding to questions about this theme. I will give it a try though.

Regards,
The_Observer.

Title: Re: Guests see no posts
Post by: the_observer on October 08, 2009, 06:02:11 PM
Hi again.

For whoever may concern the solution (http://www.simplemachines.org/community/index.php?topic=340630.msg2294023#msg2294023) to the problem i wrote for above has been given by Butcher in Greek smf section.

I translate:

In sort words he says that for AA_NEW_DAMAGE theme to work with Quests see no posts mod,except the manual installation instructions which you have to follow -of course- there is a slight difference.

Edit the file ./Themes/AA _NEW DAMAGE/Display.template.php and find:
<hr width="100%" size="1" class="hrcolor" />
                    <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>
                        ', $message['body'], '
                    </div>
                    ', $message['can_modify'] ? '<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '';
                   


then replace it with :
';
                    if ($context['user']['is_guest'] && !empty($modSettings['enable_g_see_noposts'])){
      echo'
           <br /><div class="windowbg">',!empty($modSettings['g_see_noposts_custom_message']) ? parse_bbc($modSettings['g_see_noposts_custom_message']) : $txt['default_g_message'],'</div>';
        }else{
      echo '               
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
                     <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '';
      }   


I did that for my forum (ver.1.1.10) and now the mod is working.

Thank you for reading this.

Regards,
The_Observer.
Title: Re: Guests see no posts
Post by: Kathleen Chute on October 29, 2009, 04:29:07 PM
Quote from: babjusi on May 31, 2009, 01:53:17 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1863)

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
Hi I am using SFM 1.1.10.  and I am using digital theme. This mod is not working but it installed fine. I have enabled it but Im not seeing anything. I read this post and my theme doesnt have a Displaytemplate.php. all I have in indextemplate.php
What should I do?
Thank you Kathleen
Title: Re: Guests see no posts
Post by: babjusi on October 29, 2009, 04:45:18 PM
Can I have a link to your forum?

Did you upload the image to your theme''s image directory as well?
Title: Re: Guests see no posts
Post by: Kathleen Chute on October 29, 2009, 04:52:32 PM
Quote from: babjusi on October 29, 2009, 04:45:18 PM
Can I have a link to your forum?

Did you upload the image to your theme''s image directory as well?
www.gotchaserved.com  Also , Im not sure about the image. I did upload the zip file
Thank you for the responce
Kathleen
Title: Re: Guests see no posts
Post by: babjusi on October 29, 2009, 04:54:35 PM
There is an image in my mod package. You should upload it to your custom theme''s image folder.
Also, did you enable the mod after installation?
Title: Re: Guests see no posts
Post by: Kathleen Chute on October 29, 2009, 05:10:39 PM
Quote from: babjusi on October 29, 2009, 04:54:35 PM
There is an image in my mod package. You should upload it to your custom theme''s image folder.
Also, did you enable the mod after installation?
I uninstalled it and reinstalled and It is given me langauge errors, I guess I have to install Manual??
Thank you for creating this mod as Im am too silly to figure this sh&#38;#%t out myself!!!
Thank you
Kathleen

I just installled another mod that did work for me, But I wanted to thank you for being so kind to ansew so quickly .
Thank you
Kathleen

Title: Re: Guests see no posts
Post by: babjusi on October 30, 2009, 12:38:02 PM
You are most welcome :)

Regarding those language errors, you should safely ignore them.
Title: Re: Guests see no posts
Post by: bburg5 on November 01, 2009, 05:53:02 PM
I have installed to the DB Theme manually and for some reason it does not show the image or wording for the guest to see. I also do not have any wording in the basic feature area, but I do have the check box and box to write a different message.

SITE (http://ffwaterfowl.com/Waterfowl/index.php)

Working Site (http://www.ffwaterfowl.com/Fire/index.php)
Title: Re: Guests see no posts
Post by: bburg5 on November 04, 2009, 08:42:24 AM
bump
Title: Re: Guests see no posts
Post by: bburg5 on November 05, 2009, 01:26:40 PM
RESOLVED on own...


Thanks
Title: Re: Guests see no posts
Post by: oOo--STAR--oOo on February 19, 2010, 03:27:23 PM
Arghh I see alot of mods i was using all the time for my previous forum are no longer compatible with SMF2.0 RC2

Is there any chance of getting this for RC2 as this was one of the main mods that was very useful
Title: Re: Guests see no posts
Post by: Bruno36 on May 25, 2010, 05:19:52 AM
an update is planned for RC3??
Title: Re: Guests see no posts
Post by: babjusi on May 25, 2010, 11:52:40 AM
No, sorry guys. My free time is very limited atm.