News:

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

Main Menu

Guests see no posts

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

Previous topic - Next topic

babjusi

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

Dante`

#21
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

babjusi

Thanks for reporting it dantebyy.

Dante`

Quote from: babjusi on June 01, 2009, 07:57:22 PM
Thanks for reporting it dantebyy.
i can write turkish language for your mod ??

kraspay

#24
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.

babjusi

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.

Dante`

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.';

babjusi

Turkish language strings added.

Dante`

#28
Quote from: babjusi on June 02, 2009, 07:38:49 AM
Turkish language strings added.
..

edit

Naki

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

Bruno36

   
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>';
Bruno36 the French
SMF 2.0.9

babjusi

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.

mashby

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).
Always be a little kinder than necessary.
- James M. Barrie

Manu.G

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
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:)
Version SMF 2.0.8
SimplePortal 2.3.5

babjusi

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

Eclipse16V

Nice Mod

I need it for the 2.0RC1.2 Version.  :(
I worked with:
SMF 2 in German

Shop:
SID Giessen

the_observer

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


babjusi

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.

the_observer

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.


Advertisement: