Jump to content

The Praetorian

Members
  • Posts

    333
  • Joined

  • Last visited

Posts posted by The Praetorian

  1. Okay, I'm still not getting it. Where exactly does the array go? Does it go above theif (isset part? And which part needs to be repeated?

    <?phpif (isset($_REQUEST['email'])){$name = $_REQUEST['name'];$username = $_REQUEST['username'];$age = $_REQUEST['age'];$gender = $_REQUEST['gender'];$nation = $_REQUEST['nation'];$guild = $_REQUEST['guild'];$history = $_REQUEST['history'];$writingsample = $_REQUEST['writingsample'];$alias = $_REQUEST['alias'];$agetwo = $_REQUEST['agetwo'];$icq = $_REQUEST['icq'];$aim = $_REQUEST['aim'];$msn = $_REQUEST['msn'];$email = $_REQUEST['email'];mail( "author@tsrealms.com", "Subject: $email","~Character Information~\r\n\r\n\r\n~Name~\r\n$name\r\n\r\n~User Name~\r\n$username\r\n\r\n~Age~\r\n$age\r\n\r\n~Gender~\r\n$gender\r\n\r\n~Nationality~\r\n$nation\r\n\r\n~Guild~\r\n$guild\r\n\r\n~Brief  History~\r\n$history\r\n\r\n~Writing Sample~\r\n$writingsample\r\n\r\n\r\n~Personal Information~\r\n\r\n\r\n~Name/Alias~\r\n$alias\r\n\r\n~Age~\r\n$agetwo\r\n\r\n~ICQ~\r\n$icq\r\n\r\n~AIM~\r\n$aim\r\n\r\n~MSN~\r\n$msn", "From: $email" );echo "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><hr class='blocktext' /><p class='blocktext'>Thank you for your application! One of the admins should be getting back to you via email within 24 hours.</p><hr class='blocktext' />";}else{echo "<form method='post' action='appmail.php' name='app' onSubmit='return CheckRequiredFields()'><br /><hr /><h2>~      Character Information      ~</h2><hr /><br /><br /><b>Name:</b><br /><input type='text' name='name' size='20'><br /><p>Please read the Naming guideline for the country you've chosen for your character. Or if you'd rather have the writing staff come up with an appropriate name for you, just put a ~ here.</p><br /><br /><b>User Name:</b><br /><input type='text' name='username' size='20'><br /><p>This will be your user name on the forum, so please make sure it's appropriate. If you leave this field blank then your character's name will be your user name.</p><br /><br /><b>Age:</b><br /><input type='text' name='age' size='2'><br /><br /><b>Male:</b><input type='radio' name='gender' value='Male'><br /><b>Female:</b><input type='radio' name='gender' value='Female'><br /><br /><b>Nationality:</b><br /><select name='nation'><option value=''></option><option value='Siik'>Siik</option><option value='Shuni'>Shuni</option><option value='Ithian'>Ithian</option><option value='Athwani'>Athwani</option><option value='Tuiani-iiken'>Tuiani - Iiken</option><option value='Tuiani-kiil'>Tuiani - Kiil</option></select><br /><br /><b>Pathfinders</b><br /><input type='checkbox' name='guild' value='Yes'><br /><p>Check this box if you would like your character to be a member of the Pathfinders. (<b>Required reading: </b><a href='laws.shtml' target='_blank'>Laws of the Deep</a>, <a href='pathfinders.shtml' target='_blank'>The Pathfinders</a>.)</p><br /><br /><b>Brief History:</b><br /><textarea name='history' rows='15' cols='60'></textarea><br /><br /><b>Writing Sample:</b><br /><textarea name='writingsample' rows='15' cols='60'></textarea><br /><br /><br /><hr /><h2>~      Personal Information      ~</h2><hr class='blocktext' /><br /><br /><b>Email:</b><br /><input name='email' type='text' size='20'><br /><p>Needless to say, please make sure your email is correct, otherwise you could be waiting a long time to hear back from us.</p><br /><br /><b>Name/Alias:</b><br /><input name='alias' type='text' size='20'><br /><p>This isn't a required field. If you want to put your first name here you can, or you can put a nickname you'd like people to use. It's entirely up to you.</p><br /><br /><b>Age:</b><br /><input name='agetwo' type='text' size='2'><br /><p>Please be honest. None of this information will be given out to anyone but Admin.</p><br /><br /><b>ICQ:</b><br /><input type='text' name='icq' size='20'><br /><br /><b>AIM:</b><br /><input type='text' name='aim' size='20'><br /><br /><b>MSN:</b><br /><input type='text' name='msn' size='20'><br /><br /><hr /><br /><br /><input type='submit' value='Apply'></form>";}?>

  2. Except for everything being slightly larger on IE than on FF, the website looks exactly the same to me. Are you seeing a positioning difference? Is the difference on a specific page other than the home page?Don't know if anyone else sees anything different. As for the size, I don't really know what to tell you. Everything looks bigger in IE for my website as well. It's because for certain size things... em, cm, and percents, I believe, IE reads them differently than every other browser. I could be wrong about some of those, but I'm pretty sure it's something to do with them reading the size attributes differently.

  3. Hm. I'll give that a try. How do I add multiple fields, though? Would it be like this?

    $validate=$_POST['NAMEOFFEILD'];$validate=$_POST['NAME of second field'];if ($Validate== ){echo "Error";}

    Or would I need to just repeat the whole array for each field?Also.. does the code need to be embedded in the form php? Or would I need a separate <?php and stuff for it?

  4. Anyone ever seen this before?<embed allowScriptAccess="never"src="http://www.tsrealms.com/Music/The%20Riddle.mp3" width="144" height="60" autostart="true" loop="true" hidden="true">Is it javascript, or html? It seems to work on my page by adding background music. I was just curious what type is. So I can find out if there's anyway to put this in my css instead so it can appear on all the pages. And that way the music won't start over when the page refreshes or they navigate within the website..

  5. 2 very different groups of devlopers are making those votes. Goes to show some of us are visually and creatively inclined while others of us are more procedural and text based.
    Well, technically speaking, with the exception of image editing, anything that can be done from Dreamweaver can be done with a plain-text editor. It's just a matter of if you know the codes or not. From what I understand of it Dreamweaver just does the coding for you.I personally consider myself creatively inclined and visual, yet I still choose to use notepad2 and do everything by hand, rather than let a program do it, because I prefer to know exactly what goes into the design of my website. Also, if anything ever happens to the program, or if for any reason it becomes unaccessable, I'm not left stranded with no way to edit my website.Not that that would happen to anyone here. Most of the people around here seem to have a good handle on both. Long story short, I prefer to be hands on, even if it takes longer.And frankly speaking, I prefer that it takes longer because.. well.. i have no life. heh.
  6. It still doesn't seem to work that way. Originally the tag was supposed to change the text of a link, so I just changed the tag type to replace (from 'a' to 'div', and then changed the text to be replaced). But that didn't work.Here's the css that I have and am allowed to adjust.

    a{color: #000000;text-decoration: underline;}.module_heading{background:#000000;color:#BDB76B;font-family:verdana;font-size:14px;width:250;padding:4px;margin:2px;border:1 #3399FF solid;text-alignment: left;} .module_content{background:#66CC66;color:#000000;font-family:verdana;font-size:12px;width:250;padding:4px;margin:2px;border:1 #3399FF solid;text-alignment: left;} .nublog_title{background:#000000;color:#00CED1;font-family:verdana;font-size:14px;width:550;padding:4px;margin:2px;border:1 #3399FF solid;text-alignment: left;} .nublog_date{background:#696969;color:#00CED1;font-family:verdana;font-size:12px;width:550;padding:4px;margin:2px;border:1 #3399FF solid;text-alignment: left;}.nublog_entry{background:#696969;color:#00CED1;font-family:verdana;font-size:12px;width:550;padding:4px;margin:2px;border:1 #3399FF solid;text-align: left;} body{background: #000000;background-image: url("http://www.tsrealms.com/background.jpg");background-attachment:fixed;}img.background{attachment:fixed;width:100%;height:100%;}

    And here's the html straight from the source code. Near as I can tell, this is the html that I'm trying to adjust. Now bear in mind that I do not have access to the html. Only to the css.

    <table border=0 cellspacing=0 cellpadding=0 id=nuTable><tr><td valign=top><div class=module_heading>Recently Added</div><div class=module_content></div></td><td valign=top width=100%><div class=nublog_title> Praetorian's Reading Room </div><div class=nublog_date>   </div><div class=nublog_entry><table border=0 class=reading><tr><td><b>Title</td><td><b>Author</td></tr>	</table></div></td></tr></table></div> </td></tr></table> </td></tr></table> </td></tr></table> </td></tr></table></div></div></div></div><title> NuTang.com • Praetorian's Weblog Site  </title>

  7. Okay, I don't know anything about javascript. But I'm using this blog, and I'm trying to use javascript to replace the text in a div. (Which is what the person running the site told me to do.)This is the script.

    <script>  var links = document.getElementsByTagName ('div.nublog_title'); for (var l = 0; l < links.length; l++) { str = links[l].innerHTML; if (str.match (/Praetorian's Reading Room/i)) links[l].innerHTML = str.replace (/Praetorian's Reading Room/i, "The Library of Cira Karohn"); } </script>

    And here's the link. My blog

  8. I get a similar problem, although never on my computer. Sometimes on the computer at work, when I enter the url of my website, entering it with the www will give me a 404 error, but entering it without will take me straight to the page...?

  9. And what I meant, Virtualadz, was the url you're entering into your browser to get to your site. If you have it bookmarked with www's, and you click the anchor link, it's going to refresh because for some reason the anchor link re-loads the page without the www's. Understand?

  10. Okay. I see something that might be causing this problem. If the url is this...http://www.domain.com/file.php#whatever, and you click any of the scroll links on your page, it's going to refresh because it's taking you to a page with the same link (or maybe a different #whatever) but it's taking out the www. I don't know why it's doing this, frankly, but someone else might. Try entering the url without the www's, and see if it refreshes on your first visit.You other guys will see what I mean if you enter the url with the www's, and then click a scroll link.

  11. That's really weird. Not really sure what to tell you. Times validates on my css... so.. You may just have to wait until you can test it from a server. The weird thing is... it's giving that warning at line 7... and your font-family is listed on line 2...Try serif instead of times. And you don't really need the " around verdana. I don't know why I put them there. You only really need those when the font name is more than one word.This is how I have my fonts listed, and I don't get that warning."font-family: "MS PMincho", serif, times;"

  12. Ah. Gotcha. Here's that then.

    #!/usr/bin/perl -w################################################## Meta Blaster Meta Tag Generator & Manager v1.0# Copyright © 2004 EliteCGI.COM#################################################use CGI::Carp qw(fatalsToBrowser);use Cwd;$dir = getcwd;&Get_Config;### Print Content Header Informationprint "Content-type: text/html\n\n";### Set Script Variables$webpage = $ENV{'REQUEST_URI'};@INDAT = split(/\?/,$webpage);if ($INDAT[0] =~ /\/$/){ $INDAT[0] = $INDAT[0] . $Config[1];}$INDAT[0] =~ s/\//%2F/g;$filemask = $dir . '/data/' . $INDAT[0] . '.dat';$| = 1;### Execute Page Lookup Function&Locate_Page();### Output Meta Tags for Page&Generate_Tags();# End Main Programend;################################################## Get script configuration data#################################################sub Get_Config{        my @TEMP;        my $hit;        open (CONFIG, "$dir/elite.cfg") || die "Can't open configuration file!\n";        @TEMP = <CONFIG>;        close (CONFIG);        foreach $hit(@TEMP)        {        chomp($hit);        @Config = split(/;/,$hit);}}################################################## Locate Page Function################################################## This function accesses the local database and # attempts to find the calling page. If the page# is located it loads the meta information from # the database. If the page can't be found then# the page is added to the database and default # meta tags are used initially.#################################################sub Locate_Page {if (-e "$filemask") {open(FHANDLE, "$filemask") || die "Cant open $filemask\n\n";$TAG_STATUS = <FHANDLE>;       #Are the meta tags default/custom 0/1 chomp ($TAG_STATUS);$META_TITLE = <FHANDLE>;       #The Page Tile chomp ($META_TITLE);$META_DESCRIPTION = <FHANDLE>; #Page Description chomp ($META_DESCRIPTION);$META_KEYWORDS = <FHANDLE>;    #Keywords chomp ($META_KEYWORDS);$META_ABSTRACT = <FHANDLE>;    #Abstract Description chomp ($META_ABSTRACT);$META_AUTHOR = <FHANDLE>;      #Author chomp ($META_AUTHOR);$META_COPYRIGHT = <FHANDLE>;   #Copyright Info chomp ($META_COPYRIGHT);$META_ROBOTS = <FHANDLE>;      #Robot Instructions chomp ($META_ROBOTS);$META_REVISIT = <FHANDLE>;     #Revisit Length chomp ($META_REVISIT);$META_DISTRO = <FHANDLE>;       #Distribution chomp ($META_DISTRO);$META_LANGUAGE = <FHANDLE>;     #Page Language chomp ($META_LANGUAGE);$META_LANGUAGE = substr ($META_LANGUAGE, 0, 2);$META_EXPIRES0 = <FHANDLE>;     #Page Expires chomp ($META_EXPIRES0);$META_EXPIRES1 = <FHANDLE>;     #Page Expires chomp ($META_EXPIRES1);$META_EXPIRES2 = <FHANDLE>;     #Page Expires chomp ($META_EXPIRES2);$META_EXPIRES3 = <FHANDLE>;     #Page Expires chomp ($META_EXPIRES3);$META_EXPIRES4 = <FHANDLE>;     #Page Expires chomp ($META_EXPIRES4);$META_REFRESH = <FHANDLE>;      #Refresh To... chomp ($META_REFRESH);$META_REFRESH_TIME = <FHANDLE>; #Refresh To... chomp ($META_REFRESH_TIME);$NO_CACHE = <FHANDLE>;          #Cache.. chomp ($NO_CACHE);close(FHANDLE);} else {   open (DEFAULT, "$dir/data/MB.DAT") || die "Default meta tag file can't be accessed\n\n";@DEFAULT_DATA = (<DEFAULT>);  close(DEFAULT);  open(FHANDLE, ">$filemask") || die "Cant create new page data file\n\n";     foreach $key (@DEFAULT_DATA){     chomp($key);     print FHANDLE"$key\n";}  close(FHANDLE);if ($cnt > 2){ print "Script loop error, terminating process."; exit; } $cnt++;&Locate_Page()}}################################################# Generate Tags Function################################################# This function correctly formats and outputs  # the meta tags for the calling page. ################################################sub Generate_Tags {if ($META_TITLE) { $META_TITLE = '<TITLE>' . $META_TITLE . "</TITLE>\n";}if ($META_DESCRIPTION) { $META_DESCRIPTION = '<META NAME="DESCRIPTION" CONTENT="' . $META_DESCRIPTION . "\">\n";}if ($META_KEYWORDS) { $META_KEYWORDS = '<META NAME="KEYWORDS" CONTENT="' . $META_KEYWORDS . "\">\n";}if ($META_ABSTRACT) { $META_ABSTRACT = '<META NAME="ABSTRACT" CONTENT="' . $META_ABSTRACT . "\">\n";}if ($META_AUTHOR) { $META_AUTHOR = '<META NAME="AUTHOR" CONTENT="' . $META_AUTHOR . "\">\n";}if ($META_COPYRIGHT) { $META_COPYRIGHT = '<META NAME="COPYRIGHT" CONTENT="' . $META_COPYRIGHT . "\">\n";}if ($META_ROBOTS) { $META_ROBOTS = '<META NAME="ROBOTS" CONTENT="' . $META_ROBOTS . "\">\n";}if ($META_REVISIT) { $META_REVISIT = '<META NAME="REVISIT-AFTER" CONTENT="' . $META_REVISIT . "\">\n";}if ($META_DISTRO) { $META_DISTRO = '<META NAME="DISTRIBUTION" CONTENT="' . $META_DISTRO . "\">\n";}if ($META_LANGUAGE) { $META_LANGUAGE = '<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="' . $META_LANGUAGE . "\">\n";}if ($META_EXPIRES0 && $META_EXPIRES1 && $META_EXPIRES2 && $META_EXPIRES3 && $META_EXPIRES4) { $META_EXPIRES =  "<META NAME=\"EXPIRES\" CONTENT=\"$META_EXPIRES0, $META_EXPIRES1 $META_EXPIRES2 $META_EXPIRES3 $META_EXPIRES4 GMT\">\n";}if ($META_REFRESH && $META_REFRESH_TIME) { $META_REFRESH = '<META HTTP-EQUIV="REFRESH" content="' . $META_REFRESH_TIME . ';URL=' . $META_REFRESH . "\">\n";}if ($NO_CACHE eq "On") { $NO_CACHE = '<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">' ."\n". '<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">' ."\n";}print $META_TITLE;print $META_DESCRIPTION;print $META_KEYWORDS;print $META_ABSTRACT;print $META_AUTHOR;print "<META NAME=\"GENERATOR\" CONTENT=\"(EliteCGI.com)[MetaBlaster V1.0]\">\n";print $META_COPYRIGHT;print $META_ROBOTS;print $META_REVISIT;print $META_DISTRO;print $META_LANGUAGE;print $META_EXPIRES;print $META_REFRESH;print $NO_CACHE;}

  13. Yuval, try it with times, not arial. The validator doesn't seem to like arial. I used times, and that particular error went away. Also, add the same font-family values to each of the mentioned elements, and all your warnings should go away.(body, .sendtext, .sendbutton)Are you using that url to try and validate your css? If your server isn't working, there should be an option to just copy/paste your css into the validator to check it that way. That may be why it isn't validating.

×
×
  • Create New...