Show First Post Only to Guest

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: Show First Post Only to Guest

Post by Primy »

@ ijhtio
Maybe i don't understand very well your question but this MOD is based on forum permissions. U can choose which forum to enable the MOD and u can also choose if to enable it for any forums. For example i use it even just in a section on my board :)
Dragon21
Registered User
Posts: 1
Joined: Mon Aug 24, 2009 10:35 pm

Re: Show First Post Only to Guest

Post by Dragon21 »

How does it work?

I have installed it, but I do not know how to activate it in determinated forums :(

Thanks!
giorgino
Registered User
Posts: 33
Joined: Tue Dec 02, 2008 1:44 pm

Re: Show First Post Only to Guest

Post by giorgino »

Great great mod! :D Very well Done! Thank you!
nitin888
Registered User
Posts: 2
Joined: Fri Sep 18, 2009 1:33 pm

Re: Show First Post Only to Guest

Post by nitin888 »

Hi,

Thanks for this great mod. Although there seems to be a small issue, when a user searches in the forums, they can see the underlying posts.

Is there anyway possible to avoid showing the underlying posts to the guests when they search?

Kind regards,
Nitin
giorgino
Registered User
Posts: 33
Joined: Tue Dec 02, 2008 1:44 pm

Re: Show First Post Only to Guest

Post by giorgino »

Primy wrote:Like registered users ;)
Hi Primy, why the page in google cache are in "guest" mode? :shock: :o
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: Show First Post Only to Guest

Post by Primy »

My error. Next version will be based on group permissions so admin can assign them for bots too.

In the meantime...

Open viewtopic.php

FIND:

Code: Select all

$s_sfpo = (!empty($topic_data['sfpo_guest_enable']) && (!$user->data['is_registered']) && ($total_posts > 1));
REPLACE WITH:

Code: Select all

$s_sfpo = (!empty($topic_data['sfpo_guest_enable']) && (!$user->data['is_registered']) && (!$user->data['is_bot']) && ($total_posts > 1));
giorgino
Registered User
Posts: 33
Joined: Tue Dec 02, 2008 1:44 pm

Re: Show First Post Only to Guest

Post by giorgino »

Primy wrote:My error. Next version will be based on group permissions so admin can assign them for bots too.

In the meantime...

Open viewtopic.php

FIND:

Code: Select all

$s_sfpo = (!empty($topic_data['sfpo_guest_enable']) && (!$user->data['is_registered']) && ($total_posts > 1));
REPLACE WITH:

Code: Select all

$s_sfpo = (!empty($topic_data['sfpo_guest_enable']) && (!$user->data['is_registered']) && (!$user->data['is_bot']) && ($total_posts > 1));
Thank you Primy for the quick response :)
When I seen my google statistics goes down :( Now I know why. (And you too).

I love your mod!
zagor256
Registered User
Posts: 60
Joined: Sun Aug 03, 2008 2:04 pm
Contact:

Re: Show First Post Only to Guest

Post by zagor256 »

Hi.

Isn't that treated as cloaking if googlebot see different content than guest?

http://en.wikipedia.org/wiki/Cloaking
simivar
Registered User
Posts: 32
Joined: Sat May 16, 2009 9:43 am

Re: Show First Post Only to Guest

Post by simivar »

Polish translation:
(Open) Otwórz: language/pl/viewtopic.php:
(Find) Znajdź:

Code: Select all

?>
(Add before) Dodaj przed:

Code: Select all

//// Show First Post Only
$lang = array_merge($lang, array(
	'SFPO_MSG_REPLY'		=> 'Ten temat ma <b>1</b> odpowiedź',
	'SFPO_MSG_REPLIES'		=> 'Ten temat ma <b>%d</b> odpowiedzi',
	'SFPO_MSG_REGISTER'		=> '<h3>Musisz być zarejestrowanym/zalogowanym użytkownikiem, aby zobaczyć odpowiedzi w tym temacie.</h3>',  	
  'SFPO_LOGIN' => 'Zaloguj',
  'SFPO_OR' => 'albo',
  'SFPO_REGISTER' => 'Zarejestruj',
	'SFPO_WARNING' => 'OSTRZEŻENIE',
));
// End Show First Post Only
(Open) Otwórz: language/pl/acp/forums.php
(Find) Znajdź:

Code: Select all

	'ENABLE_RECENT_EXPLAIN'			=> 'Jeśli włączone, tematy napisane w tym dziale będą wyświetlane na liście aktywnych tematów.',
(Add before) Dodaj przed:

Code: Select all

	'ENABLE_SFPO' 			=> 'Włącz tylko pierwszy post dla gości',
	'ENABLE_SFPO_EXPLAIN' 			=> Jeżeli ustawione na tak, niezarejestrowani/goście widzieć będą tylko pierwsze posty w każdym temacie. W miejscu kolejnych postów w temacie pojawi się informacja o zalogowaniu/zarejestrowaniu.',
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Show First Post Only to Guest

Post by CMA »

is this mod working prefectly? no bugs, or whatever?

i want to repeat questions

- see first 5 posts from above posts is working with phpbb3.06?
- are bot and guest same?

after installed with automod, buttons are not displaying...
User avatar
bobl61
Registered User
Posts: 9
Joined: Tue Dec 01, 2009 12:54 am

Re: Show First Post Only to Guest

Post by bobl61 »

Installation went fine, but this is what the guests sees :?
Image
User avatar
bobl61
Registered User
Posts: 9
Joined: Tue Dec 01, 2009 12:54 am

Re: Show First Post Only to Guest

Post by bobl61 »

Okay...I'm getting closer :) I'm finding out it has alot to do with the language files (en, en_us).
Here's a new pic. It shows the warning, but underneath it just says or

Image
User avatar
bobl61
Registered User
Posts: 9
Joined: Tue Dec 01, 2009 12:54 am

Re: Show First Post Only to Guest

Post by bobl61 »

A little help here. Anyone home? :(
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: Show First Post Only to Guest

Post by Primy »

@bobl61

Your problem is that it doesn't show images. This is a installation issue, so you should check the files.

In particular:

1) Have you uploaded images in this way?

Code: Select all

   1. Copy: root/styles/yourtemplate/imageset/icon_sfpo_register.gif
          To: styles/prosilver/imageset/icon_sfpo_register.gif
   2. Copy: root/styles/yourtemplate/imageset/icon_sfpo_login.gif
          To: styles/prosilver/imageset/icon_sfpo_login.gif	
2) Have you refreshed your template and imageset by ACP?

3) Have you refreshed the browser cache?

4) In viewtopic.php, have you added these lines:

Code: Select all

	'SFPO_L_IMG' 		=> $user->img('icon_sfpo_login', 'SFPO_LOGIN'),
	'SFPO_R_IMG' 		=> $user->img('icon_sfpo_register', 'SFPO_REGISTER'),
User avatar
bobl61
Registered User
Posts: 9
Joined: Tue Dec 01, 2009 12:54 am

Re: Show First Post Only to Guest

Post by bobl61 »

Thanks very much Primy. Refreshing the imageset did the trick :P I had refreshed the template, but was not aware about refreshing the imageset. Thanks again!
Locked

Return to “[3.0.x] MOD Database Releases”