Jump to content

QuickOldCar

Staff Alumni
  • Posts

    2,972
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by QuickOldCar

  1. Looks and works pretty good. Some suggestions: Create a search for your videos. Make your site logo clickable back to your home page. Make video preview images clickable to your video pages. It was odd to see http://www.selfhelpvids.com/browse/1 versus only http://www.selfhelpvids.com/browse/, maybe can change it without page numbering and redirect to page 1 Your links for content are ok...I suppose...don't care for the number being included, might want to think of the future though and if really want those included in there when numbers begin to grow. Although this does help preventing a duplicate named post link. I guess it really depends just how many videos planning on doing. Video list page can become quite large if continue adding more videos. Category: Vids ยป Intelligence , does having Vids >> have any purpose? You may want your About and Contact page up top with the other tabs, could be missed in the footer. Those are my observations, not bad though.
  2. I agree with josh, and on top of that if fetch the page and host it....is almost like content theft, not to mention will have to fix all their relative urls for links to work the same.
  3. I noticed this, should only be one question mark to start the query, the rest should start with only & <a href="?page='.$x.'&?lookup='.$searchword.'"> You should filter/sanitize anything being inserted into mysql, is unsafe the way you have it. try mysql_real_escape_string() , and as can see on the page there this is a deprecated function, so should be using mysqli related functions versus mysql I made 2 pagination examples a while ago can look over if would help at all http://dyna.dyndns.tv/paginate/ and http://dynaindex.com/paginate/
  4. If those locations are correct, then I would make sure that the server you are on supports both those file mime types. AddType video/mp4 .mp4 AddType video/ogg .ogv
  5. It's called pagination, is an older tutorial here at phpfreaks about it. http://www.phpfreaks.com/tutorial/basic-pagination Someone should update that to mysqli versus mysql.
  6. The sitepress-multilingual-cms plugin is what is determining which flags and links to use, would need to edit that, or ask the developer of this plugin to incorporate some features.
  7. If posted a link to your site can possibly find it or what's producing the image.
  8. Do you create those urls? You should only put these characters in a url, or else have them % encoded ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=.
  9. After reading your post a few times i don't think code applies to what you wanted. What I did what link a banner to the current language page were on. I don't see your ribbons code anywhere.
  10. I experimented a few ways with exploding the current url but it can get messy dealing with pages and subdomains. Hopefully this way can work for you and modify to all your languages and where you store the banner images at. <?php $pageURL = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; if(preg_match("~/fr/~",$pageURL)){ $page_language = "fr"; }elseif(preg_match("~/it/~",$pageURL)){ $page_language = "it"; }else{ $page_language ="en"; } $banner_location = "http://".$_SERVER['SERVER_NAME']."/images/".$page_language.".png"; ?> <div id="inner_wraper"> <div class="menu_wrap"> <div id="header"> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'my_nav','sort_column'=>'menu_order' ) ); ?> </div> </div> <div class="clear"></div> <div class="slider_logo_wrap"> <div id="top_banner"> <a href="<?php bloginfo('url')?>/<?php echo $page_language."/";?>satisfaction-guarantee/"><img src="<?php echo $banner_location; ?>" alt=" "/></a> </div>
  11. LIKE is a simple search, using AND versus OR yields different results as well. If wanted a more advanced search try using full-text search in booleon mode http://dev.mysql.com/doc/refman/5.7/en/fulltext-boolean.html Somewhere here in phpfreaks is some examples and functions to help you along whichever method you decide on.
  12. Two ideas that come to mind. Start saving users with an autoincrement id,username,ip into a db, and call on that first. Some sort of login system used to determine guest or user, if is a user generate a guest_number incremented. Create sessions storing ip and datetime, set a cache expire on them, grab their real ip and use as the unique id.
  13. Any reason why I can't post the entire code in here mods? <?php function getparsedHost($new_parse_url) { if(!$new_parse_url){ return NULL; } if(!preg_match("~://~",$new_parse_url)){ $new_parse_url = "http://".$new_parse_url; } $parsedUrl = parse_url(trim(strtolower($new_parse_url))); $parsedUrl = str_replace("www.",'',$parsedUrl); return trim($parsedUrl['host'] ? $parsedUrl['host'] : array_shift(explode('/', $parsedUrl['path'], 2))); } //Parsing hosts from array in a loop example: $url_array = array("google.com","http://google.com","http://images.google.com","google.com/images","ftp://cdn.google.com","HTTP://WWW.GOOGLE.COM","","http://google.co.uk/images","blah.blah.blah.blah"); foreach($url_array as $urls){ echo getparsedHost($urls)."<br />"; } ?>
  14. No idea why the rest of code didn't post, i surely like the old way here on phpfreaks. <?php function getparsedHost($new_parse_url) { if(!$new_parse_url){ return NULL; } if(!preg_match("~://~",$new_parse_url)){ $new_parse_url = "http://".$new_parse_url; } $parsedUrl = parse_url(trim(strtolower($new_parse_url))); $parsedUrl = str_replace("www.",'',$parsedUrl); return trim($parsedUrl['host'] ? $parsedUrl['host'] : array_shift(explode('/', $parsedUrl['path'], 2))); } //Parsing hosts from array in a loop example: $url_array = array("google.com","http://google.com","http://images.google.com","google.com/images","ftp://cdn.google.com","HTTP://WWW.GOOGLE.COM","","http://google.co.uk/images","blah.blah.blah.blah");
  15. A simple example and function. <?php function getparsedHost($new_parse_url) { if(!$new_parse_url){ return NULL; } if(!preg_match("~://~",$new_parse_url)){ $new_parse_url = "http://".$new_parse_url; } $parsedUrl = parse_url(trim(strtolower($new_parse_url))); $parsedUrl = str_replace("www.",'',$parsedUrl); return trim($parsedUrl['host'] ? $parsedUrl['host'] : array_shift(explode('/', $parsedUrl['path'], 2))); } //Parsing hosts from array in a loop example: $url_array = array("google.com","http://google.com","http://images.google.com","google.com/images","ftp://cdn.google.com","HTTP://WWW.GOOGLE.COM","","http://google.co.uk/images","blah.blah.blah.blah"); returns: google.com google.com images.google.com google.com cdn.google.com google.com google.co.uk blah.blah.blah.blah As can see don't actually check if is a valid top or second level domain, would need to do checking after if needed that. Also have a function made to get main domains as well, is quite a chunk of code.
  16. This should get you in the right direction. http://www.siteground.com/tutorials/wordpress/wordpress_create_theme.htm The above theme is the basics, you should look at the anatomy of a wordpress theme from the wordpress codex. http://codex.wordpress.org/Theme_Development If this is too much for you and want to make a faster theme, but a good headstart, consider using underscores. https://github.com/automattic/_s
  17. With no idea with anything else in your includes files..... This could possibly be a rewrite rule needed. Since I do not see any GET parameter listed there, i guessed at some and saw a somewhat working page. http://pandora9.net76.net/dracusor.php?id=7&animal=AnDr3y
  18. Edit the themes css file. Place the location of the menu to where you need it. This should help you to know what to edit in the css. http://www.w3schools.com/css/css_positioning.asp
  19. When editing files, you should consider using an editor like http://sourceforge.net/projects/notepad2/
  20. I went through this fast manually, it should look something more like this. <?php /* This is the result of hard work done by Chad Eriksen - All Rights Reserved. No reproduction without contact may be used. Contact: ceriksennh@yahoo.com */ ?> <!DOCTYPE html> <html> <head> <title>Yankton Ag Service, Inc.</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="<?php echo date('D, d M Y', mktime(0, 0, 0, date('n'), date('n')+1, date('Y'))); ?>"/> <meta name="description" content="Yankton Ag Service is a reputable company that sells grain, fertilizer, and chemicals."/> <meta name="keywords" content="Yankton Ag Service, sell, grain, fertilizer, chemicals" /> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="divMain"> <img src="images/bg2.jpg" id="picBg2" style="z-index:2;" onClick="return false;"> <img src="images/bg1.jpg" id="picBg1" style="z-index:1;" onClick="return false;"> <img src="images/bg0.jpg" id="picBg0" style="z-index:0;" onClick="return false;"> </div> <?php include("header.php"); ?> <table width="98%" id="tableMain" border="0" cellpadding="0" cellspacing="2" align="center" class="border mainDiv" style="background:url(images/white_box.png); opacity:0;"> <tr> <td colspan="2" class="border boxedIn header">Welcome</td> </tr> <tr> <td width="82%" valign="top" class="boxedIn paddingMedium"> <table width="95%" border="0" cellpadding="10" cellspacing="0" align="center"> <tr> <td class="main"><span class="header"><strong>Yankton Ag Service, Inc.</strong></span> is a locally owned, independent, crop inputs and grain merchandising service center located in Yankton, SD. Yankton Ag Service, Inc. is a leading supplier of quality crop input products and custom application needs for area producers. Yankton Ag Service, Inc. maintains grain facilities and services providing area producers with competitive marketing opportunities. </td> </tr> <tr> <td align="center"><hr style="width:80%;"></td> </tr> <tr> <td class="header"><br><strong>Ag News:</strong></td> </tr> </table> <?php $vardir = str_replace("index.php", "", realpath("index.php")); $conn = new COM("ADODB.Connection") or die("Cannot start ADO."); $conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=".$vardir."admin/data/news.mdb"); $rs = $conn->Execute("SELECT TOP 5, * FROM news ORDER BY ID DESC"); if($rs->EOF){ echo "<table width='90%' border='0' cellpadding='10' cellspacing='0' align='center' class='border boxedIn main' style='margin-bottom:25px;'><tr><td align='center' valign='top'>No News Entries.</td></tr></table>"; }else{ while(!$rs->EOF){ ?> <table width="90%" border="0" cellpadding="4" cellspacing="0" align="center" class="border boxedIn paddingMedium" style="margin-bottom:25px;"> <tr> <td><span style="font:bold 14px Arial;"><a name="<?php echo $rs['ID']->value; ?>"></a><?php echo $rs['header']->value; ?></span> - <span class="textRedSmall"><?php echo date("l, F d, Y", strtotime($rs['date_field']->value)); ?></span></td> </tr> <tr> <td class="main" style="line-height:1.5; padding:0px 20px 15px 20px;"><?php echo $rs['news']->value; ?></td> </tr> </table> <?php echo $rs->MoveNext(); } } unset($rs); ?> <br><br> </td> <td width="20%" align="center" valign="top" class="paddingMedium"> <div style='width:240px; height:420px; background:url(http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/blue_240x420_bg.jpg) no-repeat; background-color:#346797;'> <div id='NetweatherContainer' style='height:405px;'></div> <div style='color:#ffffff; font:10px arial; line-height:15px;text-align:center;'> <a style='font-size:10px; color:#ffffff;' href='http://www.accuweather.com/us/SD/YANKTON/57078/city-weather-forecast.asp?partner=accuweather&traveler=0' >Weather Forecast</a> | <a style='color:#ffffff;' href='http://www.accuweather.com/maps-satellite.asp' >Weather Maps</a> | <a style='color:#ffffff;' href='http://www.accuweather.com/index-radar.asp?partner=accuweather&traveler=0&zipcode=57078' >Weather Radar</a> </div> </div> </td> </tr> </table> <?php include("footer.php"); ?> <br><br> <script type="text/javascript" src="function.js"></script> <script src='http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2ex.asp?partner=netweather&tStyle=whteYell&logo=1&zipcode=57078&lang=eng&size=12&theme=blue&metric=0&target=_blank'></script> </body> </html>
  21. echo "'This is the result of hard work done by Chad Eriksen - All Rights Reserved.\n"; echo "'No reproduction without contact may be used.\n"; echo "'Contact: ceriksennh@yahoo.com\n"; and every line of code is like this, ha ha
  22. This is more a css question, but something like this should get it all centered for you .centered { text-align:center; margin-top:0px; margin-bottom:0px; margin-right: auto; margin-left: auto; padding:0px; }
×
×
  • 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.