DVS Custom Notification - Must Used Wordpress Plugin

This is the official page for Wordpress Custom Notification plugin by DVS. This plugin enables to write announcement/ notification or call to action to visitor using any HTML or javascript code. This plugin is fully customizeable, 2 notification types (styles), resizeable notification box, 9 placement options (compass) and super fast loads.
Below the full feature of the plugin:

  • Very fast load, uses only php without javascript
  • 2 Notification types
  • Enable to be activated individually or both together.
  • 2 placements option (notification type 1).
  • 9 placements option/ compass (notification type 2).
  • Fixed position (floating on browser).
  • Resizeable Notification box.
  • Dynamic Background color.
  • Example included, easy and fully customize.
  • HTML or javascript code insertion enabled.
The idea of creating this plugin is coming from my first plugin 4 in 1 WordPress Plugin which is also contain the notification menu, a simpler one with only notification type 1 included.

DVS Custom Notification Demo

This plugin has two different types of notification. To see how it looks like, see these pages:

  • Demo notification type 1. It has two placement options, you may put it at the bottom or top of your blog page.
  • Demo notification type 2. There are 9 placement options like compass directions, easy to resize the notification box to meet your preference, also enable you to give a certain notification title.

Installation

  1. Download the plugin from following source:
  2. Activate plugin "DVS Custom Notification" from Plugins menu » Installed Plugins.
  3. Go to the "Custom Notification" options in your dashboard check "Display Custom Notification", define widget placement, background color and and the content.
  4. Save changes and Done!.

Tips and Tricks

Since this powerful plugin allows any html or javascripts codes, so you can use this plugin for many purposes. You can use Facebook fan page code and offer you visitor to like it, add email subscriptions box, your recent twitter activity and more, yes I really mean MORE!. Besides it will floats on the browser and will always be visible eventhough user scroll the page. You can use the notification type 2 for this action.

Facebook Fan Page Like Offer

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffacebook.com%2FD.Artchitext&amp;layout=standard&amp;show_faces=true&amp;width=220&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:220px; height:65px;" allowTransparency="true"></iframe>
As for the notification type 1, you can make it really interesting with a scrolling effect of your notification. You can use the following js from DynamicDrive to let you notification content scroll smoothly:

Scroller Code

<script type="text/javascript">
/***********************************************
* Memory Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var memorywidth="810px" //scroller width
var memoryheight="30px" //scroller height
var memorybgcolor="transparent" //scroller background
var memorypadding="0px" //padding applied to the scroller. 0 for non.
var borderCSS="border:none;" //Border CSS, applied to scroller to give border.
var memoryspeed=2 //Scroller speed (larger is faster 1-10)
var pauseit=1 //Pause scroller onMousever (0=no. 1=yes)?
var persistlastviewedmsg=1 //should scroller's position persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".
//Specify the scroller's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var memorycontent='<nobr><span style="font: 12pt michroma">Thank you for using 4 in 1 plugin by <a href="http://www.finderonly.net" title="Damn&#039;s Virtual Studio">DVS.</a> If you find this plugin useful, please consider <a href="http://www.finderonly.net">linking to</a> or <a href="http://www.finderonly.net/">recommending</a> this plugin.</span></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
var combinedcssTable="width:"+(parseInt(memorywidth)+6)+"px;background-color:"+memorybgcolor+";padding:"+memorypadding+";"+borderCSS+";"
var combinedcss="width:"+memorywidth+";height:"+memoryheight+";"

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
memoryspeed=(document.all)? memoryspeed : Math.max(1, memoryspeed-1) //slow speed down by 1 for NS
var copyspeed=memoryspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-10000px">'+memorycontent+'</span>')
var actualwidth=''
var memoryscroller
if (window.addEventListener)
window.addEventListener("load", populatescroller, false)
else if (window.attachEvent)
window.attachEvent("onload", populatescroller)
else if (document.all || document.getElementById)
window.onload=populatescroller
function populatescroller(){
memoryscroller=document.getElementById? document.getElementById("memoryscroller") : document.all.memoryscroller
memoryscroller.style.left=parseInt(memorywidth)+8+"px"
if (persistlastviewedmsg && get_cookie("lastscrollerpos")!="")
revivelastmsg()
memoryscroller.innerHTML=memorycontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
lefttime=setInterval("scrollmarquee()",20)
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savelastmsg(){
document.cookie="lastscrollerpos="+memoryscroller.style.left
}

function revivelastmsg(){
lastscrollerpos=parseInt(get_cookie("lastscrollerpos"))
memoryscroller.style.left=parseInt(lastscrollerpos)+"px"
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg

function scrollmarquee(){
if (parseInt(memoryscroller.style.left)>(actualwidth*(-1)+8))
memoryscroller.style.left=parseInt(memoryscroller.style.left)-copyspeed+"px"
else
memoryscroller.style.left=parseInt(memorywidth)+8+"px"
}

if (iedom){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0" style="'+combinedcssTable+'"><td>')
write('<div style="position:relative;overflow:hidden;'+combinedcss+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=memoryspeed">')
write('<div id="memoryscroller" style="position:absolute;left:0px;top:0px;" '+divonclick+'></div>')
write('</div>')
document.write('</td></table>')
}
}
</script>
Replace the bold code with your own content, the rest won't be necessary.

Plugin Version

= Version 1.0 = Dec 08, 2012
Basic menu, upgrade immediately.

= Version 1.0.1 = Dec 31, 2012
* Fixed has_cap error message caused by deprecated function on admin menu
* Fixed undefined constant px cause by width and height divider in CSS function
* Fixed prevention of showing on mobile browser for not supported CSS fixed position on most mobile

FAQs

I'm actively listening to your feedback and fixing problems, any suggestions are kindly welcome. Please submit your question or suggestions regarding to this plugin via email, I'll add it to this section in the future.
Thank you for anyone use this plugin, hope you all like it, has good use for you. Don't forget to "LIKE" this page and my Facebook Fan Page as your appreciation as well as to notify for the latest update to your wall.

  Awesome Peoples Like this, You?!