[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

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

Postby Mickroz » 04 Apr 2007, 21:23

MOD Name: me and you and we and us Filter
MOD Version: 1.0.2
Author: Mickroz
MOD Description: Replaces [me] with poster, [you] with reader, [we] with both, and [us] with forum name.

Features: Names will only show after posting, in the viewtopic screen, not in preview. Edit colors to suit your board.

Language: N/A

Licence: GNU General Public License v2

Demo: http://www.mickroz.nl/viewtopic.php?f=2&t=4

Installation Level: Easy
Installation Time: 4 Minutes
Format: Addon
Thanks to: Handyman and Highway of Life on howto using the user_color
[b]Download: http://www.mickroz.nl/download/file.php?id=2
Last edited by Mickroz on 10 Jan 2008, 03:39, edited 4 times in total.
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




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-On] me and you and we and us Filter

Postby Handyman » 04 Apr 2007, 21:48

Looks cool? kinda like bbcodes.
I have one question though? why didn't you use the users own colors?
You can use the username full function like this
Code: Select all
get_username_string('full'$user->data['user_id'], $user->data['username'], $user->data['user_colour']);

and you would do the same with each instance and you will have the users color.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-On] me and you and we and us Filter

Postby Mickroz » 05 Apr 2007, 05:00

well that is actually a good idea,i didn't think of that,and second i don't know how to do that Tongue
im just a noob with some little php(bb) knowledge...
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: [Add-On] me and you and we and us Filter

Postby Handyman » 05 Apr 2007, 08:12

Code: Select all
$your_userame get_username_string('full'$user->data['user_id'], $user->data['username'], $user->data['user_colour']);
$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);


There? try that Smile
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-On] me and you and we and us Filter

Postby Highway of Life » 05 Apr 2007, 10:17

*cough*
Code: Select all
$your_userame 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);
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-On] me and you and we and us Filter

Postby Handyman » 05 Apr 2007, 11:03

ok, so I missed the guest Beee
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-On] me and you and we and us Filter

Postby Mickroz » 05 Apr 2007, 16:06

and you made a typo Wink
but it works like a charm!!
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);
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: [MOD] me and you and we and us Filter 1.0.1

Postby Sultani » 04 Nov 2007, 14:22

Im sorry, but im not quite sure what this mod really do..

This change the words [me] with poster, [you] with reader, [we] with both, and [us] with forum name on every posts?

thanks
Sultani    
Crewman
Crewman
 
Posts: 6
Joined: 04 Nov 2007, 13:11
Gender: Male

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

Postby Mickroz » 04 Nov 2007, 14:32

if you type hello [you] in your post and submit it, the one who reads your post will see his own name instead of [you].
for example if you type this:

Code: Select all
hello [you]
[me] likes that you are reading this topic.
[we] like this topic and so does the rest of [us]


so if im reading your topic i will see:

Hello Mickroz
Sultani likes that you are reading this topic.
Mickroz and Sultani like this topic and so does the rest of phpBB Academy

hopes this clarify's this.
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: [MOD] me and you and we and us Filter 1.0.1

Postby Sniper_E » 04 Nov 2007, 15:29

Awesome! :good:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6984
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Next

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: No registered users and 2 guests

cron