NP_SimpleShoutBox.php

A simple shoutbox!

This Plugin is not developed any more!

General Plugin info
Current Version: 1.1
Download: np_simpleshoutbox-1.1.tar.gz 44kb

Features

  • automatic Smiley-Conversion
  • Fortune-like behaviour when fields are left blank (including a set of STAR WARS famous-words)
  • uses NP_GlobalBlacklist to prevent spam
  • admin-area to delete and edit the entries
  • full design-control via a template
  • allow / disallow - html
  • valid xhtml 1.0 strict

Installation

  1. download the source and untar it into your nucleus-plugin-directory
  2. go to the “nucleus-administration-page” and install it
  3. go to the “edit options” - section and set your options
  4. insert <%SimpleShoutBox%> in your sidebar.inc
  5. edit your css-style

Upgrade

  1. uninstall the old shoutbox ( all data will be lost - i think that doesnt matter - its only a shoutbox ;-) )
  2. download the source and untar it in your nucleus-plugin-directory
  3. go to the “nucleus-administration-page” and install it

Plugin-Options

  • css-classname ⇒ the cssclass of the div where the shoutbox is placed
  • max. entries to show ⇒ number of last entries to show
  • template ⇒ here you can edit how the entry of your shoutbox will look like
  • time / date -formats ⇒ setting the date and time ( uses date() )
  • default url ⇒ the url to set when someone leaves the field blank
  • default names / text ⇒ each line represents a name and some words seperated by ”⇒” , each time when someone leaves either the name- or textfield blank one of that names or words will be inserted. If you insert nothing, both the name and the according text will be inserted. I just wrote some presets of STAR WARS famous-words ( maybe there will be a function to import fortune-cockies sometime ;-))

Example-CSS

Just an example how the css may look like.

.sidebar dd #simpleshoutbox  {
    text-align : center;
    margin-right : 10px;
    font-size : 10px;
    line-height : 140%;
    float : left;
    clear : left;
}
 
.sidebar dd #simpleshoutbox form {
    margin-bottom : 2px;
}
 
.sidebar dd #simpleshoutbox .formfield {
    border : 1px solid #666;
    background : #333;
    margin : 1px;
    padding : 1px;
    color : #666;
    font-size : 10px;
    font-family : Verdana;
    width : 170px;
}
 
.sidebar dd #simpleshoutbox textarea {
    border : 1px solid #666;
    color : #666;
    padding : 1px;
    font-family : Verdana;
    font-size : 10px;
    margin : 1px;
    width : 170px;
    height : 50px;
}
 
.sidebar dd #simpleshoutbox .addshoutform .formbutton {
    border : 1px solid #666;
    background : #333;
    color : #666;
    margin : 1px;
    width : 174px;
    font-size : 9px;
}
 
.sidebar dd #simpleshoutbox .viewshoutform .formbutton {
    border : 1px solid #666;
    background : #333;
    color : #666;
    margin : 1px;
    width : 84px;
    font-size : 9px;
}
 
.sidebar dd #simpleshoutbox .entry {
    text-align : left;
    border : 1px solid #666;
    margin-bottom : 2px;
    overflow : hidden;
    font-size : 9px;
}
 
.sidebar dd #simpleshoutbox .entry img.smile {
    vertical-align : middle;
    margin-bottom : 1px;
}
 
.sidebar dd #simpleshoutbox .entry a {
    background : none repeat;
    font-weight : bold;
    text-indent : 0;
    margin : 0;
    padding : 0;
}
 
.sidebar dd #simpleshoutbox .entry .info {
    text-align : left;
    border-bottom : 1px solid #666;
    margin : 0;
    padding : 2px;
}
 
.sidebar dd #simpleshoutbox .entry .info .infotext {
    font-weight : bold;
    color : #666;
}
 
.sidebar dd #simpleshoutbox .entry .text {
    text-align : justify;
    padding : 2px;
    margin : 0;
}

History

  • [Version 1.1, released 2205-08-25]
    • removed stupid mysql-error when nothing is in the database
    • fixed “nothing displayed when whitespace was entered”

to upgrade - simply unistall the old and reinstall the new shoutbox (beware all shoutbox-data will be lost !!

  • [Version 1.0, released 2005-06-23]
simpleshoutbox.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki