[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
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

dharmil wrote:thanks for the bug fixes and can we add other group like something else who can view posts without replying :D
As the title says, this MOD is written to have the simplest hide feature for phpBB3, hence things like group restriction, post count restriction, user restriction, etc is not going to be made as the main feature of this MOD.

Those features might happen as a form of add-ons, but I can't promise you anything now.

~Mac
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

mitthoo wrote:But Yc16 i would request you to update me when i can use this mod with already posted topics as well. coz i am not using it at this moment.
mitthoo,

For already posted topics/posts, install this MOD and edit your topic/post to include [hide] bbcode, it will work ;)

For example if your old message look like this:

Code: Select all

[url]http://www.phpbb.com/[/url]
Change it to

Code: Select all

[hide][url]http://www.phpbb.com/[/url][/hide]
Then the message will be hidden to people that have not replied.

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

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by indepndent »

ycl6 wrote:OK, a new version has just been released.

This is the changelog
## 2007-07-12 - Version 0.2.1
## - Fix a bug that cause [hide] bbcode to disappear when quoting a post
## - Fix a misformated AFTER, ADD MOD action
## - Change the default HIDE_BBCODE_ID value to 1000
## - Make some changes to the DIY instruction
## - Tested on phpBB3 RC3
The MOD itself work with phpBB3 RC3 without problem, hence I'm not sure why Kleopatras_Sister is having problem using it. Maybe you can try 0.2.1 version again on a clean installation.

An add-on called Use Warning Image requested by carmelomvp

Tutorials for three new themes has been added in this release.

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

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by mitthoo »

ycl6 wrote:
mitthoo wrote:But Yc16 i would request you to update me when i can use this mod with already posted topics as well. coz i am not using it at this moment.
mitthoo,

For already posted topics/posts, install this MOD and edit your topic/post to include [hide] bbcode, it will work ;)

For example if your old message look like this:

Code: Select all

[url]http://www.phpbb.com/[/url]
Change it to

Code: Select all

[hide][url]http://www.phpbb.com/[/url][/hide]
Then the message will be hidden to people that have not replied.

~Mac

Thankyou so much for this but the problem is that i have alot of topics. so its kinda impossible for me to do that.


is there any way that i can do it in the database itself.
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

I sorry mitthoo, although I think it is possible, but I don't have a algorithm to do that.

If those posts are not hidden previously why do you want to hide it now?

Anyway, I understand what you wanted, but I am unable to help you with that.

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

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by 2LaZi2ThInK »

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

I asked for this right after the serenity style and u said wait for next update. What i have seem now is other styles but not efusion. Can you please make one that works for efusion? TY
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

Sorry 2LaZi2ThInK, I must have forgotten it. I'll write one and post it here.

~Mac
lakshyak
Registered User
Posts: 6
Joined: Tue Jul 10, 2007 10:23 am

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by lakshyak »

Hey have one problem with this one. I get this error:
Parse error: syntax error, unexpected T_CASE in /home/sites/--.com/public_html/phpBB3/includes/bbcode.php on line 320
Line 320 is:
if (isset($rowset[$bbcode_id]))
case HIDE_BBCODE_ID:
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[hide:$uid\](.*?)\[/hide:$uid\]#ise' => "\$this->bbcode_second_pass_hide('\$1', '$unhide')",
)
);
break;
Do I have to paste my code in case "HIDE_BBCODE_ID:" too?? I tried this too but same error. My ID is 43 and have pasted it in the constant file. I guess rest everything is fine :|
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

lakshyak

The action is BEFORE, ADD, therefore

Code: Select all

				case HIDE_BBCODE_ID:
					$this->bbcode_cache[$bbcode_id] = array(
						'preg' => array(
							'#\[hide:$uid\](.*?)\[/hide:$uid\]#ise'	=> "\$this->bbcode_second_pass_hide('\$1', '$unhide')",
						)
					);
				break;

				default:
					if (isset($rowset[$bbcode_id]))
~Mac
warezdirectory
Registered User
Posts: 31
Joined: Mon Jun 04, 2007 10:22 pm

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by warezdirectory »

thanks.. gona try it now.. :D
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

For efusion

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/efusion/template/bbcode.html
#
#-----[ FIND ]------------------------------------------ 
#
<!-- END flash -->
#
#-----[ AFTER, ADD ]------------------------------------------ 
#
<!-- BEGIN unhide_open -->
<div class="unhidetitle"><b>{L_MESSAGE_UNHIDE}:</b></div><div class="hidecontent">
<!-- END unhide_open -->
<!-- BEGIN unhide_close -->
</div>
<!-- END unhide_close -->

<!-- BEGIN hide -->
<div class="hidetitle"><b>{L_MESSAGE_HIDDEN}:</b></div><div class="hidecontent">{L_MESSAGE_HIDDEN_DESCRIPTION}</div>
<!-- END hide -->
#
#-----[ OPEN ]------------------------------------------
#
styles/efusion/theme/stylesheet.css
#
#-----[ FIND ]------------------------------------------ 
#
/* BBCode
 ------------ */
#
#-----[ AFTER, ADD ]------------------------------------------ 
#
.unhidetitle, .hidetitle {
	margin: 10px 5px 0 5px;
	padding: 2px 4px;
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: #4BACC3;
	background-color: #4BACC3;
	font-size: 0.85em;
	font-weight: bold;
}

.unhidetitle {
	color: #333333; 
}

.hidetitle {
	color: #990000; 
}

.hidecontent {
	margin: 0 5px 10px 5px;
	padding: 5px;
	border-color: #4BACC3;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	font-size: 1em;
	line-height: 1.4em;
	background-color: #FAFAFA;
	color: #4B5C77;
}
MOD tutorial will be included in the next release.

~Mac
Animusu
Registered User
Posts: 13
Joined: Mon Jun 25, 2007 11:40 am

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by Animusu »

@ycl6, is it possible to make the mod hide a specific message for all but listed users in the tag? i.e. [hide=user1,user2]text[/hide] where only the user1, user2 (and any other listed) moderator and administrator could see that message and disabling the posting criteria? I was looking for that kind of mod for a time now, and yours is the closest one that would fit in that function...

thanks for this great mod and the very best for the future!!!
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

Animusu wrote:@ycl6, is it possible to make the mod hide a specific message for all but listed users in the tag? i.e. [hide=user1,user2]text[/hide] where only the user1, user2 (and any other listed) moderator and administrator could see that message and disabling the posting criteria? I was looking for that kind of mod for a time now, and yours is the closest one that would fit in that function...
Hi Animusu,

My response for this question can be found in one of the older post

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

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by 2LaZi2ThInK »

Hello, umm there are few bugs appeared after i intsall the mod. However, i have change nothing in the function.php according to the mod installation. Please help.

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4246: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4248: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4249: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4250: Cannot modify header information - headers already sent by (output started at /language/en/viewtopic.php:1)

Line 4246- 4250 of function.php are
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');

header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');

return;
}
ycl6
Registered User
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan

Re: [BETA] Simple Hide BBcode MOD 0.2.1 (phpBB3 RC3)

Post by ycl6 »

The problem is with the /language/en/viewtopic.php file, not /includes/functions.php. Can you double check your changes.

~Mac

Return to “[3.0.x] Abandoned MODs”