Index: openacs-4/packages/forums/forums.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/forums.info,v diff -u -r1.14 -r1.15 --- openacs-4/packages/forums/forums.info 30 Nov 2002 17:34:39 -0000 1.14 +++ openacs-4/packages/forums/forums.info 7 Jan 2003 18:59:07 -0000 1.15 @@ -7,14 +7,16 @@ f f - + oracle postgresql Ben Adida + Online discussion boards with many configuration options. + This online discussion board software is the successor of the original bboard package. The biggest improvement is the new scalable datamodel. This package supports threaded and flat view, moderation, a stand alone search function as well as integration with the OpenACS search package and integration with the notifications package for email alerts. It also supports automatic posting of incoming email. - + @@ -52,6 +54,7 @@ + @@ -76,6 +79,25 @@ + + + + + + + + + + + + + + + + + + + @@ -123,6 +145,7 @@ + Index: openacs-4/packages/forums/tcl/messages-format-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/tcl/messages-format-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/forums/tcl/messages-format-procs.tcl 7 Jan 2003 18:58:35 -0000 1.1 @@ -0,0 +1,35 @@ +ad_library { + message formatting procs +} + +namespace eval forum::format { + + ad_proc emoticons { + {-content:required} + } { + Convert smileys (emoticons) to img references. It constructs a relative + image reference to graphics/imagename.gif, so it will only work when + used from pages that are directly under the forums/www/ directory. + +

+ + If you change the images make sure to also adapt the image sizes in + the img tag that gets constructed here. + } { + set emoticons_map [list] + foreach { emoticon image } { + ":-)" "smile" + ";-)" "wink" + ":-D" "bigsmile" + "8-)" "smile8" + ":-(" "sad" + ";-(" "cry" + ":-O" "scream" + ":-/" "think" + } { + lappend emoticons_map $emoticon + lappend emoticons_map "\"$emoticon\"" + } + return [string map $emoticons_map $content] + } +} Index: openacs-4/packages/forums/www/message-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/message-chunk.adp,v diff -u -r1.14 -r1.15 --- openacs-4/packages/forums/www/message-chunk.adp 30 Nov 2002 17:35:39 -0000 1.14 +++ openacs-4/packages/forums/www/message-chunk.adp 7 Jan 2003 18:58:09 -0000 1.15 @@ -55,7 +55,7 @@

- <%= [ad_text_to_html -- "$message(content)"] %> + @message.content@
@@ -67,6 +67,3 @@ - - - Index: openacs-4/packages/forums/www/message-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/message-chunk.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/forums/www/message-chunk.tcl 30 Nov 2002 17:35:39 -0000 1.6 +++ openacs-4/packages/forums/www/message-chunk.tcl 7 Jan 2003 18:58:09 -0000 1.7 @@ -24,6 +24,15 @@ if {![exists_and_not_null moderate_p]} { set moderate_p 0 } if {![exists_and_not_null forum_moderated_p]} {set forum_moderated_p 0} +if { [string is false $message(html_p)] } { + set message(content) [ad_text_to_html $message(content)] +} + +# convert emoticons to images if the parameter is set +if { [string is true [parameter::get -parameter DisplayEmoticonsAsImagesP -default 0]] } { + set message(content) [forum::format::emoticons -content $message(content)] +} + # JCD: display subject only if changed from the root subject if {![info exists root_subject]} { set display_subject_p 1 Index: openacs-4/packages/forums/www/graphics/angel.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/angel.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/bigsmile.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/bigsmile.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/burp.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/burp.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/crazy4.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/crazy4.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/crossedlips.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/crossedlips.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/cry.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/cry.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/embarrassed.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/embarrassed.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/farted.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/farted.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/kiss.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/kiss.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/moneymouth.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/moneymouth.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/oneeye.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/oneeye.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/sad.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/sad.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/scream.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/scream.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/smile.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/smile.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/smile8.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/smile8.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/think.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/think.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/tongue.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/tongue.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/wink.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/wink.gif,v diff -u Binary files differ Index: openacs-4/packages/forums/www/graphics/yell.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/graphics/Attic/yell.gif,v diff -u Binary files differ