Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Hows My Post v1
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • …
  • 7
[SC] Hows My Post v1; ZB Version
Tweet Topic Started: Jul 10 2008, 05:16 PM (3,607 Views)
Jamora1124 Dec 19 2008, 08:13 PM Post #11
Member Avatar


Posts:
8
Group:
Member
Member
#1,825
Joined:
Dec 19, 2008
This code is good but not working for me. Where it the Top Menu and alll that. My Forum was created without one.
Posted Image
Posted Image
Join the Forums Today!
Offline Profile Goto Top
 
HolySavior Dec 19 2008, 08:42 PM Post #12
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
all boards have them. depends on where your looking goto your board theme and add it in there it should be in there.
Offline Profile Goto Top
 
Angel Wildshade Jan 28 2009, 07:50 AM Post #13


Posts:
2
Group:
Member
Member
#2,150
Joined:
Jan 28, 2009
Love the code! :D
Offline Profile Goto Top
 
Tazay Jan 28 2009, 08:10 PM Post #14


Posts:
26
Group:
Member
Member
#2,156
Joined:
Jan 28, 2009
Coding language
ASP.Net
Absolutely awesome! I love the code, thanks :D
Offline Profile Goto Top
 
viperver1 Jan 28 2009, 09:14 PM Post #15
Member Avatar


Posts:
100
Group:
Member
Member
#1,984
Joined:
Jan 9, 2009
Coding language
Everything
I'll help on all users to modify this code, but keep in mind that the modifications have to include the same copyright as the first post and must include the codes from the first post.

So in red, I've indicate on how to change the word length. Part of the coding that is in blue is the primary message if it's less than so many words, part of the code in green is what appears when you do a post which shows under the colored bar and part of the code that is in purple is what things you can adjust how many of the words are over that many letters as indicated by the red parts. The other section of the code in orange is the section that says that you have that many words and this was normally set to 3 but it can be edited out to suit. The part of this code in light blue is the required limit that can be preset depending on the message indicated in blue. In gold is the How's My Post? text which is seen in the editing of the posts in bold so it's best to edit this with care.

Quote:
 
<script type='text/javascript'>

/* Created by HolySavior of iFusion
Hows My Post v1 ZB
This may not be Edited at all!
*/
function word_count() {
var post_words = document.forms['posting'].post.value.split(/ /g); var count = 0;
for(i=0;i<post_words.length;i++) if(post_words.length > 2) count++;

var iObj = document.getElementById('count');
iObj.innerHTML = "<table><tr><td><div id='status_bar_holder' class='postbar'><div id='status_bar' style='width: "+count + "%;' class='innerbar'></div></div></td><td>"+ count+" words over 3 letters</td></tr></table>";
if(count >= 40){ iObj.innerHTML += "<span class='howspost'>Hows My Post? </span><span style='color:#308014'> Excellent Post!</span>";
}else if (count >=10){ iObj.innerHTML += "<span class='howspost'>Hows My Post? </span><span style='color:#308014'> Good Post!</span>";
} else if(count < 10){ iObj.innerHTML += "<span class='howspost'>"Hows My Post? </span>You can do better than that!";
}
}

function check_count(){
var post_words = document.forms['posting'].post.value.split(/ /g); var count = 0;
for(i=0;i<post_words.length;i++) if(post_words.length > 2) count++;
if(count < 6){
return confirm("Post Length Alert!!\r\n\r\nYour post has only " + count + " words with over three letters. Are you sure you want to add it?");
}
}

var hows_my_post = {
init: function(){
if(location.href.match(/post/) || location.href.match("msg")){
document.getElementById("c_post").innerHTML += "<br/><div id='count'><span class='howspost'>Hows My Post? </span></div>";
}

if(document.forms['posting']){
if(document.getElementById('count') )

document.forms['posting'].post.onkeyup = function(){ word_count(); }
if(location.href.match("mode=")){
document.forms['posting'].post_submit.onclick = function(){ return check_count(); }
}
if(location.href.match("msg")) {
document.forms['posting'].submit.onclick = function(){ return check_count(); }
}
}
}
};

</script>


Hope this will be handy for most people getting to know what they can modify in this great code to make it suit their site as this post indicates.
Edited by viperver1, Jan 28 2009, 09:20 PM.
Offline Profile Goto Top
 
Dakota Jan 29 2009, 01:04 PM Post #16
Member Avatar


Posts:
5
Group:
Member
Member
#651
Joined:
Aug 18, 2008
Nice code. I like it because it can encourage users to post better and tell them how they are posting.
Offline Profile Goto Top
 
TechBOINC Feb 10 2009, 05:17 PM Post #17

Posts:
51
Group:
Banned
Member
#2,229
Joined:
Feb 5, 2009
Coding language
None
LOVE IT!
Posted Image
Offline Profile Goto Top
 
SlyCooperFan1 Feb 12 2009, 05:13 PM Post #18
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
The preview board was all I needed to say "This is UBER!" But alas, ZB has CSS issues at the moment, and I can't edit any of it...I must wait...I'll be back, I promise!

EDIT: Looks like I can edit CSS on existing themes! It's very good, and I love it! <3 Wait a minute, Valentine's Day is this Saturday....oh well. :stephen:
Edited by SlyCooperFan1, Feb 12 2009, 05:50 PM.
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
Beej Feb 18 2009, 01:28 PM Post #19
Member Avatar


Posts:
8
Group:
Member
Member
#2,380
Joined:
Feb 18, 2009
Coding language
None
I really like this, a LOT! :)

I hate it when folks are lazy in my forum and just pout something like, 'Yeah, great pice of art'.

This will make em think twice and it's amazing what you guys can do . . really amazing!

thanks

Beej
Posted Image
Offline Profile Goto Top
 
Nick Mar 1 2009, 02:35 PM Post #20


Posts:
7
Group:
Member
Member
#2,476
Joined:
Feb 28, 2009
This is completely amazing, I love it! I've been using this code for my forum now for a few days and my members enjoy using it. It also encourages them to post a lot more because of the pretty colors it creates when you typed up a bunch of paragraphs.

XD
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Sign-up for Free
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • …
  • 7

Track Topic · E-mail Topic Time: 7:49 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy