• Index :: PHPBB3 Modifications :: /me /you /random replacement mod phpBB3
  • Change font size
  • •

It is currently 10:30 am Mon Dec 01 2008

  • Home
  • WinMX
  • BitTorrent
  • Video
  • Computer Problem
  • Ubuntu/Linux
  • PHP scripts & phpBB3 Mods
  • Forums

/me /you /random replacement mod for phpBB3



The following code is simple, It Replaces /me with the poster's username, replaces /you with the current viewers username, and /random is replaced with a random username from the database.

There is no guarantees implied or otherwise, using this mod could cause sterility in mice, turn the pope agnostic, or even get Bill Clinton laid. Well, perhaps he doesn't need help. Even more likely none of those will happen and it will do exactly as implied.

But you cannot say you have not been warned. [Download]/me /you /random replacement mod for phpBB3[Download].

For support, additional questions or Feature request with NO Guarantees, feel free to visit our phpbb3 and PHP Forum

#################################################################
## MOD Title: /me /you /random phpbb3 MOD
## MOD Author: Vladd44 < vladd44@vladd44.com > http://www.vladd44.com
## MOD Description: Replaces /me with the poster name, replaces /you with the
## Viewers name, and /random pulls a name at random for replacement
##
## MOD Version: 1.0.1
## phpBB3 Version: 3.0.2
##
## Installation Level: Easy
## Installation Time: 1 Minute
##
## Files To Edit: viewtopic.php
##
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v3
#################################################################
## History:
##
## 2008-08-15 - version 1.0.1 Thanks to RMcGirr83 for input.
## 2008-08-15 - version 1.0.0
## - Initial Release.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD.
#################################################################

#
#-----[ OPEN ]---------------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]---------------------------------------------------
#

// Replace naughty words such as farty pants

#
#-----[ Before, ADD ]-------------------------------------------
#
//parse me and you and random name
if ( strstr($message, "/random")) {
$sql = "SELECT username FROM " . USERS_TABLE . " ORDER BY rand() LIMIT 1";
$vresult = $db->sql_query($sql);
$vow = $db->sql_fetchrow($vresult);
$db->sql_freeresult($vresult);
$message = preg_replace("/\/random\b/","" .$vow['username']. "",$message);
}
$message = preg_replace("/\/me\b/","" .$row['username']. "",$message);
$message = preg_replace("/\/you\b/","" .$user->data['username']. "",$message);
// end /me /you /random modifcation

#-----[ SAVE/CLOSE ALL FILES ]-----------------------------------
#
# EoM






Common Misspelled words on this page are addtional adn, anbd bakc, bcak bedore, befoer, befor bu cannnot, cant clas coudl, sould doesnt, dosen't fiel fiels fidn follwoing, folowing fomr, frome genera garantees, gaurantees, gaurentees, guarentees, gurantees ahppen, hapen ahev, ahve, haev, hvae, hvea heighth, heigth, hieght, hieght, hieght halp humerous, humurous inital, intial layed liscense, lisence, lisense moreso, mroe, omre anme, naem, nmae ened nto, onot perhasp, perheaps, perhpas, perphas pubic relace relpacement shoudl, shoudln, sould sohw sylte, stlye, sytle wupport hten, tghe, ther, thge, tjhe htis, thsi, tihs ethose, thsoe useing verison vell iwll, wille, wiull
© 2003, 2004, 2005, 2006, 2007 2008 Vladd44.com Privacy Policy.