########################################################
##
## Hack Title: Smart Smilies
## Hack Version: 1.0.0
## Author: Christoph "Toxic" Hellings (toxic@freenet.de)
## Date Created: 08-27-02
## Thread Location: http://www.tforumhacks.com/tforum/viewtopic.php?TopicID=1066
## Working Example:
## Description: Inserts Smilies at the cursor position
##
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: 4
## Edit Database: no
## Included Files: none
##
########################################################
##
## Installation/Author Notes:
##
## I think it works but no warranty...
##
########################################################
#
#-----[ ACTION: BACKUP ]------------------------------------------
#
Every time you edit your files, you should always back them
up first. Although all of these hacks have been tested on various
systems, they may not work with your configuration or you may not
like what it does. Backing up protects yourself and your users
from downtime.
#
#-----[ ACTION: OPEN ]--------------------------------------------
#
IEUBB.js
#
#-----[ ACTION: GOTO ]--------------------------------------------
#
beginning of the file
#
#-----[ ACTION: ADD ]--------------------------------------------
#
function InsertText(txt)
{
document.posting.message.focus();
document.selection.createRange().text = ' ' + txt + ' ';
return;
}
#
#-----[ ACTION: OPEN ]--------------------------------------------
#
NSUBB.js
#
#-----[ ACTION: GOTO ]--------------------------------------------
#
beginning of the file
#
#-----[ ACTION: ADD ]--------------------------------------------
#
function InsertText(text) {
document.posting.message.value+=text;
}
#
#-----[ ACTION: OPEN ]--------------------------------------------
#
message.php
#
#-----[ ACTION: FIND ]--------------------------------------------
#
function doinsertsmilie(smilieface){ window.opener.document.posting.message.value+=smilieface;}
#
#-----[ ACTION: REPLACE ]-----------------------------------------
#
function doinsertsmilie(smilieface){ window.opener.InsertText(smilieface);}
#
#-----[ ACTION: OPEN ]--------------------------------------------
#
smileysidetable.php
#
#-----[ ACTION: FIND ]--------------------------------------------
#
#
#-----[ ACTION: REPLACE ]-----------------------------------------
#
#
#-----[ ACTION: SAVE & UPLOAD ]-----------------------------------
#
IEUBB.js
NSUBB.js
message.php
smileysidetable.php
#
#-----------------------------------------------------------------
#
EOF