Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

l337 posting filter (literally)

Options
  • 15-11-2002 6:48pm
    #1
    Closed Accounts Posts: 2,695 ✭✭✭


    See here...
    http://smartor.is-root.com/viewtopic.php?t=851

    It for example would turn this...
    and the elite is even harder
    into this...
    4nd th3 l33t 1s 3v3n h4rd3r

    I came across it while searching for some phpbb v.2 hacks. I'm in the process of modding a version of phpbb v.2 for a site I'm doing for my cricket club.

    I'm not sure whether theres a vB hack/mod available but would be cool to have in ones "posting armoury".... You know for those uber sarchy moments which periodically arise :D
    Post edited by Shield on


Comments

  • Closed Accounts Posts: 2,695 ✭✭✭b20uvkft6m5xwg


    Obviously modding vb -v- phpbb is different but heres the code and instructions FYI...

    ##############################################################
    ## MOD Title:	"FrEaK" 'n "l33t" posting filter
    ## MOD Author:	Smartor <smartor_xp@hotmail.com> (Hoang Ngoc Tu) [url]http://smartor.is-root.com[/url]
    ## MOD Description:	This MOD will add two filter-buttons into your posting
    ##			screen. They can transform any part of your message into
    ##			"FrEaK" or "l33t" style
    ##			Note: they are filters, not BBCode
    ##			Only support standard ASCII characters
    ##			Only tested on IE6
    ## MOD Version:	1.0.0
    ##
    ## Installation Level: easy
    ## Installation Time: 3 Minutes
    ## Files To Edit: 1
    ##	templates/subSilver/admin/posting_body.tpl
    ## Included Files: N/A
    ##############################################################
    ## Author Notes:
    ##	this MOD is kinda funny. Enjoy!
    ##	for any concerns, please contact me at [url]http://smartor.is-root.com[/url]
    ############################################################## 
    ## This MOD is released under the GPL License.
    ## Intellectual Property is retained by the MOD Author(s) listed above
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ############################################################## 
    
    #
    #-----[ OPEN ]---------------------------------------------
    #
    templates/subSilver/posting_body.tpl
    
    #
    #-----[ FIND ]----------------------------------------
    #
    	<tr> 
    	  <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
    
    #
    #-----[ BEFORE ADD ]----------------------------------
    # if you were using my Smartor's Editor MOD you should move the JavaScript code section
    # into file "smartor_editor.js" instead of "posting_body.tpl" ;)
    #
    <script language="JavaScript1.2">
    <!--
    function filter_freak()
    {
    	theSelection = document.selection.createRange().text;
    	if (theSelection != '') {
    		var caretPos = document.post.message.caretPos;
    		var export_text = '';
    		var current_char = '';
    		for (i = 0; i <= caretPos.text.length; i++)
    		{
    			current_char = caretPos.text.charAt(i);
    			if ( (i % 2) == 0 )
    			{
    				export_text += current_char.toUpperCase();
    			}
    			else
    			{
    				export_text += current_char.toLowerCase();
    			}
    		}
    		caretPos.text = export_text;
    		document.post.message.focus();
    		return;
    	}
    	alert("You must select your text first!");
    	return;
    }
    
    function filter_l33t()
    {
    	theSelection = document.selection.createRange().text;
    	if (theSelection != '') {
    		var caretPos = document.post.message.caretPos;		
    		var export_text = '';
    		var current_char = '';
    		for (i = 0; i <= caretPos.text.length; i++)
    		{
    			current_char = caretPos.text.charAt(i);
    			if ( (current_char == 'a') || (current_char == 'A') )
    			{
    				export_text += '4';
    			}
    			else if ( (current_char == 'e') || (current_char == 'E') )
    			{
    				export_text += '3';
    			}
    			else if ( (current_char == 'i') || (current_char == 'I') )
    			{
    				export_text += '1';
    			}
    			else if ( (current_char == 'o') || (current_char == 'O') )
    			{
    				export_text += '0';
    			}
    			else
    			{
    				export_text += current_char;
    			}
    		}
    		caretPos.text = export_text;
    		document.post.message.focus();
    		return;
    	}
    	alert("You must select your text first!");
    	return;
    }
    //-->
    </script>
    	<tr>
    	  <td class="row1" valign="top"><span class="gen"><b>Posting Style Filters</b><br /><span class="gensmall">Use Ctrl+Z to Undo</span></span></td>
    	  <td class="row2"><input type="button" class="button" name="freak" value="FrEaK" onClick="filter_freak()" />&nbsp;<input type="button" class="button" name="freak" value="l33t" onClick="filter_l33t()" /></td>
    	</tr>
    
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM
    


  • Registered Users Posts: 11,446 ✭✭✭✭amp


    I am drawn to this disturbing idea the way one is drawn to those windows in Amsterdam.

    Full endorsal of product and/or service.


Advertisement