[MODDB] Guest Hide BBCode MOD

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!
Suggested Hosts
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by AllCity »

AllCity wrote:Updated mod to 1.2.0 version 8-)
2009-01-04 - Version 1.2.0
Added possible to ENABLED/DISABLED view the text only after the user post. (From Simple Hide BBcode MOD)
Added possible to ENABLED/DISABLED Admins and Moderators read hidden content if view the text only after the user post on. (From Simple Hide BBcode MOD)
:?: :?: :?: :?: :?:
My mods home page.
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by jmjm003 »

Thanks for the hide message mod.
Got this debug notice while using it.

Code: Select all

PHP Notice: in file /includes/hooks/hook_guest_hide_bbcode_mod.php on line 35: Undefined index: MESSAGE
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by stokerpiller »

jmjm003 wrote:Thanks for the hide message mod.
Got this debug notice while using it.

Code: Select all

PHP Notice: in file /includes/hooks/hook_guest_hide_bbcode_mod.php on line 35: Undefined index: MESSAGE
Did you remember to upload the language file?
I am done with phpBB
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by jmjm003 »

It's there.
language/en/mods/guest_hide_bbcode_mod.php

Got this while testing with guest posting allowed. I did a post as a guest.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by stokerpiller »

jmjm003 wrote:It's there.
language/en/mods/guest_hide_bbcode_mod.php

Got this while testing with guest posting allowed. I did a post as a guest.
Are you using version 1.2.0?
I am and I have just testet guest posting, there was no errors.
I am done with phpBB
User avatar
kiddo
Registered User
Posts: 41
Joined: Tue Jan 15, 2008 2:59 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by kiddo »

The mod works like a charm and was easy to install, just one slight problem.

When the "user must answer" feature is enabled, then when a user searches the board and shows the results as posts, the hide function will not work, it then shows the unhidden message
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by AllCity »

I know, so conceived ;) .
My mods home page.
User avatar
kiddo
Registered User
Posts: 41
Joined: Tue Jan 15, 2008 2:59 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by kiddo »

thanks for the quick answer, but what do you mean?
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by AllCity »

If you use search the text is visible (search.php).
May add a setting to hide in the search but a little later.

Very busy sorry.
My mods home page.
User avatar
kiddo
Registered User
Posts: 41
Joined: Tue Jan 15, 2008 2:59 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by kiddo »

no worries, would be happy to see it in the next version :)

untill then, if others run into this you can disable the show results as posts in de search feature itself, that way they can not abuse this leak
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by jmjm003 »

stokerpiller wrote:
jmjm003 wrote:It's there.
language/en/mods/guest_hide_bbcode_mod.php

Got this while testing with guest posting allowed. I did a post as a guest.
Are you using version 1.2.0?
I am and I have just testet guest posting, there was no errors.
Yes, it might be a conflict with another mod.
User avatar
UseLess
Registered User
Posts: 521
Joined: Mon Jul 22, 2002 7:26 pm
Location: North East UK

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by UseLess »

Greetings,

If anyone is interested the solution to stop the post/message being displayed in the search results is to;

Code: Select all

# 
#-----[ OPEN ]-------------------------------------------------------
#

includes/hooks/hook_guest_hide_bbcode_mod.php

# 
#-----[ FIND ]-------------------------------------------------------
#

/* === DO NOT CHANGE === */
function guest_hide_bbcode_mod()
{
	global $template;
  	if( isset($template->_tpldata['postrow']) )
  	{
		array_walk($template->_tpldata['postrow'],'guest_hide_bbcode_mod_replace');
  	}

# 
#-----[ AFTER, ADD ]-------------------------------------------------
# 

  	elseif( isset($template->_tpldata['searchresults']) )
  	{
  		array_walk($template->_tpldata['searchresults'],'guest_hide_bbcode_mod_replace');
  	}  	

# 
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------- 
# 
# EoM
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by AllCity »

UseLess, then will be a bug with INPOST on.
If you're looking for is to write all the time that must be answered.
My mods home page.
User avatar
UseLess
Registered User
Posts: 521
Joined: Mon Jul 22, 2002 7:26 pm
Location: North East UK

Re: [RC1] Guest Hide BBCode MOD 1.2.0

Post by UseLess »

Greetings,

When I tested it there was only a short message and 'inpost' was set to true. So it worked.

But your right, if 'inpost' is false then it does not work. Then there's the problem if the message length is longer than the return character limit then part of the message is shown as bbcode tags are stripped.

But easy enough to fix.
Movie Quote:
It's not the years honey, it's the mileage...
phpBB 3 Mods @ phpBBStyles
User avatar
AllCity
Registered User
Posts: 230
Joined: Sun Jun 22, 2008 6:33 pm
Name: Andrey Shapoval
Contact:

Re: [RC1] Guest Hide BBCode MOD 1.2.1

Post by AllCity »

Updated mod to 1.2.1 version
My mods home page.
Locked

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