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

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

Post by Mickroz »

Modification Name: me and you and we and us Filter
Author: Mickroz

Modification Description: Replaces [me] with poster, [you] with reader, [we] with both, and [us] with forum name.
Modification Version: 1.0.4b

Demo URL: http://www.mickroz.nl

Modification Download: http://www.phpbb.com/customise/db/mod/m ... us_filter/
Thanks to: Handyman and Highway of Life on howto using the user_color.
Thanks to DavidIQ for letting me borrow his code from the reimg hook.
Last edited by Mickroz on Wed Nov 30, 2011 1:03 pm, edited 13 times in total.
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
chocopi
Registered User
Posts: 18
Joined: Mon Sep 04, 2006 1:06 pm

Re: [BETA] me and you and we and us Filter 1.0.1

Post by chocopi »

This sounds pretty grovy, but does anyone have a demo :?:

As that would be awesome :D
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Mickroz »

updated first post
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
chocopi
Registered User
Posts: 18
Joined: Mon Sep 04, 2006 1:06 pm

Re: [BETA] me and you and we and us Filter 1.0.1

Post by chocopi »

Awesome,

Would it be possible for you to make this a per forum basis by a linky in acp etc.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Mickroz »

what do you mean with that? that you van use it in some forums,and some forums not?
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
chocopi
Registered User
Posts: 18
Joined: Mon Sep 04, 2006 1:06 pm

Re: [BETA] me and you and we and us Filter 1.0.1

Post by chocopi »

Yea, so you can pick and choose which forum it would work in, but i guess that will turn a very simple installation into a slightly harder one

~ Chocopi :mrgreen:
Omarvelous
Registered User
Posts: 232
Joined: Mon Jun 25, 2007 2:24 am

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Omarvelous »

Hmmm not quite understanding exactly where these words are replaced.....

Can you point em out?

are the [me] [you] bbcodes that populate when ppl are viewing or something?
padalton
Registered User
Posts: 11
Joined: Mon Jun 25, 2007 12:27 pm
Location: Mödling (AUSTRIA)
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by padalton »

Can i easily do it into a if(),
that this code only be run in one topic ???
like this:

Code: Select all

if($f=="2" && $t=="54"){
   $your_username = get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour'], $user->lang['GUEST']);
   $my_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

   $find = array('[we]', '[me]', '[you]', '[us]');
   $replace = array(
       "$your_username and $my_username",
    $my_username,
    $your_username,
       '<span style="color: red;">' . $config['sitename'] . '</span>',
   );

   $message = str_replace($find, $replace, $message);    
};
in the files of phpbb i only see something like this:

Code: Select all

<!-- IF BLABLA -->
code code code
<!-- ENDIF -->
Edit:
I have now testet ma modification of the mod and it doesn't works !
Are the variables f and t false? these are standing in the link of the topic ?!
Greetz
PaDalton

Sorry for my bad english !
"Information Wants to be Free", by Roger Clarke
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Mickroz »

chocopi wrote:Yea, so you can pick and choose which forum it would work in, but i guess that will turn a very simple installation into a slightly harder one

~ Chocopi :mrgreen:
yeah probably,will give it a test when i got the time.
Omarvelous wrote:Hmmm not quite understanding exactly where these words are replaced.....

Can you point em out?

are the [me] [you] bbcodes that populate when ppl are viewing or something?
Replaces [me] with postername, [you] with readername, [we] with both names, and [us] with forum name.
this will only been seen after posting,and yes,this will be seen when viewing a topic.
padalton wrote:Can i easily do it into a if(),
that this code only be run in one topic ???
like this:

Code: Select all

if($f=="2" && $t=="54"){
$your_username = get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour'], $user->lang['GUEST']);
$my_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

$find = array('[we]', '[me]', '[you]', '[us]');
$replace = array(
"$your_username and $my_username",
$my_username,
$your_username,
'<span style="color: red;">' . $config['sitename'] . '</span>',
);

$message = str_replace($find, $replace, $message); 
};
in the files of phpbb i only see something like this:

Code: Select all

<!-- IF BLABLA -->
code code code
<!-- ENDIF -->
Edit:
I have now testet ma modification of the mod and it doesn't works !
Are the variables f and t false? these are standing in the link of the topic ?!
try

Code: Select all

if ($forum_id == 2  && $topic_id == 54)
{
   $your_username = get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour'], $user->lang['GUEST']);
   $my_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

   $find = array('[we]', '[me]', '[you]', '[us]');
   $replace = array(
       "$your_username and $my_username",
    $my_username,
    $your_username,
       '<span style="color: red;">' . $config['sitename'] . '</span>',
   );

   $message = str_replace($find, $replace, $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.
padalton
Registered User
Posts: 11
Joined: Mon Jun 25, 2007 12:27 pm
Location: Mödling (AUSTRIA)
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by padalton »

THX!
I like this mod!
Simple, but how can i make it that this is
working on preview too ?
Greetz
PaDalton

Sorry for my bad english !
"Information Wants to be Free", by Roger Clarke
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Mickroz »

thanks,why do you want to view this in preview?
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.
padalton
Registered User
Posts: 11
Joined: Mon Jun 25, 2007 12:27 pm
Location: Mödling (AUSTRIA)
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by padalton »

Some of my Forum-members are a bit stupid,
they dont understand that this is not a bbcode!

But i can also write a Tut or something like this!

THX for this mod!
Greetz
PaDalton

Sorry for my bad english !
"Information Wants to be Free", by Roger Clarke
notsa
Registered User
Posts: 253
Joined: Sat Jul 28, 2007 7:37 pm

Re: [BETA] me and you and we and us Filter 1.0.1

Post by notsa »

could u please make it for viewforum too.
User avatar
Mickroz
Registered User
Posts: 661
Joined: Thu Mar 06, 2003 11:20 pm
Location: Netherlands
Contact:

Re: [BETA] me and you and we and us Filter 1.0.1

Post by Mickroz »

as soon as i got my pc back up and running im going to update all my mods.ill see if i can get it to show in preview and in viewforum.
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.2

Post by Mickroz »

2008-01-10- Version 1.0.2
  • 3.0.0 Compatible
  • Added for PM
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”