Page 4 of 4

Re: [RC1] me and you and we and us Filter 1.0.3

Posted: Wed Aug 31, 2011 10:26 am
by Mickroz
this mod is only for messages and pm messages.
if you want it to show in other mods you have to adjust the code to work with your mod.
i have this running in mchat and signatures without any problems.

Re: [RC1] me and you and we and us Filter 1.0.3

Posted: Wed Aug 31, 2011 12:10 pm
by saharanss
Thank for repply. I lost a very hard work to edit this mod. I think it should affect the database rather than direct impacts to the Code as your mod. I think rather that direction because it affects the whole system.

Re: [RC1] me and you and we and us Filter 1.0.3

Posted: Wed Aug 31, 2011 1:15 pm
by Mickroz
You can't achieve this in the database, maybe be through hooks, but im not sure, or by function, i will look into this but don't expect this to be done in a short time.

Re: [RC1] me and you and we and us Filter 1.0.4

Posted: Tue Sep 13, 2011 1:10 pm
by Mickroz
MOD Updated to version 1.0.4
See first post for Download Link


*edit if you downloaded this before this edit, please re-download and overwrite when uploading.
or open includes/functions_filter.php
find:

Code: Select all

function filter_username($my_name, $your_name, $filtered_message)
replace with

Code: Select all

function filter_username($your_name, $my_name, $filtered_message)

Re: [RC1] me and you and we and us Filter 1.0.4

Posted: Wed Sep 14, 2011 9:37 pm
by _Al
Hi Mickroz thanks for the mod. :)

How do we get this working on Mchat mod?

Re: [RC1] me and you and we and us Filter 1.0.4

Posted: Wed Sep 14, 2011 10:03 pm
by Mickroz
Ill post the code tommorow for mchat.

Re: [RC1] me and you and we and us Filter 1.0.4

Posted: Thu Sep 15, 2011 6:56 am
by Mickroz
i have updated the zip file with the edits for mchat, there in the contrib folder, if you downloaded this earlier follow this:

open includes/hooks/hook_filter.php

Find

Code: Select all

		case 'viewforum':
		case 'index':
Add after

Code: Select all

			if (!empty($template->_tpldata['mchatrow']))
			{
				foreach ($template->_tpldata['mchatrow'] as $row => $data)
				{
					$your_username = get_username_string('username', $user->data['user_id'], $user->data['username'], $user->data['user_colour'], $user->lang['GUEST']);
					$my_username = $data['MCHAT_USERNAME_FULL'];

					$data['MCHAT_MESSAGE'] = filter_username($your_username, $my_username, $data['MCHAT_MESSAGE']);
			
					// Alter the array
					$template->alter_block_array('mchatrow', array(
						'MCHAT_MESSAGE' 	=> $data['MCHAT_MESSAGE'],
					), $row, 'change');
				}
			}
Remember to purge the cache.

*edit my host is moving my sites to a new server, so until it is migrated you cannot download any of my mods, sorry for the inconvenience.

Re: [RC1] me and you and we and us Filter 1.0.4a

Posted: Thu Oct 20, 2011 10:27 am
by Mickroz
MOD Updated to version 1.0.4a
See first post for Download Link


Added language file for mod validation.

Re: [RC1] me and you and we and us Filter 1.0.4a

Posted: Sat Oct 22, 2011 2:26 pm
by Stoker 4.0
Getting this debug error when reading a private message:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL
[phpBB Debug] PHP Notice: in file /includes/hooks/hook_filter.php on line 205: Undefined index: POST_AUTHOR_FULL

Re: [RC1] me and you and we and us Filter 1.0.4a

Posted: Mon Oct 24, 2011 2:15 pm
by Mickroz
ahh crap, thanks, will fix it.
updated the zip file, just download and overwrite.

Re: [RC1] me and you and we and us Filter 1.0.4b

Posted: Mon Oct 24, 2011 2:41 pm
by Stoker 4.0
Thanks ;)

Re: [RC1] me and you and we and us Filter 1.0.4b

Posted: Wed Nov 30, 2011 1:03 pm
by Mickroz