Radar
Junior Member
Posts: 3
Registered: 8/15/2005
Location: Utah
Member Is Offline
|
| posted on 8/16/2005 at 12:22 AM |
|
|
Big Code!
Okay I've got some forums on Invisionfree that I am writing a program to act as an application for staff. There is a problem with the way it's
working though.
What it should do is PM the contents of the application to the administrator(this works), and also carbon copy the application to all of the
co-admins. I can only get it to send it to one and none of the others.
See the problem that i'm running into here is, the actual text area on the PM form that my program runs off of, requires each name to be on it's own
line and i can't figure out how to get it to do that.
[doHTML]
<TABLE>
<HTML>
<BODY>
<td id="ucpcontent" valign="top">
<script language="javascript1.2" type="text/javascript">
<!--
var MessageMax = "";
var Override = "";
MessageMax = parseInt(MessageMax);
if ( MessageMax < 0 )
{
MessageMax = 0;
}
function emo_pop()
{
window.open('index.php?act=legends&CODE=emoticons&s=','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
}
function bbc_pop()
{
window.open('index.php?act=legends&CODE=bbcode&s=','Legends','width=700,height=500,resizable=yes,scrollbars=yes');
}
function CheckLength() {
MessageLength = document.REPLIER.Post.value.length;
message = "";
if (MessageMax > 0) {
message = "Post: The maximum allowed length is " + MessageMax + " characters.";
} else {
message = "";
}
alert(message + " So far, you have used " + MessageLength + " characters.");
}
function ValidateForm(isMsg) {
MessageLength = document.REPLIER.Post.value.length;
errors = "";
if (isMsg == 1)
{
if (document.REPLIER.msg_title.value.length < 2)
{
errors = "You must enter a message title";
}
}
if (MessageLength < 2) {
errors = "You must enter a message to post!";
}
if (MessageMax !=0) {
if (MessageLength > MessageMax) {
errors = "The maximum allowed length is " + MessageMax + " characters. Current Characters: " + MessageLength;
}
}
if (errors != "" && Override == "") {
alert(errors);
return false;
} else {
document.REPLIER.submit.disabled = true;
return true;
}
}
// IBC Code stuff
var text_enter_url = "Enter the complete URL for the hyperlink";
var text_enter_url_name = "Enter the title of the webpage";
var text_enter_image = "Enter the complete URL for the image";
var text_enter_email = "Enter the email address";
var text_enter_flash = "Enter the URL to the Flash movie.";
var text_code = "Usage: [CODE] Your Code Here.. [/CODE]";
var text_quote = "Usage: [QUOTE] Your Quote Here.. [/QUOTE]";
var error_no_url = "You must enter a URL";
var error_no_title = "You must enter a title";
var error_no_email = "You must enter an email address";
var error_no_width = "You must enter a width";
var error_no_height = "You must enter a height";
var prompt_start = "Enter the text to be formatted";
var help_bold = "Insert Bold Text (alt + <!--emo&B)--><img src='http://69.93.183.37/html/emoticons/cool.gif' border='0'
style='vertical-align:middle' alt='cool.gif' /><!--endemo-->";
var help_italic = "Insert Italic Text (alt + i)";
var help_under = "Insert Underlined Text (alt + u)";
var help_font = "Insert Font Face tags";
var help_size = "Insert Font Size tags";
var help_color = "Insert Font Color tags";
var help_close = "Close all open tags";
var help_url = "Insert Hyperlink (alt+ h)";
var help_img = "Image (alt + g) [*IMG]http://www.dom.com/img.gif[*/IMG]";
var help_email = "Insert Email Address (alt + e)";
var help_quote = "Insert Quoted Text (alt + q)";
var help_list = "Create a list (alt + l)";
var help_code = "Insert Monotype Text (alt + p)";
var help_click_close = "Click button again to close";
var list_prompt = "Enter a list item. Click 'cancel' or leave blank to end the list";
//-->
</script>
<script language='javascript' type="text/javascript">
<!--
function find_users()
{
url = "index.php?act=legends&CODE=finduser_one&s=&entry=textarea&name=carbon_copy&sep=line";
window.open(url,'FindUsers','width=400,height=250,resizable=yes,scrollbars=yes');
}
//-->
</script>
<form action="http://s10.invisionfree.com/creative_Elements/index.php?" method="post" name='REPLIER' onsubmit='return
ValidateForm(1)'>
<input type='hidden' name='act' value='Msg' />
<input type='hidden' name='CODE' value='04' />
<input type='hidden' name='MODE' value='01' />
<input type='hidden' name='OID' value='' />
<input type='hidden' name='from_contact' value='radar' />
<input type='hidden' name='carbon_copy' value='test' & \n & 'Jules' />
<table width="100%" cellspacing="0">
<tr>
<td colspan='2' class='pformstrip'>Validation Title</td>
</tr>
<tr>
<td class="pformleft"><b>Title</b></td>
<td class="pformright"><input type='text' name='msg_title' size='40' tabindex="2" maxlength='40' value='' class='forminput'
/> <-Put your position here</td>
</tr>
<tr>
<td colspan="2" class='pformstrip'>Enter your application</td>
</tr>
<tr>
<td class='pformleft'>
<table class='tablefill' cellpadding='4' align='center'>
</tr>
</table>
<td class="pformright" valign='top'><textarea cols='70' rows='15' name='Post' tabindex='3'
class='textinput'></textarea></td>
</tr>
<tr>
<td class='pformstrip' align='center' colspan='2'>
<input type="submit" value="Send Validation" tabindex="4" accesskey="s" class='forminput' name='submit' />
</td>
</tr>
</table>
</form> </td>
</tr>
</table>
</BODY>
</HTML>
</TABLE>
[/doHTML]
Any help on this is greatly appreciated!
|
|
|
|