[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.
Locked
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 »

I checked the viewtopic.php and even replace with new one from phpBB3 RC3 and change according to installation. The problem error still appears. I tried this another way which is not adding the
'MESSAGE_UNHIDE' => 'HIDE: OFF',
'MESSAGE_HIDDEN' => 'HIDE: ON',
'MESSAGE_HIDDEN_DESCRIPTION' => 'You need to reply to this topic before you can view the hidden message',
given in the installation guide and it works fine. So is there a way to solve the error?
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

The MOD action is BEFORE, ADD, therefore your file should look like this:

Code: Select all

	'WROTE'					=> 'wrote',
	'MESSAGE_UNHIDE'		=> 'HIDE: OFF',
	'MESSAGE_HIDDEN'		=> 'HIDE: ON',
	'MESSAGE_HIDDEN_DESCRIPTION'	=> 'You need to reply to this topic before you can view the hidden message',
));

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

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

Post by ycl6 »

## 2007-07-18 - Version 0.2.3
## - Fix a bug that cause hidden content to display during PM (davejo90)
## - Added MOD changes for efusion template
~Mac
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

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

Post by rohithathie »

how can i change the text Message Hidden Protection?

and after someone reply they see only the text between the hide, can i add a text before like Hidden Message: ........
User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

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

Post by mitthoo »

i think its in the php file. m not sure. i have seen it somewhere. check the install.xml file and search for that phraze and change it where u actually modified the file.
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

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

Post by rohithathie »

ok for that i am going to search,
one more question: how can i change the fact that moderator and administrators etc can see the hidden text.

i dont want that we can see everything it have to be hidden for us to ;)
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

rohithathie, don't forgot to apply changes for your template files. Also Admins and Moderators can see hidden messages be default.

~Mac
igorj
Registered User
Posts: 1
Joined: Wed Jul 11, 2007 10:54 am

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

Post by igorj »

I get this error on post reply page:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

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

Post by rohithathie »

ycl6 wrote:rohithathie, don't forgot to apply changes for your template files. Also Admins and Moderators can see hidden messages be default.

~Mac
but I don't want that.

Admins and Moderators should not see the hidden content before replying.

and how can i add a text before the hidden text after the reply.
example :

HIDE: ON
You need to reply to this topic before you can view the hidden message. <<< Before the Reply

After the reply i only see the hidden text.

i want it this way >> Hidden Text : ...........

can you understand it?
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

rohithathie,

Sorry I mis-understood your question about admin/mod permission.

Yes, you can do that if you want

In the installation file, look for something like this

Code: Select all

	// If moderator or admin, skip reply check, auto unhide
	if ($auth->acl_get('m_', $forum_id))
	{
		$unhide = true;
	}
	else
	{
		... some sql commands ...
	}
Change it to

Code: Select all

	... some sql commands ...
I.e. You only leave with the code that is in the else loop. You should found 3 sections of such code.

For the display you want, edit the template changes!

Code: Select all

##############################################################
## Author Notes:
## 	Tested on phpBB 3.0.0 RC3.
##	Template changes can be found in the "templates" folder, supported templates includes:
~Mac
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

igorj wrote:I get this error on post reply page:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
I think you didn't edit one or some of the files required. Please double check it.

Code: Select all

## Files To Edit: 9
##	posting.php
##	viewtopic.php
##	includes/bbcode.php
##	includes/constants.php
##	includes/functions_posting.php
##	includes/message_parser.php
##	includes/ucp/ucp_pm_compose.php
##	language/en/posting.php
##	language/en/viewtopic.php
~Mac
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

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

Post by rohithathie »

ycl6 wrote:rohithathie,

Code: Select all

	// If moderator or admin, skip reply check, auto unhide
	if ($auth->acl_get('m_', $forum_id))
	{
		$unhide = true;
	}
	else
	{
		... some sql commands ...
	}
Change it to

Code: Select all

	... some sql commands ...
THAT WORKED THANXX :D

For the display you want, edit the template changes!

Code: Select all

##############################################################
## Author Notes:
## 	Tested on phpBB 3.0.0 RC3.
##	Template changes can be found in the "templates" folder, supported templates includes:
~Mac
This is still don't working :S
i put my text in the bbcode file but it shows after the hidden text :S I want it Before the hidden text

Code: Select all

<!-- BEGIN unhide_open --><dl class="hidebox"><dt class="unhide">{L_MESSAGE_UNHIDE}</dt><dd><!-- END unhide_open -->

<!-- BEGIN unhide_close --></dd></dl><!-- END unhide_close -->

<!-- BEGIN hide --><dl class="hidebox">Verborgen Bericht:<dt class="hide">{L_MESSAGE_HIDDEN}</dt>
<dd>{L_MESSAGE_HIDDEN_DESCRIPTION}</dd></dl><!-- END hide -->
HIDE: ON
You need to reply to this topic before you can view the hidden message. <<< Before the Reply

After the reply i see the hidden text before the text i added between <!-- BEGIN unhide_close -->TEXT:</dd>

This is the way you get then >> hiddentextTEXT:
it has to be TEXT:hiddentext
niks999
Registered User
Posts: 29
Joined: Wed Apr 11, 2007 8:31 am

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

Post by niks999 »

will this work for phpBB3 RC1 ???? :? :? :?
User avatar
mitthoo
Registered User
Posts: 253
Joined: Tue Oct 03, 2006 12:34 pm

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

Post by mitthoo »

anyone able to add feel good factor to this mod. i mean look wise has there been any changes done by anyone.
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 »

OK it's sort of working. I can create new topics and use hide no problem. However I am not having these issues

And I did double check that I edited all of those files from the instructions.

I am getting this error when replying to an existing topic with no Hide used

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
When replying to thread with the hide being used in the first post I get this error

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1012: Undefined variable: unhide
this is the functions_posting.php from around that area

Code: Select all

		if ($show_quote_button && $auth->acl_get('f_reply', $forum_id))
		{
			$decoded_message = $message;
			$uid = $row['bbcode_uid'];

			if ($unhide == true)
			{
				$decoded_message = preg_replace("#\[hide:$uid\](.*?)\[/hide:$uid\]#ise", "'\\1'", $decoded_message);
			}
			else
			{
the line 1012 is "if ($unhide == true)"

Thanks
Locked

Return to “[3.0.x] Abandoned MODs”