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
  • 4
  • 5
  • 6
  • 7
[SC] Hows My Post v1; ZB Version
Tweet Topic Started: Jul 10 2008, 05:16 PM (3,605 Views)
HolySavior Mar 23 2009, 02:25 PM Post #31
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
i guess if you want to change the image that bad you can. but if you mess up the script doing it i might not help you...

and no you can not use the images we use.
Offline Profile Goto Top
 
high_sky Mar 28 2009, 05:12 AM Post #32
Member Avatar
doughnuts!

Posts:
71
Group:
Member
Member
#2,360
Joined:
Feb 17, 2009
Coding language
HTML/CSS
Okay, no prob,

thanks v much for this code again
Posted Image
ZBtopsite| ZBthemezone| ZBcode
Offline Profile Goto Top
 
dave123 Mar 29 2009, 02:13 PM Post #33


Posts:
11
Group:
Member
Member
#2,693
Joined:
Mar 29, 2009
Coding language
Everything
HolySavior
Jul 10 2008, 05:16 PM
Alrighty i have had some requests for this one to be converted so here it is

Hows My Post v1 for ZB!
I have changed it up alittle bit Currently it works for:
Add Reply
New Topic
Compose PM

One Small Error is the Quick Message Compose. which will hopefully be fixed soon.

Creator: HolySavior ( aka Dan T)
Preview: http://s1.zetaboards.com/howsmypost/index/

Instructions:

Add this to your CSS
Code:
 

/* Hows my Post */
.postbar {
border: 1px solid #e0e0e0;
background-color: #F5F5F5;
font-size: 8px;
color: #E0E0E0;
font-weight: bold;
width: 500px;
height: 30px;
background-image:url(http://img370.imageshack.us/img370/2441/testonecopy12ol1.gif);
overflow:hidden;
background-repeat:no-repeat;
text-align:left;
}

.innerbar {
font-size: 12px;
height: 27px;
padding:5px 15px 0px 5px;
background-color: #555555;
background-image:url(http://img370.imageshack.us/img370/6621/testonecopy2yj8.gif);
background-repeat:no-repeat;
overflow:hidden;
}

.howspost {
font-weight:bold;
color:#000000
}


Add this Above <-- Top Menu -->

Code:
 

<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[i].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[i].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>


Add this after <--board -->
Code:
 

<script type='text/javascript'>
hows_my_post.init();
</script>
hi i cant find the Add this after <--board --> bit is it in the same css bit were the rest is and do i put the first code at the top of the css bit thanks if you no what i mean
Offline Profile Goto Top
 
SlyCooperFan1 Mar 29 2009, 06:40 PM Post #34
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
<!---BOARD---> is in the Theme Layout section. You know, where you found <!---TOPMENU--->?
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
dave123 Mar 30 2009, 05:03 AM Post #35


Posts:
11
Group:
Member
Member
#2,693
Joined:
Mar 29, 2009
Coding language
Everything
right this is how i have done it can you tell me what i am doing wrong i have put the add this to css code on the bottom of the css bit in the Edit Theme Appearance and in the Theme Layout section i have done it like this

<script type='text/javascript'>/* Created by HolySavior of iFusionHows My Post v1 ZBThis 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>
<!-- TOPMENU --><!-- HEADER --><!-- SUBMENU --><div id="wrap"><!-- NAV --><!-- BOARD --> <script type='text/javascript'>hows_my_post.init();</script></div>
Offline Profile Goto Top
 
samrav Apr 15 2009, 11:03 AM Post #36


Posts:
1
Group:
Member
Member
#2,806
Joined:
Apr 15, 2009
I have had problems installing this brilliant application:

1) On the CSS, does it matter where it goes? I simply slot it in at the bottom.
2) Everytime I copy/paste the code, the code `scrunches` up i.e. Instead of being:

A
B
C

It goes :

ABC

Does this matter?

3) On the Theme Layout section, does it go below the section, or next to them? I put them below.

Thank you for reading :)
Offline Profile Goto Top
 
Vitality Apr 15 2009, 04:31 PM Post #37
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
1. It doesn't matter.
2. It doesn't matter.
3. It shouldn't matter. :P
Offline Profile Goto Top
 
God Like Oni Apr 16 2009, 02:21 AM Post #38
Member Avatar


Posts:
299
Group:
Member
Member
#2,786
Joined:
Apr 12, 2009
Nice code , it works really well.
Posted Image
Posted Image
Offline Profile Goto Top
 
Addicted Apr 20 2009, 10:49 PM Post #39
Member Avatar


Posts:
24
Group:
Member
Member
#2,405
Joined:
Feb 20, 2009
Coding language
None
I luffed this code but I added a Post template code and had to chose one or the other cause the template wouldn't work *sobs* Sadness.
Offline Profile Goto Top
 
triforceguy1 May 20 2009, 04:37 PM Post #40


Posts:
2
Group:
Member
Member
#2,867
Joined:
Apr 25, 2009
Coding language
None
is it possible so that you can take out the submit button in the post length alert message, if so how?

Thanks
Leon
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.
Learn More · Register Now
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

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