[ABD] Simple Hide BBcode MOD 0.3.0 (phpBB3 RC8)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by ycl6 » Wed Jul 04, 2007 2:25 pm

Baltimorea wrote:I found a bug. When you make a hide message, then if you edit the post, the hide tags will dissapear...

And also another thing, if I edit my old post that have hide tags (from the old mod), then if I edit the post, the hide tags are working fine, but then (as I mention) if you edit it again, the hide tags will dissappear.
Thanks, Baltimorea

I'll try to fix this bug first before moving on to make this compatible with older version

~Mac

dharmil
Registered User
Posts: 47
Joined: Sun Apr 10, 2005 6:06 am
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by dharmil » Wed Jul 04, 2007 3:35 pm

great mod ;)

carmelomvp
Registered User
Posts: 85
Joined: Sun Sep 10, 2006 1:37 pm

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by carmelomvp » Wed Jul 04, 2007 9:11 pm

the link of the serenity skins is it: http://www.phpbb.com/community/viewtopi ... 345&hilit=

I wait to the skin mod but you can tell me how install the mod with this template now?Thanks

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by mitthoo » Wed Jul 04, 2007 9:58 pm

what about already posted topics. I tried it and worked fine on local install. so i was thinking of using it.


I read through the topic and found out that its been already discussed. but no outcome. so anyone have any solution for it.

How to apply this Mod for already posted topics.

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by ycl6 » Thu Jul 05, 2007 2:22 am

Fix EDIT bug

OPEN posting.php

FIND

Code: Select all

	if ($unhide == true)
	{
		$message_parser->message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $message_parser->message);
	}
	else
	{
		$message_parser->message = preg_replace("#\[hide:$uid\].*?\[/hide:$uid\]#ise", "\$user->lang['HIDDEN_MESSAGE']", $message_parser->message);
	}
REPLACE WITH

Code: Select all

	if ($mode == 'edit')
	{
		$message_parser->message = $message_parser->message;
	}
	else if ($unhide == true)
	{
		$message_parser->message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $message_parser->message);
	}
	else
	{
		$message_parser->message = preg_replace("#\[hide:$uid\].*?\[/hide:$uid\]#ise", "\$user->lang['HIDDEN_MESSAGE']", $message_parser->message);
	}
~Mac

indepndent
Registered User
Posts: 129
Joined: Mon Feb 13, 2006 4:47 am

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by indepndent » Thu Jul 05, 2007 2:27 am

ycl6 wrote:Fix EDIT bug

OPEN posting.php

FIND

Code: Select all

	if ($unhide == true)
	{
		$message_parser->message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $message_parser->message);
	}
	else
	{
		$message_parser->message = preg_replace("#\[hide:$uid\].*?\[/hide:$uid\]#ise", "\$user->lang['HIDDEN_MESSAGE']", $message_parser->message);
	}
REPLACE WITH

Code: Select all

	if ($mode == 'edit')
	{
		$message_parser->message = $message_parser->message;
	}
	else if ($unhide == true)
	{
		$message_parser->message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $message_parser->message);
	}
	else
	{
		$message_parser->message = preg_replace("#\[hide:$uid\].*?\[/hide:$uid\]#ise", "\$user->lang['HIDDEN_MESSAGE']", $message_parser->message);
	}
~Mac

So are these instructions to be done after the instructions in the mod are done or instead of the instructions of the mod in the first post?

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by ycl6 » Thu Jul 05, 2007 2:39 am

indepndent wrote:So are these instructions to be done after the instructions in the mod are done or instead of the instructions of the mod in the first post?
This is for those that have already used this MOD

So if you haven't install this, wait for version 0.1.1 (should be up in a couple of minutes)

~Mac

indepndent
Registered User
Posts: 129
Joined: Mon Feb 13, 2006 4:47 am

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by indepndent » Thu Jul 05, 2007 2:49 am

ycl6 wrote:
indepndent wrote:So are these instructions to be done after the instructions in the mod are done or instead of the instructions of the mod in the first post?
This is for those that have already used this MOD

So if you haven't install this, wait for version 0.1.1 (should be up in a couple of minutes)

~Mac

thank you

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [BETA] Simple Hide BBcode MOD 0.0.1

Post by ycl6 » Thu Jul 05, 2007 2:50 am

carmelomvp wrote:the link of the serenity skins is it: http://www.phpbb.com/community/viewtopi ... 345&hilit=

I wait to the skin mod but you can tell me how install the mod with this template now?Thanks
MOD tutorial added for Serenity (default)

~Mac

Baltimorea
Registered User
Posts: 44
Joined: Sun Jun 18, 2006 5:06 pm

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by Baltimorea » Thu Jul 05, 2007 1:04 pm

Thanks for the fix man, it's working!

User avatar
RATT
Registered User
Posts: 734
Joined: Fri Aug 19, 2005 6:27 am

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by RATT » Thu Jul 05, 2007 4:24 pm

Great Mod, but the edit is off for constants.php

Code: Select all

TWO: Edit includes/constants.php
(1) Find {CHANGE_THIS_NUMBER}
(2) Change {CHANGE_THIS_NUMBER} to the bbcode ID XX from (8), e.g. define('HIDE_BBCODE_ID', 14);
(3) Save the file and upload to your webserver
Should be

Code: Select all

TWO: Edit includes/constants.php
(1) Find // Number of core BBCodes
define('NUM_CORE_BBCODES', 12);
(2) Change ('NUM_CORE_BBCODES', 12); to the bbcode ID XX from (8), e.g. define('NUM_CORE_BBCODES', 14);
(3) Save the file and upload to your webserver

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by mitthoo » Thu Jul 05, 2007 6:59 pm

what about applying this mod to already posted topics. :roll: :cry:

2LaZi2ThInK
Registered User
Posts: 13
Joined: Thu May 31, 2007 8:44 am

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by 2LaZi2ThInK » Thu Jul 05, 2007 9:03 pm

Hello, can you please make one that works for efusion style too? pretty please =]
Here is the link for efusion http://www.black-fusion.com/download.php?style=8&id=72

carmelomvp
Registered User
Posts: 85
Joined: Sun Sep 10, 2006 1:37 pm

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by carmelomvp » Thu Jul 05, 2007 9:44 pm

i can use an image instead of the text to show the users that they write a post to view the text?

User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

Re: [BETA] Simple Hide BBcode MOD 0.1.1

Post by mitthoo » Fri Jul 06, 2007 4:48 am

mitthoo wrote:what about applying this mod to already posted topics. :roll: :cry:


Hey Hello..... Mod :) ... are you listening.. :) . anyone... listening.... :evil:

Locked

Return to “[3.0.x] Abandoned MODs”