Go Back   Webmaster Forum > Development > Programming > JavaScript
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Junior Geek
Posts: 65
Join Date: Feb 2007
iTrader: (0)
Hows my post? V2 - 10-19-2007

Written for IPB1.3 / invisionfree
written by Godkillah and Slayer766

V2 of this great idea has expanded even further! Now you have the option to add the How's my post info straight into your post to be displayed in your posts! This also comes with a character and word counter as you type! So check this out everyone!

Code preview board: http://z11.invisionfree.com/HowsMyPostCode

This code goes in your Board Wrappers> Footer:

Code:
<script>
/*
How's My Post v2 
By: slayer766 and Godkillah
from thecodingzone.com and phantom-designs.net
*/

//Set character lengths and description
var $_Set = new Array();
$_Set[0] = [50,"Wow"]
$_Set[1] = [125,"Awesome"]
$_Set[2] = [200,"Nice post"]
$_Set[3] = [275,"Doing great"]
$_Set[4] = [345,"Almost there"]
$_Set[5] = [500,"Wonderfully done"]
//Ending Description
$_Set[6] = ["This is the longest post..."]

document.write("<script language='javascript' src='http://www.fileden.com/files/2007/3/5/855448/HowsPostv2.txt'><\/script>");
</script>
The only areas you can edit with is the arrays:

Quote:
$_Set[0] = [50,"Wow"]
$_Set[1] = [125,"Awesome"]
$_Set[2] = [200,"Nice post"]
$_Set[3] = [275,"Doing great"]
$_Set[4] = [345,"Almost there"]
$_Set[5] = [500,"Wonderfully done"]
//Ending Description
$_Set[6] = ["This is the longest post..."]
Edit whats in RED to the number of characters that the How's My Post will change at.
Edit whats in GREEN to the description of How's My Post you would like to have.
Reply With Quote
Reply


Thread Tools



Advertise Here for just $6 per month

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com