[RC1] me and you and we and us Filter 1.0.2

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

How would you rate this mod?

Excellent!
4
57%
Very Good
3
43%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes : 7

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

Postby Mickroz » 01 Apr 2008, 05:53

you should also change in includes/ucp/ucp_pm_viewmessage.php

replace:
Code: Select all
$my_username = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

with:
Code: Select all
$my_username = get_username_string('full', $message_row['user_id'], $message_row['username'], $message_row['user_colour']);


havent updated the download yet,and thanks for reporting.

as for the name,i think it should be:
Code: Select all
$your_username = get_username_string('username', $user->data['user_id'], $user->data['username'], $user->data['user_colour']);
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.
Mickroz    
Supporter
Supporter
 
Posts: 263
Joined: 02 Feb 2007, 20:19
Location: The Netherlands
Favorite Team: Feyenoord
Gender: Male
phpBB Knowledge: 7


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

Postby arch stanton » 22 Mar 2009, 11:34

I'd like to re-install this MOD but I seem to have deleted my original copy and mickroz's board is unavailable. Could anyone possibly pm it to me?

Thanks. :)
arch stanton
Supporter
Supporter
 
Posts: 37
Joined: 26 Jun 2006, 04:17
Gender: Male
phpBB Knowledge: 7

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

Postby Stoker » 22 Mar 2009, 12:10

I have the instrucrions here:

Open: includes/ucp/ucp_pm_viewmessage.php
Find
Code: Select all
$message = bbcode_nl2br($message);

add after
Code: Select all
$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);


Open: includes/viewtopic.php
Find
Code: Select all
$message = bbcode_nl2br($message);

add after
Code: Select all
$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);
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

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

Postby Generator » 21 Oct 2009, 08:21

Does anyone know a way of making this work with the Ajax Chat Mod? I think it could be a fun feature to have in the chat if it's at all possible! :D

Thanks in advance.
Generator    
Crewman
Crewman
 
Posts: 1
Joined: 04 Sep 2009, 21:58
Gender: Male
phpBB Knowledge: 5

Previous

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: Googlebot and 3 guests