Jump to content

justravis

Members
  • Posts

    115
  • Joined

  • Last visited

Everything posted by justravis

  1. When I try to minify code, this line... setInfoWindowContent( marker, wpslLabels.startPoint, infoWindow, currentMap ); gets this error.. Unexpected token punc «(», expected punc «:» Any thoughts? THANKS!
  2. Reduce your screen size to 979px wide and check out this url: http://104.152.109.3/~barrelomonkeyz89/__sites/plastic/ How can I stop the newsletter div from overlapping those images? (I've tried inserting a clear div and overflow.) THANKS!
  3. Would you know why the bottom border appears on the nested ul's (line 36) instead of the parent ul (line 10)? THANKS! * { margin: 0; padding: 0; } body { background: black; } nav ul { list-style: none; border-bottom: 1px solid #404040; } nav li { position: relative; float: left; /* Width for About, Graphic Design & Contact */ width: 15%; } /* Width for Mobile Apps & Web */ nav li:nth-of-type(3), nav li:nth-of-type(4) { width: 27.5%; } nav a { color: #404040; font-size: 1.5em; font-weight: bold; text-decoration: none; display: block; } nav ul ul { /*display: none;*/ position: absolute; z-index: 99; } nav li li { width: inherit; float: none; } nav li li a { font-size: 1.25em; } <!DOCTYPE HTML> <html> <head> <title>PowerON Technologies - San Diego-Based Graphic Design, Mobile App & Web Development Firm</title> <!-- HTML5Shiv helps older browsers display HTML 5 elements. --> <!--[if lt IE9]> <script src="_js/html5shiv.js"></script> <![endif]--> <!-- /HTML5Shiv --> <!-- CSS --> <!-- Normalize.css makes tags look the same in all browsers --> <link href="_css/normalize.css" type="text/css" rel="stylesheet"> <link href="_css/styles.css" type="text/css" rel="stylesheet"> <!-- /CSS --> <!-- JavaScript --> <script src="_js/jQuery.js" type="text/javascript"></script> <script src="_js/scripts.js" type="text/javascript"></script> <!-- /JavaScript --> </head> <body> <!-- NAV BAR --> <nav> <ul> <li><a href="#">About</a></li> <li> <a href="#">Graphics</a> <ul> <li><a href="#">SAIC</a></li> <li><a href="#">YouthBuild</a></li> </ul> </li> <li> <a href="#">Mobile Apps</a> <ul> <li><a href="#">Big Brothers Big Sisters</a></li> <li><a href="#">YMCA</a></li> </ul> </li> <li> <a href="#">Web</a> <ul> <li><a href="#">Challenged Athletes Foundation</a></li> <li><a href="#">Make-A-Wish Foundation</a></li> <li><a href="#">Turning The Hearts Center</a></li> </ul> </li> <li><a href="#">Contact</a></li> </ul> </nav> <!-- /NAV BAR --> </body> </html> index.zip
  4. In CSS, most people add most styling to the A tag instead of UL or LI. Do you know why?
  5. btw, in the DOMPDF config file: define("DOMPDF_ENABLE_REMOTE", true); and in my php ini: allow_url_fopen On On
  6. I want to be able to enter a url and have it converted to pdf. Since I have a shared hosting account without access to PDFLib or compilers to install software, my options seem limited. FPDF's documentation says it will not serve this purpose. DOMPDF sounds like a good fit, but... <?php require_once("dompdf_config.inc.php"); //include dompdf config $old_limit = ini_set("memory_limit", "16M"); $dompdf = new DOMPDF(); //$dompdf->load_html("YOUR HTML TEXT"); $dompdf->load_html_file('http://www.reuters.com/finance/stocks/companyProfile?rpc=66&symbol=SNE'); $dompdf->set_paper("PAPER SIZE HERE", "ORIENTATION HERE"); $dompdf->render(); $dompdf->stream("dompdf_out.pdf"); exit(0); ?> returned -> http://powerontechnologies.com/_functions/php/pdf/dompdf/TEST.php What do you reccomend?? THANKS!
  7. OOPS...i copied & pasted second attempt with file_get_contents() original code: <?php readfile('http://byuhonorcode.spreadshirt.com/'); ?>
  8. i'm trying to import my print-on-demand shop without using frames. pg i'm importing - http://byuhonorcode.spreadshirt.com/ my site - http://byuhonorcode.com/index2.php <?php $pg=file_get_contents('http://byuhonorcode.spreadshirt.com/'); echo $pg; ?> the page appears, but the these features no longer function: - switchColor javascript changes shirt color onClick of swatch (located @ http://cache.spreadshirt.com/Public/Shop/Js-packaged/shop_de23789016327809b00d204c6add79ba.js) - the arrows that change the color swatches - the size option box any ideas? Thanks!
  9. i dont hav ssh access...u know how to determine file ownership from cpanel? just realized if i manually pass the url to str_replace(), i dont get the error: echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/highlight_file.php'); echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/arrays/multidim.php'); the error comes up when i submit the url in the form and pass it in the variable $path
  10. i'm trying to strip out the first part of the url. i tried submitting 'http://ref.potech.com/php/test.php' Any ideas? Thanks! <html> <body> <?php if($path) { $path=str_replace('http://ref.potech.com/php/', '', $path); echo $path; echo '<br><br>'; } ?> <form action=<?php echo $PHP_SELF ?> method=get> <b>PHP File URL (w/o 'http://'):</b> <input type=text name=path id=path> <input type=submit name=submit id=submit value=Submit> </form> </body> </html> Error Page for the Page Coded Above:
  11. Has anybody tried asking the visitor to enter the CAPTCHA backwards? if the CAPTCHA says ABCD, the visitor should type DCBA.
  12. Yes, i assumed it was some type of spambot, but the message was gibberish. The link doesn't work. I think it is some bot testing the server. Does my code for the form contain any obvious security leaks? THANKS!
  13. I periodically receive these weird emails from our web form. from: ntcmbhn <crzqhz@idotvx.com> subject: ADA Web: IuPyKAxHvWGq Body: ylMS24 <a href="http://bvzyhqvdnrkq.com/">bvzyhqvdnrkq</a>, aecoaxaxwnpr, [link=http://yanczwljvulo.com/]yanczwljvulo[/link], http://wughqztmyzta.com/ I don't BELIEVE this is disrupting any legitimate submissions. Besides having random text inside an image for them to retype, how can i avoid this? Or do you see anything wrong with my code? Thanks for your time! <?php if($_POST[send]) { $arrErrs=chkusual(); if(!$arrErrs) { if(!$_POST[recipient]) { $to='Able-Disabled Advocacy '; #$to.='<test@powerontechnologies.com>'; $to.='<ada@able2work.org>'; } else { $to=$_POST[recipient] . '@able2work.org'; } $subj="ADA Web: $_POST[subj]"; $msg=$_POST[msg]; $sent=mail($to, $subj, $msg, "From: $_POST[name] <$_POST[email]>"); $autoto=$_POST[email]; $autosubj='Thank you for contacting Able-Disabled Advocacy!'; $automsg='We appreciate you taking the time to visit our website. A staff member will reply to your email shortly.'; $autosent=mail($autoto, $autosubj, $automsg,"From: $to"); } } ?> <html> <body> <?php if($sent && $autosent) { echo "$autosubj<br />\n"; } else { ?> If you would like to send us an email, please submit the form below.<br /> <form action='<?php echo $PHP_SELF ?>' method='post' /> <input type=hidden name=reqTypeNotArr id=reqTypeNotArr value="recipient,Please choose a recipient;name,Please enter your name;email,Please enter your email address;msg,Please enter a message"> <input type=hidden name=reqEmail id=reqEmail value="email"> <table> <tr> <td width=10px valign=top> Recipient: </td> <td> <select name='recipient' id='recipient'> <option value=''>Select A Recipient</option> <option value=elaine>Cooluris, Elaine - Executive Director</option> <option value=bob>Eagleman, Bob - Director of Operations</option> <option value=jacki>Farrington, Jacki - YouthBuild Program Manager</option> <option value=luis>Gallegos, Luis - Director of Information Technology</option> <option value=cindy>Lennon, Cindy - PWI Program Director</option> <option value=travis>Perreira, Travis - Special Projects Coordinator & Webmaster</option> <option value=denise>Yoggerst, Denise - Special Projects Manager</option> </select> <?php outerrs('recipient', $class='err', $startbr=1) ?> </td> </tr> <tr> <td> Your Name: </td> <td> <input type='text' name='name' id='name' value="<?php echo $_POST[name] ?>"/> <?php outerrs('name', $class='err', $startbr=0) ?> </td> </tr> <tr> <td valign=top> Your Email: </td> <td> <input type='text' name='email' id='email' value="<?php echo $_POST[email] ?>"/> <?php outerrs('email', $class='err', $startbr=0, $endbr=1) ?> </td> </tr> <tr> <td> Subject: </td> <td> <input type='text' name='subj' id='subj' value="<?php echo $_POST[subj] ?>"/> </td> </tr> <tr> <td colspan=2> Message:<br /> <?php outerrs('msg', $class='err', $startbr=0) ?> <textarea cols=40 rows=5 name='msg' id='msg'><?php echo $_POST[msg] ?></textarea><br /> </td> </tr> <tr> <td colspan=2 align=center> <input type='submit' name='send' id='send' value='send'> </td> </tr> </table </form> </body> </html>
  14. That article is a great resource, but I don't think it's what I'm looking for. Now I am realizing I forgot some important details in my initial post. The template adds header and footer code to the content in each page, which in my example, is index.html. SORRY for the ommision. Is this still related to mod_rewrite? THANKS!
  15. The actual template is in a .tpl file and all the urls look like http://abc.org/template.php/index.html. At the top of each pg is: <head> <link href="http://www.abc.org/index.php/style.css" rel="STYLESHEET" type="text/css"> </head> How do I find out more about this method of utilizing a template? What is it even called?!?! THANKS!!!
  16. Haku, U always have the answer. Although I'm still fuzzy on 1 point. In addition to putting it on each page, should I make it an apache handler AND mime type? Thanks.
  17. What is the best way to declare character encoding - in page or at server level? If at the server level, do I include 'text/html; charset=ISO-8859-1' as an apache handler or mime type? Furthermore, if I attached them to php files, wouldn't it see the code as text instead of rendering the php? Thank You.
  18. o god..i was way off. thx for the html dog recomendation.
  19. CSS is not exactly my strength. If I want the menu links to be different than any other links, don't I need to use span tags? Thanks.
  20. Good point. I will keep that in mind in the future. Now I am only concerned with the text-direction not working in FF3 and hover not working in IE. Thanks.
  21. Links without underlines that turn white when hovered over. Thanks.
  22. http://able2work.org/about.pwr In FireFox 3, Text-Decoration is not working properly on the menu bar while the hover color change does not work in IE. Are there any workarounds for these issues? Thank You.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.