[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
indepndent
Registered User
Posts: 129
Joined: Mon Feb 13, 2006 4:47 am

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

Post by indepndent »

Hi Mac,


Just to confirm the upgrade process. If I have applied the code changes to my already installed mod as you have posted them in the thread. And then you release an update like this 2.5 I can consider my mod already at 2.5 since I have been posting the updates along the way?


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

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

Post by ycl6 »

Actually, all the changes are listed previously :)

You can compare the changes in these files (according to HOD History):
Fix 1: includes/functions_posting.php
Fix 2: viewtopic.php
Fix 3: posting.php, viewtopic.php, includes/ucp/ucp_pm_compose.php

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

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

Post by ycl6 »

indepndent,

Yes, you are correct, up til now, at least.

Because all the updates released had been bug fixes and those are posted here before the release, so if you applied them, you should be fine.

I'll recommend you a useful tool here, WinMerge, this is a free Windows application that you can use to find out differences between two sets of file. As for Linux users, you always have diff to use

When there's a major update which isn't posted here, I'll try to make a update tutorial (no guarantee)

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

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

Post by indepndent »

Thanks Mac, I will be sure to try that tool you recommended.

Excellent job on the MOD by the way and great support as well. I look forward to seeing more of you work.

Thanks again.
TomBullock
Registered User
Posts: 51
Joined: Sun Jul 08, 2007 11:36 am
Location: Burnley
Contact:

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

Post by TomBullock »

I followed the instructions in the download, then i got this message when i clicked post in my forum.

Code: Select all

Parse error: syntax error, unexpected T_VARIABLE in D:\Website\Forums\posting.php on line 1049
I am offering to host your forum for free in return for a .co.uk domain. Any MODS, styles etc installed upon request. PM for more details.
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

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

Post by rohithathie »

Is this mod rc4 ready??
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

TomBullock wrote:I followed the instructions in the download, then i got this message when i clicked post in my forum.

Code: Select all

Parse error: syntax error, unexpected T_VARIABLE in D:\Website\Forums\posting.php on line 1049
Check if your code looks like this (line 1049 is the middle one)

Code: Select all

	$post_data['post_time'] = ($mode == 'edit') ? $post_data['post_time'] : $current_time;

	$preview_message = $message_parser->format_display($post_data['enable_bbcode'], $post_data['enable_urls'], $post_data['enable_smilies'], false, $unhide);

	$preview_signature = ($mode == 'edit') ? $post_data['user_sig'] : $user->data['user_sig'];
~Mac
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

rohithathie wrote:Is this mod rc4 ready??
I doubt the changes from RC3 to RC4 will affect this MOD, however I haven't not test it myself (RC4 was release right after version 0.25 of this MOD)

~Mac
TomBullock
Registered User
Posts: 51
Joined: Sun Jul 08, 2007 11:36 am
Location: Burnley
Contact:

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

Post by TomBullock »

ycl6 wrote:
TomBullock wrote:I followed the instructions in the download, then i got this message when i clicked post in my forum.

Code: Select all

Parse error: syntax error, unexpected T_VARIABLE in D:\Website\Forums\posting.php on line 1049
Check if your code looks like this (line 1049 is the middle one)

Code: Select all

	$post_data['post_time'] = ($mode == 'edit') ? $post_data['post_time'] : $current_time;

	$preview_message = $message_parser->format_display($post_data['enable_bbcode'], $post_data['enable_urls'], $post_data['enable_smilies'], false, $unhide);

	$preview_signature = ($mode == 'edit') ? $post_data['user_sig'] : $user->data['user_sig'];
~Mac

I changed it to that, still no luck :cry:
I am offering to host your forum for free in return for a .co.uk domain. Any MODS, styles etc installed upon request. PM for more details.
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

What's the error? Still line 1049 on posting.php?

Please upload your file somewhere that I can look at.

~Mac
TomBullock
Registered User
Posts: 51
Joined: Sun Jul 08, 2007 11:36 am
Location: Burnley
Contact:

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

Post by TomBullock »

Yes, still line 1049 on posting.php

Here is the file: http://spinthatvinyl.co.nr/temp/posting.zip
I am offering to host your forum for free in return for a .co.uk domain. Any MODS, styles etc installed upon request. PM for more details.
chyngy
Registered User
Posts: 2
Joined: Tue Jul 31, 2007 10:41 am

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

Post by chyngy »

Hello, i have a problem :

Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/www/chyngy/includes/bbcode.php on line 578

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

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

Post by ycl6 »

Tom, I'm having problem downloading your file
Spin That Vinyl - Temporary Domain - Site maybe offline, please check back later.
~Mac
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

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

Post by ycl6 »

chyngy,

Your code should look like this:

Code: Select all

		return $code;
	}

	/**
	* Second parse hide tag
	*/
	function bbcode_second_pass_hide($message, $unhide = true)
	{
		// when using the /e modifier, preg_replace slashes double-quotes but does not
		// seem to slash anything else
		$message = str_replace('\"', '"', $message);

		// remove newline at the beginning
		if ($message == "\n")
		{
			$message = '';
		}

		if ($unhide == true)
		{
			$message = $this->bbcode_tpl('unhide_open') . $message . $this->bbcode_tpl('unhide_close');
		}
		else
		{
			$message = $this->bbcode_tpl('hide');
		}

		return $message;
	}
}

?>
chyngy
Registered User
Posts: 2
Joined: Tue Jul 31, 2007 10:41 am

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

Post by chyngy »

Thanks, but anonymous users see links :cry: Sory, but i am lammer :mrgreen:
Locked

Return to “[3.0.x] Abandoned MODs”