Jump to content

ukscotth

Members
  • Posts

    195
  • Joined

  • Last visited

Everything posted by ukscotth

  1. sure. Basically it just pulls the data from the database and displays it : $texts= mysql_query("SELECT * FROM submittedtexts Order by id DESC LIMIT " . (($page - 1) * 6) . ", 6"); while ($got_texts = mysql_fetch_array($texts)){the code that simply displays the data}
  2. Hi, Thanks, Ive been reading up about the date function but cant seem to get it working properly
  3. Hi, I have a table that contains posts and each post has a datetime field. Im trying to work out how I can show entries from today, this week and this month so I can have a link that shows all posts from today or this month etc. Any one know how I can do this ? My current piece of code that pulls the data from the db looks like this : $texts= mysql_query("SELECT * FROM submittedtexts Order by id DESC LIMIT " . (($page - 1) * 6) . ", 6"); I want to add a bit that acts like : WHERE date = today Hope that makes sense, Im a bit of a newbie Thanks in advance, Scott
  4. Hi, Im trying to do this : <a class="good-night" href="#" onclick='voteup(<?php echo $got_texts['id'];?>)';>Go</a> But it wont seem to work. It doesnt see to like the php variable echo. Any ideas where I'm going wrong ? Many thanks, Scott
  5. Hi, Anyone got any ideas to what I'm doing wrong with this piece of code ? function golink() { window.location.href('bumpbox.php?id=<?php echo $pageinfo['id'];?>\" class=\"bump\" rel=\"800-500'); } Many thanks in advance, Scott
  6. Thanks very much. The value is saved as an integer and its value is 0. If it is 0 I want it to show even if a minimum and maximum value has been set. Sorry if im being confusing. Would your code do that or would I need to use OR instead ? Thanks again for your help Scott
  7. Thanks yep I made it so the prices are integers and it seems to work great now with your code. Just one more thing, how would I make it so this part only applies if the price field is not empty ? would i add || where price =="" WHERE price >= {$min} AND price <= {$max} Thanks so much for your help Scott
  8. Im having another strange problem now. Can you see anything wrong with this ? $min = $got_searches['min_price']; $max = $got_searches['max_price']; $checked = mysql_query("SELECT * FROM items WHERE price >= '".$min."' AND title LIKE '% $search_term_esc %' OR title LIKE '$search_term_esc %' OR title LIKE '$search_term_esc' ");
  9. Thanks alot, works great and seems accurate with the prices. I will learn alot from your code, I appreciate it
  10. Hi, I understand, not quite sure how I would do it but I see your point, would I store them in an array or something ? and thanks thats great. I appreciate your help. Scott
  11. Hi, I was hoping someone could help me, Im trying to scrape a webpage and extract the following data from it : item id's, titles and prices. I can get the id's and titles using this : // get the HTML $html = file_get_contents("http://www.wightbay.com/XCClassifieds/CPSearch.asp?CMD=NEW&SortBy=CADSTARTDESC&VIEW=NORMAL&ipp=150"); // Scrape the data preg_match_all( '/CPViewItem\.asp\?ID=(.*?)">(.*?)<\/A/s' ,$html, $posts, PREG_SET_ORDER ); // Add the data to the database mysql_query("truncate table items"); foreach ($posts as $post) { $id = $post[1]; $title = $post[2]; mysql_query("INSERT INTO items (id, title) VALUES ('".$id."', '".$title."') "); } but when I try and grab the prices I get problems because not all of the items have prices listed so If I search for the £ sign and there isnt one it goes straight onto the next £ sign ( if that makes sense ) Anyone know a way I can do it ? Heres a part of the html which contans the data, its is from a classified website : <tr bgcolor="#ffffff"><td height="1" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU29217F1HRKYVOLE.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=566">BMW</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a href="CPViewItem.asp?ID=3804016">328i SE BMW 1999</A></span> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center">£2,300.00 </td> <td width="100" align="center">ryde </td> </tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#E9E9E9"><td height="11" colspan="6"></td></tr> <tr bgcolor="#E9E9E9"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU46764F1YTWLWCDM.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=607">Suzuki</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a href="CPViewItem.asp?ID=3803798">Suzuki Vitara fat boy soft top</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center">£1,595.00 </td> <td width="100" align="center">lake </td> </tr> <tr bgcolor="#E9E9E9"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#fbb961"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU25728F1KCVQRHKU.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=570">Citroen</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3803772">2006(55) Citroen Xsara Picasso Exclusive 92 1.6 HDI £4995 up to 64.7MPG!!</A></span> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center">£4,995.00 </td> <td width="100" align="center">CITROEN PICASSO 1.6 HDI 884444 </td> </tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#fbb961"> <td width="32" align="center"><A HREF="CPHelp/CPNotice.htm" onClick="ShowHelp('CPHelp/CPNotice.htm'); return false;"><IMG SRC="CPImages/AdTypeNotice.gif" width="19" height="15" BORDER="0" ALT="Notice" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU44137F1TQRVFNLN.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=673">Announcements</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3803725">SAVE MONEY ON YOUR HOUSEHOLD OR BUSINESS BILLS</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center"><small>--</small> </td> <td width="100" align="center">ALL AREAS COVERED </td> </tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#fbb961"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU31926F1JGNGFZSS.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=614">Volvo</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3803595">2003 VOLVO S80 2.4 SE AUTO ***FULL LEATHER & 12 MONTHS WARRANTY***</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center">£4,495.00 </td> <td width="100" align="center">ROOKLEY CAR SALES - 721232 </td> </tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#fbb961"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU39198F1WUNIMFRW.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=587">Mazda</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3803494">2002 (51) MAZDA 1.3 DEMIO GXI<BR>ONE OWNER ISLAND CAR<BR>45K WITH HISTORY</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPImageTrade.gif" ALT="Trade"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">14/04/2011</td> <td width="80" align="center">£2,295.00 </td> <td width="100" align="center">SANDOWN CAR CENTRE<BR>401333 </td> </tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU30585F1YBGSWPZM.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=570">Citroen</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a href="CPViewItem.asp?ID=3800242">Grt Value - (X) reg Xantia 1.8 Forte - 64k Mot April 2012 - taxed - see add!!</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">13/04/2011</td> <td width="80" align="center">£695.00 </td> <td width="100" align="center">Simply Good Value Cars 4 Sale! </td> </tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#fbb961"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU15420F1BCFVRURP.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=566">BMW</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3800217">BMW 318</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">13/04/2011</td> <td width="80" align="center">£2,495.00 </td> <td width="100" align="center">VENTNOR CAR CENTRE </td> </tr> <tr bgcolor="#fbb961"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#FFFFFF"> <td width="32" align="center"><A HREF="CPHelp/CPForSale.htm" onClick="ShowHelp('CPHelp/CPForSale.htm'); return false;"><IMG SRC="CPImages/AdTypeForSale.gif" width="19" height="15" BORDER="0" ALT="For Sale" /></a></td> <td width="103" align="center"><img src="CPUserImages/ImgThumbU30585F1TSBRRAJM.JPG" border="0" alt="Gallery"></td> <td width="280"><DIV><B><FONT COLOR="#FF0000">CAT:</FONT> <A HREF="CPViewInCat.asp?ID=570">Citroen</A></B><BR><BR></DIV><DIV CLASS="CPLink"><span class="CPListingText"><a style="color:#003f7d;" class="bold_style" href="CPViewItem.asp?ID=3800198">Absolute giveaway! 1st £1100 drives away 2002(02) saxo vtr see add</A></span> <IMG BORDER="0" SRC="CPImages/CPHot.gif" ALT="Hot"> <IMG BORDER="0" SRC="CPImages/CPImage.gif" ALT="Picture"> <IMG BORDER="0" SRC="CPImages/CPNew.gif" ALT="New"></DIV></td> <td width="100" align="center">13/04/2011</td> <td width="80" align="center">£1,100.00 </td> <td width="100" align="center">Absolute Bargain Saxo VTR!! </td> </tr> <tr bgcolor="#FFFFFF"><td height="11" colspan="6"></td></tr> <tr bgcolor="#c0c0c0"><td height="1" colspan="6"></td></tr> Its driving me crazy please help
  12. Hi, Im having troubles getting the seal image on the bottom left of this page aligned properly : http://www.croota.us/ I need to get it lined up with the image to the right of it and the social networking buttons but I cant seem to do it The site runs off of shopify and heres the code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" > <!-- Vanity Shopify theme by ShopifyConcierge: http://www.shopifyconcierge.com Revision: 20101219 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META name="y_key" content="edb482cb10c34907" /> <meta name="msvalidate.01" content="E646736C5F491FD3361144773F6AD421" /> <meta property="fb:page_id" content="144431935613347" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="Shopify Concierge" /> <link rel="shortcut icon" href="{{ 'mainicon.ico' | asset_url }}" /> {% comment %}The 'metadata' snippet sets up title, description and facebook properties depending on template{% endcomment %} {% include 'metadata' %} {{ 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' | script_tag }} {{ "http://grapevinereviews.com/assets/gv.js" | script_tag }} {{ "http://grapevinereviews.com/assets/gv.css" | stylesheet_tag }} {{ 'reset.css' | asset_url | stylesheet_tag }} {{ 'styles.css' | asset_url | stylesheet_tag }} <!--[if IE]> {{ 'ie.css' | asset_url | stylesheet_tag }} <![endif]--> <!--[if lt IE 8]> <style>.wraptocenter span {display: inline-block; height: 100%;}</style> <![endif]--> {% comment %}Full version of jQuery Tools that includes jQuery{% endcomment %} {{ 'http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js' | script_tag }} {{ 'jquery.text-overflow.js' | asset_url | script_tag }} {% if template == 'product' %}{{ 'option_selection.js' | shopify_asset_url | script_tag }}{% endif %} <!--[if lt IE 8]> <script type="text/javascript">var IE7_PNG_SUFFIX = ".png";</script> {{ 'http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js' | script_tag }} {{ 'http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7-squish.js' | script_tag }} <![endif]--> {{ content_for_header }} </head> <body id="{{ template | handleize }}"> <div id="header" class="clearfix"> {% if settings.use_logo_image %} <a href="/" title="{{ shop.name }} Home"><img id="logo-img" src="{{ 'logo.PNG' | asset_url }}" alt="{{shop.name}}" /></a> {% else%} <h1 id="logo"><a href="/" title="{{ shop.name }} Home">{{shop.name}}</a></h1> {% endif %} <div id="search-block"> <ul class="clearfix"> {% if linklists["eyebrow-menu"].links.size > 0 %} {% for link in linklists["eyebrow-menu"].links %} <li><a href="{{ link.url }}">{{ link.title | escape }}</a></li> {% endfor %} {% else %} <li><a href="/pages/contact">CONTACT</a></li> <li><a href="/pages/policies">POLICIES</a></li> {% endif %} <li class="last"> <a id="eyebrow-cart" href="/cart">VIEW CART {% if cart.item_count > 0 %}({{ cart.item_count }} {{ cart.item_count | pluralize: 'item', 'items' }}){% endif %}</a> </li> </ul> <form method="get" action="/search"> <fieldset> <input id="search-input" type="text" value="{% if template == 'search' %}{{ search.terms | escape }}{% endif %}" name="q" /> <input id="search-button" type="submit" class="small awesome" value="Search" /> </fieldset> </form> </div> </div> {% include 'main-menu' %} <div id="content" class="clearfix"> {{ content_for_layout }} </div> <div id="footer" class="clearfix"> {% for widget in (1..3) %} {% capture setting %}footer_widget{{ widget }}{% endcapture %} <div id="widget{{ widget }}" class="{{ settings[setting] }}"> {% case settings[setting] %} {% when 'nav' %} {% include 'navigation-widget' %} {% when 'contact' %} {% include 'contact-widget' %} {% when 'latest-news' %} {% include 'latest-news-widget' %} {% when 'sign-up' %} {% include 'sign-up-form-widget' %} {% when 'testimonials' %} {% include 'testimonials-widget' %} {% endcase %} </div> {% endfor %} </div> <div id="bottom" > {% if (settings.social_facebook != '') or (settings.social_twitter != '') %} <ul class="social"> {% if settings.social_facebook != '' %}<li> <a href="{{ settings.social_facebook }}" title="Join {{ shop.name }} on Facebook">{{ 'facebook_32.png' | asset_url | img_tag:'Join us on Facebook' }}</a> </li>{% endif %} {% if settings.social_twitter != '' %}<li> <a href="http://twitter.com/{{ settings.social_twitter }}" title="Follow {{ shop.name }} on Twitter">{{ 'twitter_32.png' | asset_url | img_tag:'Follow us on Twitter' }}</a> </li>{% endif %} {% if settings.social_rss != '' %}<li> <a href="http://www.croota.us/blogs/news.atom/{{ settings.social_rss }}" title="Follow {{ shop.name }} on Feedburner">{{ 'rss_32.png' | asset_url | img_tag:'RSS Feed' }}</a> </li>{% endif %} </ul> <img src="http://www.impact25.com/seal.jpg" align="left" alt="test"><img src="http://cdn.shopify.com/s/files/1/0062/9712/assets/icons-payment.jpg?1293815841" align="middle" alt="BUY with VISA, MC, AMEX, PayPal & Google Checkout" /> <br /> <br /> <p>© {{ "now" | date: "%Y" }} {{ shop.name }}. All Rights Reserved. All prices {{ shop.currency }}.</p> {% endif %} </div> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready(function($) { $.tools.overlay.conf.effect = "apple"; $(".ellipsis").ellipsis(true); $('#main-menu li').mouseenter(function() { $(this).addClass('jshover'); }).mouseleave(function(){ $(this).removeClass('jshover'); }); // find first menu href that matches the current page var menu_a = $(".main-menu a[href='" + location.pathname + "']:eq(0)"); if (menu_a.length == 0) { {% if collection %} // might be in a product page, check for a collection menu_a = $(".main-menu a[href='{{ collection.url }}']:eq(0)"); {% elsif blog %} menu_a = $(".main-menu a[href='{{ blog.url }}']:eq(0)"); {% endif %} } menu_a.parent().addClass('active'); $(".sub-menu .active").parent().parent().addClass('active'); }); // ]]> </script> </body> </html> Can anyone please help ? Thanks, Scott
  13. Hi, Im having a formatting nightmare, all Im trying to do is add an image to the top right corner of a wordpress header but I cant get it aligned properly. It always ends up being in the wrong place. The site is using this wordpress theme http://www.elegantthemes.com/preview/TheProfessional/ I just want to add a image to the top right of the page opposite the logo. Heres a snippet of the header file where I think it should be done : <body<?php if (is_home()) echo(' id="home"'); ?>> <div id="container"> <div id="header"> <a href="<?php bloginfo('url'); ?>"> <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Professional Logo" id="logo"/> </a> <div id="menu"> <?php $menuClass = 'nav'; $primaryNav = ''; if (function_exists('wp_nav_menu')) { $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) ); }; If anyone could show me how it would be most appreciated as Its starting to drive me crazy lol.
  14. oh right ok thanks, is there any other point to it apart from making the url's look tidier ?
  15. Hi, Ive been building a few sites lately and they get very busy very fast and it puts alot of strain on my server due to excesive sql queries. Ive noticed alot of sites use folders for things that i would use index.php?id= for. e.g i have a social network and peoples profiles are shown like mysite.com/index.php?user=bob. Would it be best to have the profiles as mysite.com/bob/ instead ? I was thinking this would mean less database queries and would be better for seo. Am i right in thinking this or have i got it wrong ? Thanks.
  16. yep, before the public_html folder
  17. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="370" height="460"> <param name="movie" value="./flash/aa63.swf"> <param name="quality" value="high"> <embed src="./flash/aa63.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="370" height="460"></embed> </object>
  18. hmm tried that and the flash files no longer play. What should i set the permissions of the folder to be ?
  19. oh i see what you mean. Sounds good, thanks alot, il give it a try
  20. thanks chris. Not sure I understand though, surely people would just be able to send the links to whoever they like e.g www.mysite.com/fdir/155.swf
  21. thanks wayne, and what will happen when they try ? and can I use that for swf files ?
  22. good thinking yep. Any ideas how to rename files to random ones using php ?
  23. Hi, Is it possible to create a cron job to rename 10 files on a server and then rename the refrences to those files within a php file ? Can anyone help me plzz ? The reason is to help stop people stealing my images. My ideas was to convert the images into flash movies and then constantly rename them so if people link to my flash movies e.g www.mysite.com/myflashpic1.swf then the link will become useless when the next cron is run. Hope that makes sense. Scott.
×
×
  • 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.