[MODDB] me and you and we and us Filter 1.0.4b

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post 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.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
saharanss
Registered User
Posts: 16
Joined: Wed Aug 31, 2011 9:55 am

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

Post 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.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post 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.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post 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)
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
_Al
Registered User
Posts: 203
Joined: Mon Oct 20, 2008 9:24 pm
Location: Sweetas - All your friends online
Contact:

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

Post by _Al »

Hi Mickroz thanks for the mod. :)

How do we get this working on Mchat mod?
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post by Mickroz »

Ill post the code tommorow for mchat.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post 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.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post by Mickroz »

MOD Updated to version 1.0.4a
See first post for Download Link


Added language file for mod validation.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Stoker 4.0
Registered User
Posts: 1487
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

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

Post 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
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post by Mickroz »

ahh crap, thanks, will fix it.
updated the zip file, just download and overwrite.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
User avatar
Stoker 4.0
Registered User
Posts: 1487
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

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

Post by Stoker 4.0 »

Thanks ;)
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

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

Post by Mickroz »

I don't need to "get a life." I'm a Gamer, I have lots of lives!
Q: Whats a hash and a root password?
A: hash gets you high, root password gives you god powers, combine the 2 and you are invincible.
Locked

Return to “[3.0.x] MODs in Development”