NP_PiyoShoutBox.php

Simple Shoutbox. Compatible with NP_znSmiley and NP_Alias. Shoutbox per blog. Support logged-in members. Simple confirmation code using image to prevent spam.

General Plugin info
Author: PiyoPiyoNaku
Current Version: v0.31b
Download: here

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin…
  3. Put <%PiyoShoutBox%> in your skin

Upgrading

  1. Uninstall your previous installation of NP_PiyoShoutBox
  2. Unzip the new zip file and upload the contents to your plugin directory (replace the old one)
  3. Install PiyoShoutBox again from your Nucleus plugin administration

How to use the plugin

Put <%PiyoShoutBox%> in your skin.

Available SkinVars and/or TemplateVars

  • <%PiyoShoutBox%> to show the shoutbox
  • To show other's blog shoutbox: <%PiyoShoutBox(blogid)%>
    • Example, to show the shoutbox where blogid is 1, use: <%PiyoShoutBox(1)%>

Options

  • Enable znSmiley (must have NP_znSmiley installed)
  • Max entries to show per page (default is 5)
  • Time format (default has the look of 2007-02-06 13:40:41)
  • Can change the Confirmation Code
  • Confirmation Code image creation specification
  • Ask to remove the tables when uninstalling this plugin
  • Ask to open link in new window

To configure how the shoutbox looks

Copy paste and edit this CSS codes to your CSS file

/* the whole area of PiyoShoutBox */
#PiyoShoutBox {
	width: 200px;
}
/* entries box */
#PiyoShoutBox .shout_display {
	border: 1px solid black;
	height: 200px;
}
 
/* date in each entries*/
#PiyoShoutBox .shout_display .shout_date {
	text-align: right;
	background-color: white;
	color: black;
	font-size: smaller;	
}
 
/* each entries (including name and message) */
#PiyoShoutBox .shout_display .shout_entry {
	background-color: gray;
	text-align: justify;
	color: black;
	margin-bottom: 2px;
}
 
/* name in each entries */
#PiyoShoutBox .shout_display .shout_entry .shout_name {
}
 
/* message in each entries */
#PiyoShoutBox .shout_display .shout_entry .shout_msg {
}
 
/* bottom pagination */
#PiyoShoutBox .shout_display .nextLink {
	font-size: smaller;
}
 
/* the current date displayed */
.current_date {
	font-size: smaller;
	text-align: center;
        width: 100%;
	background-color: white;
}
 
/* inputboxes */
#txtName, #txtUrl, #txtMessage {
	border: #cccccc 1px solid;
	width: 115px;
}
#txtCode {
	width: 94px;
	border: #cccccc 1px solid;
}
 
/* container of hide/show emoticons panel buttons */
#znsmiley_dispPiyoSB, #znsmiley_nonePiyoSB {
	float: left;
}
 
/* addShout button */
#addShout {
}
 
/* container of Shout! button */
.shout_add {
	float: right;
}
 
/* container of label and box of each field */
.shout_disp {
	padding: 2px;
}
 
/* the container of each labels */
.shout_labels {
	float: left;
}
 
/* the container of each boxes */
.shout_fields {
	float: right;
}

Tips and Tricks

If you want to put the shoutbox into an iframe, use NP_ExtraSkinsJP

Wishlist

Bugs

History

  • v0.31b - 20 Feb 2007 (thanks Admun & ftruscott! :) )
    • confirmation code not case sensitive to avoid giving wrong confirmation code message all the time
    • some syntax changes and addition of getTableList function
    • different approach to form action url
  • v0.3b - 11 Feb 2007
    • Add the option to specify the font size, font type, image width and height, border width, text position, text float for confirmation image
    • can choose whether to open link in new window or not
    • can show other's blog shoutbox
    • batch delete shouts from admin area
    • batch edit shouts from admin area (-not completed yet)
  • v0.21b - 9 Feb 2007
    • Not using the plugin table to generate confirmation code
    • Changed javascript add smiley codes to the better ones
  • v0.2b - 9 Feb 2007
    • Admin Area available (delete all shouts, edit shout, delete shout)
    • confirmation code image can be specified (text color, background color, border color, shadow color)
    • Using Silkscreen true type font for confirmation code
    • can choose whether to delete the tables or not when uninstalling the plugin
  • v0.1b - initial beta release | 6 Feb 2007
piyoshoutbox.txt · Last modified: 2008/02/06 17:50 (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