[BETA] Hide a part of the message for Guests (1.0.0)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: [3.0.5] Hide a part of the message for Guests (1.0.0)

Post by onehundredandtwo »

EsmerÖzcan wrote:
katib wrote: And what about bots and spiders like google?
I want google to be able to spidre my forum withut restriction
deos your Mod allow this !?
Thanks
bots have no restrictions they can see everything without problems
Just remember that anybody could change their user-agent to have GoogleBot/ at the end, and they would be classified as a bot. :geek:
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

I've tryed to install this mod on my community, but it doesn't work. Why?

I use phpBB 3.0.4
Thank you.
drankur
Registered User
Posts: 271
Joined: Sat Dec 22, 2007 4:16 am

Re: [3.0.5] Hide a part of the message for Guests (1.0.0)

Post by drankur »

drankur wrote:i am getting this error
Fatal error: Call to undefined function mb_substr() in /home/xxxx/public_html/forums/includes/functions_hide_message.php on line 31
can anybody help me on this?? i am using phpbb-seo mod
User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [3.0.5] Hide a part of the message for Guests (1.0.0)

Post by EsmerÖzcan »

drankur wrote:
drankur wrote:i am getting this error
Fatal error: Call to undefined function mb_substr() in /home/xxxx/public_html/forums/includes/functions_hide_message.php on line 31
can anybody help me on this?? i am using phpbb-seo mod
I also use phpbb-seo and i have no error with this codes...

Replace the functions_hide_messeage.php with

Code: Select all

<?php
/**
*
* @package phpBB3
* @version $Id: hide_message.php 2009-06-6 $
* @copyright (c) 2008, 2009 TeskilatForum.neT - EsmerÖzcan 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/


/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if 	($user->data['user_id'] == ANONYMOUS) 
{
	$user->add_lang('mods/hide_message');
    $messagelength		= 	250;	//	You can edit the message length here
    $messagelength1 	= 	strlen($message);
	$l_messagelength 	=	$user->lang['MESSAGE_LENGTH']; 
	$l_messagelength1 	=	$user->lang['MESSAGE_LENGTH1'];
        
	if ($messagelength1 > 	$messagelength)
    {
		$message		=   "$l_messagelength <b><u>$messagelength</u></b> $l_messagelength1"
		.substr($message, -$messagelength1, $messagelength); 
	}    
}

?>
Andrea.Trionfera wrote: I've tryed to install this mod on my community, but it doesn't work. Why?

I use phpBB 3.0.4
Thank you.
get you a error message or is the mod not displayed?
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [3.0.5] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

EsmerÖzcan wrote:
get you a error message or is the mod not displayed?
MOD not displayed.
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

Can you help me?
User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by EsmerÖzcan »

Andrea.Trionfera wrote:Can you help me?
sry for my late reply but I am almost all day in school :)

I have this mod only tested on 3.0.5 :?

maybe you have forgotten to make the changes from the install.xml??
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

EsmerÖzcan wrote:
Andrea.Trionfera wrote:Can you help me?
sry for my late reply but I am almost all day in school :)

I have this mod only tested on 3.0.5 :?

maybe you have forgotten to make the changes from the install.xml??
No, i've make all changes that install.xml says.
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

Are you sure this MOD run correct on phpBB 3.0.4?
User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by EsmerÖzcan »

Andrea.Trionfera wrote:Are you sure this MOD run correct on phpBB 3.0.4?


I have not tested on 3.0.4, I have written this mod after 3.0.5 was released...
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

So I think in future I will update 3.0.4 to 3.0.5

:(
User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by katib »

Andrea.Trionfera wrote:Are you sure this MOD run correct on phpBB 3.0.4?
Yes !! it works on 3.0.4 as well as on 3.0.5
I tested it on both
onehundredandtwo wrote: Just remember that anybody could change their user-agent to have GoogleBot/ at the end, and they would be classified as a bot. :geek:
thanks
I am aware of that, fortunatelly, ot all internet users are aware of that
but it is unimportant. because in a way or in a other, the bord's visitor can access the content..
I am only using this Mod to put some lazy guests to registers :mrgreen:
to be more content protective, I would use another Mods like "Post count requirement"
Last edited by katib on Sat Jun 20, 2009 2:11 pm, edited 1 time in total.
Andrea.Trionfera
Registered User
Posts: 36
Joined: Thu Apr 30, 2009 7:11 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by Andrea.Trionfera »

katib wrote:
Andrea.Trionfera wrote:Are you sure this MOD run correct on phpBB 3.0.4?
Yes !! it works on 3.0.4 as well as on 3.0.5
I tested it on both
Ok, I try to re-install.
Thank you!
User avatar
spaceace
Registered User
Posts: 1990
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by spaceace »

very nice work. have it installed and it seems to work very nice :D

looking forward to the finished version :mrgreen:
youngjediknight
Registered User
Posts: 385
Joined: Wed Apr 22, 2009 2:58 pm

Re: [BETA] Hide a part of the message for Guests (1.0.0)

Post by youngjediknight »

Out of curiosity, has anyone that has this mod installed for a period of time noticed that their registration rates have gone up at all? And try to be honest. :lol:
Locked

Return to “[3.0.x] MODs in Development”