Show a Shoutbox
This macro will add a shoutbox to dasBlog. Features included-
XML Database (All entries are stored in XML File. It can be kept under the content directory of blog)
Ajax Enabled – No Iframe or refreshing of whole page. Update shoutbox silently and regularly after specified interval.
Customizable CSS – I tried to make it very customizable. It can gel with any theme perfectly.
Syntax: <%AjShoutBox(max_char, refreshInterval, maxShouts)|AJmacros%>
max_char - (numeric value) - maximum number of characters to be allowed in the message textbox of shoutbox.
refreshInterval - (milliseconds) - enter the interval in milliseconds for which shoutbox will be updated automatically. (1 second = 1 000 milliseconds). If you want to disable automatic refresh of shoutbox enter any thing less than 5000 for refreshInterval.
maxShouts - (numeric) - maximum number of last shouts to be shown.
Example: <%AjShoutBox(200,30000,30)|AJmacros%>
You can customize the output of this macro using CSS. You can found CSS Information in the zip file (aakashjain.dll.zip).
(view this macro live on my blog)
Extra Settings: This macro require extra settings/configuration to be made (given below) to work sucessfully.
Add the following line under the <httpHandlers> section of web.config.
<add verb="*" path="aakashjain/shoutBoxHandler.aspx" type="AakashJain.ShoutBoxHandler,AakashJain"/>
Create a key under <configuration> section of web.config
<appSettings>
<add key="AakashJainShouts" value="~/content/aakashjainshouts.xml"/>
</appSettings>
The installation of this macro is bit tricky, please read my blog post for the installation of this macro.
|