Disable All CAPS MOD

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Hacktor
Berichten: 43
Lid geworden op: 10 jan 2005, 01:17
Locatie: Rotterdam
Contacteer:

Disable All CAPS MOD

Bericht door Hacktor » 18 jan 2005, 01:12

##############################################################
## MOD Title: Disable All CAPS MOD
## MOD Author: morpheus2matrix < morpheus@2037.biz > (Morpheus) http://morpheus.2037.biz
## MOD Description: This MOD will allow you to disable all the CAPS in a message
## MOD Version: 1.0.0
## Compatibility: 2.0.6
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit: 1
## includes/functions_post.php
##
## Included Files: N/A
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## A good addition should be to check if we are after a dot
## Maybe in a next version ;-)
##
##############################################################
## MOD History:
##
## 2003-11-22 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------------
#
//
// Clean up the message
//
$message = trim($message);

#
#-----[ AFTER, ADD ]------------------------------------------
#

$message = strtolower($message);

$first_space = '';
$first_word = '';
$first_space = strpos($message, ' ');

$first_word = substr($message, 0, $first_space - 1);

$message = str_replace($first_word, ucfirst($first_word), $message);

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM
Zo moet het bericht zijn:
Ik type dit en nog een keer. Maar dit maakt ie ervan? Klopt niets van. Waardoor komt dit? Wie-o-wie?

Maar het resultaat is met deze mod:
Ik type dIt en nog een keer. maar dIt maakt Ie ervan? klopt nIets van. waardoor komt dIt? wIe-o-wIe?

:shock:
Aan alle ellende komt een einde maar komt er ook een einde aan alle ellende?

Gebruikersavatar
Cheeta
Berichten: 1165
Lid geworden op: 11 jan 2004, 11:26
Locatie: Mijdrecht Sites: -- Derbi Club --
Contacteer:

Bericht door Cheeta » 25 jan 2005, 12:09

ik vermoed dat die de eerste letter wel toestaat als hoofdletter post nog eens iets en begin dan is met Ab test afstand bv
Don't mess with BD and save the Cheeta's!

Hacktor
Berichten: 43
Lid geworden op: 10 jan 2005, 01:17
Locatie: Rotterdam
Contacteer:

Bericht door Hacktor » 25 jan 2005, 12:21

Klopt. Van de Eerste letter maakt ie een Hoofdletter en naar repeteert ie diezelfde letter nogmaals in het bericht.

(Gaat om de H) :?

Hij die groot is en Hij die kan lacHen is Hij die kan Huilen.

????
Aan alle ellende komt een einde maar komt er ook een einde aan alle ellende?

Gesloten