Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. This line: <strong>'.$xml->title.'</strong> should be: <strong>'.$title.'</strong>
  2. I don't mean to be a thread hi-jacker, but I'm interested to see what your working on. It sounds interesting. I tried to PM, but your inbox was full.
  3. Well, it was the first thing I thought of when looking at the images. I didn't look at the code.
  4. I use the following code to do what you are trying to do. The pages that are included in the list are in the separate file "menuList.inc.php". <?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } $fullURL = curPageURL(); if(!preg_match("|www|i","$fullURL")){ $parsedURL = parse_url($fullURL); $addWWWURL = $parsedURL['scheme'] . "://www." . $parsedURL['host'] . "/"; } require "menuList.inc.php"; $base=basename($_SERVER['PHP_SELF']); if ($base != 'index.php'){ $menu=preg_replace("|<li><a title=\"(.*)\"\shref=\"".$base."\">(.*)</a></li>|U", "<li id=\"active\"><a title=\"$1\" href=\"".$base."\" >$2</a></li>", $menu); }else{ if(preg_match("|www|i","$fullURL")){ $menu=preg_replace("|<li><a title=\"(.*)\"\shref=\"".$fullURL."\">(.*)</a></li>|U", "<li id=\"active\"><a title=\"$1\" href=\"".$fullURL."\" >$2</a></li>", $menu); }else{ $menu=preg_replace("|<li><a title=\"(.*)\"\shref=\"".$addWWWURL."\">(.*)</a></li>|U", "<li id=\"active\"><a title=\"$1\" href=\"".$addWWWURL."\" >$2</a></li>", $menu); } } $menu=preg_replace("|[\r\n\t]|", "", $menu); echo $menu; ?>
  5. try adding display:inline; to the effected divs. IE6 doubles the padding and margins of floated divs that have padding and margins that are on the same side such as: float: left; padding-left:10px; becomes 20px of padding in IE6 display:inline is a hack to make IE6 cooperate.
  6. He must be talking about the options form, because the navigation menu is nothing special. Read a little about AJAX basics, and something that that is fairly easy.... but actually since there is probably no reason to have a connection with the server, simple javascript is the solution.
  7. @ignace Progressive Enhancement is actually a term that I had never seen. I read a bit of the wiki, and while progressive enhancement seems geared towards browsers, SEO is obviously geared towards search engine bots. The strategy within progressive enhancement is very similar to the type of SEO that I have learned over time, if you consider that the search engine bot is the most basic of "browsers". In that regard, if more people were focused on writing good content, and spent less time making things sparkle, glitter, and shine, they would generally have a webpage that could be viewed in any browser, and it would naturally be well suited for a search engine bot to index. Bot's obviously look at image alt tags and look for alternate content within noscript tags, etc., but the actual text on the page has the highest value.
  8. You should declare media="screen" to your rcpd.css. Just because you have told browsers that your print.css file is for print media doesn't mean that the browsers fully understand that the rcpd.css isn't for print. Know what I mean? You might have some CSS creeping into your print preview from the rcpd.css.
  9. Sounds like you need a javascript forum if you are dealing with click events.
  10. You H1 tag should be the same as your title tag. Your site logo may also have an alt attribute that is identical, but this isn't necessarily going to be the case if you have more than a one page website. If you think of the way that you would write a report using word or a similar word processor, and consider the emphasis placed on the headers, then it should be easy to see how you would structure your "report". This is actually a great way start a website. Write the content, and then style it...
  11. Does it work as a regular php script, and just not in cron?
  12. see the online documentation: http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir This might help you too: http://www.php.net/manual/en/function.curl-setopt.php#79787
  13. You might have a duplicate content issue because claninfectionist.com and infectionist.com have the same content. You should redirect one to the other, and this might help out. Also, you should make a list of the top 10 things that you would expect to be in the rankings for. Number one should be the title of your page, and be the H1 tag of your page. This specific keyword or phrase should be found in the content of your page as many times as possible without being annoying. After that, the other keywords or phrases on your list should be included in the content of your page in decreasing frequency to that of the main keyword/phrase. You should use CSS to put non-relevant content, such as your menu, down at the bottom of the code. It will obviously still appear at the top of the page when viewed, but the code will be lower than the actual content. A search engine bot likes to see content first, and a menu isn't content. You are using a table based layout, which can also slice and dice your content and put it in an order that is not necessarily the order that you would expect your page to be read by a search engine bot. Pretend for a minute that a search engine bot is a blind person who has a device that reads the screen content in the order that it appears in the code. Your code is nearly worthless. Remember that they want to see content organized like a report you did in high school. Title -> Header -> paragraph paragraph etc etc etc. If you turn off CSS, Javascript, Images, and Flash, what is left for your user to "see"? Multiple word keywords in your META keywords tag should be enclosed in single quotes like ( one, 'two words', three) Your META description tag is not nearly as descriptive as it should be. This should be more like a small paragraph, and not a short sentence. The best thing you could do for yourself is learn CSS/XHTML design and keep the most important content as high up in the code as possible.
  14. You can do something like this: curl_setopt($ch, CURLOPT_POSTFIELDS, array('cat1'=>"washington", 'cat2'=>"jefferson", 'cat3'=>"adams", 'cat4'=>"lincoln", 'cat5'=>"roosevelt", 'cat6'=>"clinton", 'cat7'=>"bush", 'cat8'=>"reagan")); but if you are trying to send an array as a post var, I don't think that is possible.
  15. I think one of the best SEO "tricks" is to have clean XHTML content. If you look at a website that separates it's content from its style, the content is report-like in nature. For instance, if you take a look at www.csszengarden.com, and any of the different styles that have been applied to its content, and then turn off the style, the result is a pure report-like web page. In Firefox you can use view->style->no style to turn off the style of a page, but to really see what googlebot or the other bots are seeing, you need to turn off javascript, images, and Flash also. I know that Adobe and Google have been working on ways that Google can index Flash content, but being able to provide alternate content has always been an option. The same goes for javascript and images. Noscript tags and alt attributes have long been the friend of the SEO conscious web developer. A great book that I recommend to anyone learning SEO is called "Web Standards Design Guide" by Kevin Ruse. While the book isn't specifically about SEO, understanding the book and applying it to your websites will greatly increase the SEO scores/rankings, probably more so than many techniques you will learn elsewhere.
  16. I'm sure to some degree having html that validates is beneficial, but it seems obvious that an error or warning here or there doesn't mean much. That said, I believe that having true XHTML/CSS markup vs. table based layout is essential for SEO. Get the real content as close to the top as possible.
  17. I also disagree with some of the advice in the original post. Deceptive tactics for trying to beat the bots can get you in trouble with Google. I am for un-stickying the thread, or at least modifying it.
  18. Why reinvent the wheel? Theres a link to a nice script on the php.net getmxrr() page that I've been using.
  19. You might try reversing your single and double quotes in your sql statement: $sql='INSERT INTO mailRecord(name, sender, phone, subject, fax, message) VALUES("$name", "$sender", "$phone", "$subject", "$message")'; and the table name and fields may be case sensitive.
  20. So if in your form you have selected="selected" set to a null value or placeholder, when the form is processed, you will redirect the user back to the form if the null value or placeholder was posted because it is not in the array of acceptable values. For instance, consider that the value of $model = null: $model_possibilities = array("1","2","3","4","5","6-10","11-15","16+","dont_know"); if(in_array("{$_POST['model']}", $model_possibilities)){ $model = $_POST['model']; }else{ //redirect back to the form... }
  21. It's hard to say what is wrong without seeing the login form, and the rest of your code
  22. You might try mod rewrite. Why is the http:// necessary?
  23. I think you need to try the -f option. I had mentioned this earlier: <?php mail('nobody@example.com', 'the subject', 'the message', null, '-fwebmaster@example.com'); ?>
  24. Finding a good host is not easy, because every one of them seems to have issues, but if this is a big issue to you, I'd think it might be easier to just move to another host. Also, if you call the host and tell them you are thinking about leaving because of this issue, they may be able to move you to a server that is managed differently. I did this with the host I use. When I signed up for an account, they said that sendmail wasn't available, but I had a choice to move to a different server that had sendmail enabled if I really needed to. I don't really need sendmail, but it's just so easy that I made sure they put me on the sendmail enabled server.
  25. if your using mysql, then just do a simple update to each row that needs to have the verified field set to no.
×
×
  • 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.