Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Guest Topic View Limit V0.1.1 for YaBB 2.5 (Read 1311 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Guest Topic View Limit V0.1.1 for YaBB 2.5
Apr 23rd, 2012 at 8:21pm
Print Post  
Guest Topic View Limit

Description:
-----------------
This Mod will allow you to set a cookie to limit the amount of topics which guests are allowed to view before they are encouraged to register, either by blocking them from viewing any more topics or by displaying a message at the top of the message view.

Search engine bots shouldn't be affected by cookies, but to be safe any search bots in your bot list won't be affected by this Mod.

Credits:
----------
Thanks to Carsten for letting me use some of his code to check the search engine bot list.

Thanks to pyragony for the German and German_Du tranlations.

Screenshots:
------------------
Admin Center - Forum Settings - Members tab:


Message View - Blocked:


Message View - Message (not blocked):


Demo:
----------
http://ibrainstorm.net/modemos/forum/YaBB.pl

View more than five topics as a guest and you will see the message at the top of the message view.

Zip Package:
-----------------
guest_topic_view_limit_011.mod
guest_topic_view_limit_011_german.mod (Language patch)
guest_topic_view_limit_011_german_du.mod (Language patch)

Installation:
----------------
1) Modify YaBB files using BoardMod or manually.
2) Upload modified files to your server in ASCII mode.
3) Go into Admin Center => Forum Settings => Members tab to configure the settings.

Files to edit:
-----------------
Admin/ModList.pl
Admin/NewSettings.pl
Admin/Settings_Main.pl
Languages/English/Admin.lng
Languages/English/Display.lng
Sources/Display.pl
Templates/default/Display.template
Templates/yabb21/Display.template

Mod History:
----------------
0.1 - First Release - 23rd April 2012
0.1.1 - Fixed spelling error and added German language patches - 8th May 2012
« Last Edit: May 11th, 2012 at 6:23pm by Derek Barnstorm »  

guest_topic_view_limit_011.zip ( 6 KB | Downloads )
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #1 - Apr 23rd, 2012 at 9:25pm
Print Post  
Oh, nice. Another toy to play with. I think I will like this one. I shall try it out next time I'm playing around on the computer. Grin
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #2 - Apr 23rd, 2012 at 10:37pm
Print Post  
Okay, cool. Cool

You'll have to let us know how you get on...
  
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #3 - Apr 24th, 2012 at 1:29pm
Print Post  
Derek Barnstorm wrote on Apr 23rd, 2012 at 10:37pm:
You'll have to let us know how you get on... 


Hmmm. I know it is early here but I sense a bit of sarcasim there Grin

If not sarcasim, then what I meant was... I was on my iPhone earlier and would work on it when I was using my PC at home.

Either way, just installed this mod and love it. Nice little addition to my forum. Just maybe it will lead to more members wanting to register.

Need a reputation mod on this forum Smiley

Repped!
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #4 - Apr 24th, 2012 at 2:21pm
Print Post  
I wasn't being sarcastic - sorry if it sounded that way. I'd obviously only tested it myself, so I was interested to know if it was working as it should.

Glad you like it anyway. Smiley
  
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #5 - Apr 24th, 2012 at 2:30pm
Print Post  
Either way, I just thought you were messing with me cause I said "playing around on the computer"

If it was the case, I actually was taking it as a joke. Just a misunderstanding. Smiley Hehe.
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #6 - Apr 24th, 2012 at 2:37pm
Print Post  
Oh, I see, ha ha! I get it now. I'm not very quick off the mark today. Grin
  
Back to top
 
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #7 - May 8th, 2012 at 9:56am
Print Post  
Derek, this has to be one of the best mods. It should be in the basic download for future YaBB versions.

Had a few knockers when I first installedit however have been receiving far more genuine registrations since installing it.

Thanks once again.

Cheers


Derek
  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #8 - May 8th, 2012 at 1:12pm
Print Post  
That's great, Derek. Thank you for the feedback! Smiley
  
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #9 - May 8th, 2012 at 1:45pm
Print Post  
German

Code
Select All
<edit file>
Languages/German/Admin.lng
</edit file>

<search for>
);

%floodtxt=(
</search for>

<add before>
'enable_guest_view_limit' => 'Aktiviert Gast-Themen-Ansicht-Limit?<br /><span class="small">Wenn diese Option gesetzt wird, können sie die Themen, die Gäste sehen können, begrenzen. Damit werden sie ermutigt, sich zu registrieren. Die Mengen der Themen kann frei gewählt werden.</span>',
'guest_view_limit' => 'Gast-Themen-Ansicht-Limit:<br /><span class="small">Stellen Sie die Menge an Themen ein, die Gäste sehen können, bevor sie dazu ermutigt werden, sich zu registrieren.</span>',
'guest_view_limit_block' => 'Blockiere Gäste von der Themenansicht, nachdem sie das Limit erreicht haben?<br /><span class="small">Wenn diese Option aktiviert ist, werden die Gäste vom betrachten von mehr Themen blockiert, nachdem das Limit erreicht wurde.<br />Unkontrolliert lassen eine freundliche Nachricht am oberen Bereich der Nachricht erscheinen.</span>',
</add before>


<edit file>
Languages/German/Display.lng
</edit file>

<search for>
);

1;
</search for>

<add before>
'guest_message' => 'Besuchernachricht',
'guest_message_block' => "Hallo Besucher,<br /><br />sorry, aber Sie haben die Menge an Themen, die Sie berechtigt sind als Gast zu besichtigen, überschritten. Um möglichst viele Themen anzuzeigen, wie Sie möchten und von vielen weiteren Features zu profitieren, warum <a href=\"$scripturl?action=register\" style=\"font-weight: bold;\">registrieren sie sich nicht bei uns?</a>. Die Registration ist leicht und dauert nur ein paar Minuten.<br /><br />Sie sind bei uns bereits Mitglied, dann können sie sich<a href=\"$scripturl?action=login\" style=\"font-weight: bold;\">hier einlogen</a> um diese Nachricht zu stoppen.<br /><br />Vielen Dank!<br /><br />Das $mbname Team",
'guest_message_warn' => "Hallo Besucher,<br /><br />wie es aussieht, genießen sie das Lesen in unserem Forum. Also warum <a href=\"$scripturl?action=register\" style=\"font-weight: bold;\">registrieren sie sich nicht bei uns</a> um diese Nachricht zu stoppen und profitieren von den vielen weiteren Features? Die Registrierung ist einfach und dauert nur ein paar Minuten.<br /><br />Wenn sie bereits Mitglied bei uns sind, dann <a href=\"$scripturl?action=login\" style=\"font-weight: bold;\">klicken sie hier zum einlogen.</a><br /><br />Vielen Dank,<br /><br />das $mbname Team",
</add before>
 

  

Back to top
WWW  
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #10 - May 8th, 2012 at 1:47pm
Print Post  
German_Du

Code
Select All
<edit file>
Languages/German_Du/Admin.lng
</edit file>

<search for>
);

%floodtxt=(
</search for>

<add before>
'enable_guest_view_limit' => 'Aktiviert Gast-Themen-Ansicht-Limit?<br /><span class="small">Wenn diese Option gesetzt wird, kannst du die Themen, die Gäste sehen können, begrenzen. Damit werden sie ermutigt, sich zu registrieren. Die Mengen der Themen kann frei gewählt werden.</span>',
'guest_view_limit' => 'Gast-Themen-Ansicht-Limit:<br /><span class="small">Stelle die Menge an Themen ein, die Gäste sehen können, bevor sie dazu ermutigt werden, sich zu registrieren.</span>',
'guest_view_limit_block' => 'Blockiere Gäste von der Themenansicht, nachdem sie das Limit erreicht haben?<br /><span class="small">Wenn diese Option aktiviert ist, werden die Gäste vom betrachten von mehr Themen blockiert, nachdem das Limit erreicht wurde.<br />Unkontrolliert lassen eine freundliche Nachricht am oberen Bereich der Nachricht erscheinen.</span>',
</add before>

<edit file>
Languages/German_Du/Display.lng
</edit file>

<search for>
);

1;
</search for>

<add before>
'guest_message' => 'Besuchernachricht',
'guest_message_block' => "Hallo Besucher,<br /><br />sorry, aber du hast die Menge an Themen, die du berechtigt bist als Gast zu besichtigen, überschritten. Um möglichst viele Themen anzuzeigen, wie du möchtest und von vielen weiteren Features zu profitieren, warum <a href=\"$scripturl?action=register\" style=\"font-weight: bold;\">registrierst du dich nicht bei uns?</a>. Die Registration ist leicht und dauert nur ein paar Minuten.<br /><br />Du bist bei uns bereits Mitglied, dann kannst du dich<a href=\"$scripturl?action=login\" style=\"font-weight: bold;\">hier einlogen</a> um diese Nachricht zu stoppen.<br /><br />Vielen Dank!<br /><br />Das $mbname Team",
'guest_message_warn' => "Hallo Besucher,<br /><br />wie es aussieht, genießt du das Lesen in unserem Forum. Also warum <a href=\"$scripturl?action=register\" style=\"font-weight: bold;\">registrierst du dich nicht bei uns</a> um diese Nachricht zu stoppen und profitierst von den vielen weiteren Features? Die Registrierung ist einfach und dauert nur ein paar Minuten.<br /><br />Wenn du bereits Mitglied bei uns bist, dann <a href=\"$scripturl?action=login\" style=\"font-weight: bold;\">klicke hier um dich einzulogen.</a><br /><br />Vielen Dank,<br /><br />das $mbname Team",
</add before> 




  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1 for YaBB 2.5
Reply #11 - May 8th, 2012 at 2:04pm
Print Post  
Thank you very much, pyragony. I'll add them to the package later today.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1.1 for YaBB 2.5
Reply #12 - May 8th, 2012 at 7:20pm
Print Post  
I've added the German language patches to the package now (thanks again, pyragony!), and also fixed a spelling error in the English 'Admin.lng' edit.

V0.1.1 attached to the first post.
  
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: Guest Topic View Limit V0.1.1 for YaBB 2.5
Reply #13 - May 9th, 2012 at 7:17pm
Print Post  
@ Derek,

the German Package is not corect.
  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Guest Topic View Limit V0.1.1 for YaBB 2.5
Reply #14 - May 9th, 2012 at 7:25pm
Print Post  
What needs changing?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint