[Problem]help me on alert code require minium character
Page 1 of 1
[Problem]help me on alert code require minium character
- Code:
<script type="text/javascript">
//<![CDATA[
/*minimum characters per post
by godkillah from phantom-designs.net*/
var MinimumCharacters=15
var Message="15 characters please! "
if(location.href.match(/\/post\//i)){
document.forms.posting.onsubmit=function(){
characters=document.forms.posting.post.value.length
if(characters<MinimumCharacters){
alert(Message)
return false
}else{
return true
}}}
//]]>
</script>
- Code:
if(location.href.match(/\/post\//i)){
document.forms.posting.onsubmit=function(){
characters=document.forms.posting.post.value.length
Re: [Problem]help me on alert code require minium character
what so what was the actual error message you were getting?
regards
Craig
regards
Craig
Guest- Guest
Re: [Problem]help me on alert code require minium character
I want to know what keywords are used in forumotion to replace the text in the code.
Re: [Problem]help me on alert code require minium character
Well the 'Key Words' are automatically selected by th most commonly searched for words on your forum,
If you want certain words to show up in keywords .... take 10 minutes of your day and paste in a list of words, Refresh your forum and you will see the list of words to type in slowly appear as it updates
That my friend would be the easier option as keywords constantly change
Hopefully this will help you out
Regards
Craig
If you want certain words to show up in keywords .... take 10 minutes of your day and paste in a list of words, Refresh your forum and you will see the list of words to type in slowly appear as it updates
That my friend would be the easier option as keywords constantly change
- Spoiler:
- However it need not be overcomplicated to do what Forumotion do with keywords, here is a code for keywords with the current selection on Forumotion that should work nicely in a widget, You will have to add your own links.
- Code:
<div class="inner">
<span class="corners-top">
<span>
</span>
</span>
<div class="h3">Keywords</div>
<p class="center">
<a href="" style="font-size: 15px;">the</a>
<a href="" style="font-size: 14.5px;">change</a>
<a href="" style="font-size: 17px;">add</a>
<a href="" style="font-size: 18px;">post</a>
<a href="" style="font-size: 11.5px;">flash</a>
<a href="" style="font-size: 10px;">new</a>
<a href="" style="font-size: 15.5px;">gallery</a>
<a href="" style="font-size: 16.5px;">points</a>
<a href="" style="font-size: 10.5px;">google</a>
<a href="" style="font-size: 12px;">domain</a>
<a href="" style="font-size: 16px;">delete</a>
<a href="" style="font-size: 19px;">music</a>
<a href="" style="font-size: 9.5px;">buttons</a>
<a href="" style="font-size: 20.5px;">HOW</a>
<a href="" style="font-size: 13px;">admin</a>
<a href="" style="font-size: 9px;">topic</a>
<a href="" style="font-size: 21px;">forum</a>
<a href="" style="font-size: 11px;">color</a>
<a href="" style="font-size: 13.5px;">ranks</a>
<a href="" style="font-size: 18.5px;">rank</a>
<a href="" style="font-size: 19.5px;">HTML</a>
<a href="" style="font-size: 12.5px;">sticky</a>
<a href="" style="font-size: 20px;">Portal</a>
<a href="" style="font-size: 17.5px;">chatbox</a>
<a href="" style="font-size: 14px;">chat</a>
<a href="" style="font-size: 8.5px;">make</a>
</p><span class="corners-bottom">
<span>
</span>
</span>
</div>
The Relevant Java script should also be- Code:
//<![CDATA[
$(document).ready(function(){});//]]>
//<![CDATA[
insert_search_menu_new();//]]>
//<![CDATA[
var agt = navigator.userAgent.toLowerCase();
var originalFirstChild;
var display = false;
function createPagination(which, string, x, y)
{
if ( display == true )
{
destroyPagination();
display = false;
}
else
{
display = true;
if (typeof(originalFirstChild) == "undefined")
{
originalFirstChild = document.body.firstChild;
}
x = document.all ? (event.clientX + document.body.scrollLeft) : x;
y = document.all ? (event.clientY + document.body.scrollTop) : y;
element = document.createElement("div");
element.style.position = "absolute";
element.style.zIndex = 1000;
element.style.visibility = "hidden";
excessWidth = 0;
excessHeight = 20;
element.innerHTML = '<table cellspacing="0" cellpadding="0" border="0" style="width:auto;"><tr><td><span class="gen">' + string + "</span></td></tr></table>";
renderedElement = document.body.insertBefore(element, document.body.firstChild);
renderedWidth = renderedElement.offsetWidth;
renderedHeight = renderedElement.offsetHeight;
overFlowX = x + renderedWidth + excessWidth - document.body.offsetWidth;
x = overFlowX > 0 ? x - overFlowX : x;
overFlowY = y + renderedHeight + excessHeight - window.innerHeight - window.pageYOffset;
y = overFlowY > 0 ? y - overFlowY : y;
renderedElement.style.top = (y + 15) + "px";
renderedElement.style.left = (x + 15) + "px";
if (agt.indexOf("gecko") != -1 && agt.indexOf("win") != -1)
{
setTimeout('renderedElement.style.visibility = "visible"', 1);
}
else
{
renderedElement.style.visibility = "visible";
}
}
}
function Pagination()
{
}
function do_pagination_start()
{
var start = document.go_page.start.value;
start = (start > 10) ? 10 : start;
start = (start - 1) * 30;
start = (isNaN(start) || start < 0 ) ? 0 : start;
self.location.href='search.forum?search_id=1712192392&search_current=domain&start='+start+'&sid=5ddd7b7be2a209f1f69bcc6ff0efac0c';
}
function destroyPagination()
{
if (document.body.firstChild != originalFirstChild)
{
document.body.removeChild(document.body.firstChild);
}
}
//]]>
//<![CDATA[
div_marquee('comments_scroll_div', 'comments_scroll_container', 'down', '2', '90', '300', 'genmed');//]]>
//<![CDATA[
fa_endpage();//]]>
This code means the more people search for words the sooner that word will appear in the Keywords section
Hopefully this will help you out
Regards
Craig
Guest- Guest
Re: [Problem]help me on alert code require minium character
Oh, you get wrong idea... , I want to know the keyword that name the post-box or message ... I need the code can be used in forumotion.
Similar topics
» Question : How to set the minium character in a post?
» Virus Alert big problem
» Need help with a character code
» Problem of Real time alert system
» Character Sheet Problem! Please help!
» Virus Alert big problem
» Need help with a character code
» Problem of Real time alert system
» Character Sheet Problem! Please help!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum