Jump to content
Killersites Forums

grucker

Member
  • Content Count

    97
  • Joined

  • Last visited

Everything posted by grucker

  1. Thank you, the two lines of code I required were ul li:hover ul li a {display:block;} ul li a.hide, ul li a:visited.hide {display:none;} Thanks again for the tip. Regards David
  2. Yes thats good as well but I have seventy pages with the one included menu. So I cannot see it. Thanks for the tip for a smaller site. David
  3. Very nice, Just wondered if a css style would do the job. If not I will leave it as it is. Not keen on javascript as It can cause problems when browsing. Thanks
  4. Good morning, I am attempting to add a double dropdown to an existing drop down menu. The first trigger shows and when on hover shows the first drop down menu and the next trigger, but also the items after the second trigger. Could someone please advise on the css to use to show the second dropdown only when the second trigger is on hover. Kindest regards David
  5. grucker

    rss feeds

    Thanks Ben, Works a treat. Just need a discount code now. I will have another go. Thanks again. David
  6. grucker

    rss feeds

    Hi, Just out of interest, is it possible to show only the first, ie newest, item and if so how does the code change? Thanks David
  7. grucker

    rss feeds

    Thanks Ben, Just to clarify what you have just said, The short code for the top is only needed to see what format the rss feed is in. I left it out and it worked and when I added it it still worked but with the info you pointed out. One other thing I had to leave the else statement out to get it to work might have something to do with } . Anyway thanks again and on the other nonrelated matter I have persuaded my daughter to allow a picture in the banner. Thanks for that especially. Regards David
  8. grucker

    rss feeds

    The following lines of code are in a function folder. The function does pick some info up but only the first item of information. The function worked for items in the webstore. Thanks define('STORE_XML_ROR_FILE' , 'http://www.englishgolfunion.org/rss.asp'); function get_xml_ror() {return new SimpleXMLelement(file_get_contents(STORE_XML_ROR_FILE));}
  9. grucker

    rss feeds

    I have messed about with the function and the page source from the web both shown below but I only get one item of information. I think it is the first one. How do I get the others. Thanks function render_products_from_ROR() { // starts the product table $output = "<table><tr>"; // sets loop to 0 $i = 0; // starts looping through products foreach (get_xml_ror() as $item) { $output .= ' <td> <div> <p style="font-size:.75em;text-align:center;"> '. $item->title.' </p> <p style="font-size:.75
  10. grucker

    rss feeds

    I maintain a golf club website and the members want latest news from the English Golf Union. How, exactly would one load a rss feed to a php webpage? Regards David
  11. grucker

    ROR. XML

    Thanks for the links. They advised how to sort my problem. Regards
  12. grucker

    ROR. XML

    The colons are in the script I showed and the lines are surplus to my requirements.They are in evvery entry so its a nuisance deleting them. I will try your advice and see what happens. Thanks David
  13. grucker

    ROR. XML

    I am using ror.xml to feed a php page. It gives an error because of the colons in the script. If I remove the colons it works. I have been deleting these three lines from every entry. It was ok doing it once and adding or deleting a page as and when. Now the site is to undergo massive changes. Is there a way around this? <ror:updatePeriod /> <ror:sortOrder>0</ror:sortOrder> <ror:resourceOf>sitemap</ror:resourceOf>
  14. Is it possible to stop certain ip addresses viewing a website using php coding. Thanks, David
  15. grucker

    WAMP

    Thats it, thanks very much. Has this only just been deprecated cause it worked fine a few months ago when I did the video? Thanks again. David
  16. grucker

    WAMP

    Tried both ways with the same result. The warnings disappear and the page loads except no links from the xml file. In the page source it says in a pale purple. <?= render_products_from_SITEMAP() ;?> Thanks
  17. grucker

    WAMP

    The following is the code starting on line 59. SESSION_START(); function get_xml_sitemap() {return new SimpleXMLelement(file_get_contents(STORE_XML_SITEMAP_FILE));} This code is on line 4 Thanks define('STORE_XML_SITEMAP_FILE' , ($_SERVER['DOCUMENT_ROOT'] .'/sitemap.xml'));
  18. grucker

    WAMP

    Yes the code is exactly the code I showed in previous post. The code is on line 1 and hard left, nothing before it. Thanks
  19. grucker

    WAMP

    Thanks for looking, below is the code. As I said it works fine on my web server, just errors on wamp. Other files are the same Wondered if it was an Apache problem. Thanks <?php require_once 'mulberry/functions/functions.php'; $shopping_cart = get_shopping_cart(); ?> <?php $thisPage="sitemap"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="shortcut icon" href="http://www.ultimateskincare.or
  20. grucker

    WAMP

    Tried wamp 5 and am getting Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\wamp\www\sitemap.php:2) in c:\wamp\www\mulberry\functions\functions.php on line 59 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\wamp\www\sitemap.php:2) in c:\wamp\www\mulberry\functions\functions.php on line 59 As I said earlier this all works on my web host. Just wondering if anyone has an idea what I can do. Thanks
  21. grucker

    WAMP

    Downloaded wamp and loaded paypal web site for a refresher and site will not open xml. index.php is blank viewing page source shows php. Tried another php site and this shows perfectly. Any advice please ?
  22. grucker

    Paypal web store

    Good evening, attached are the three relevent files. I just want a way that a registered user can get a discount at the view cart stage. Thanks Regards David ShoppingCart.php templates.php viewCart.php
  23. grucker

    Paypal web store

    Hello, I think I could do the function. What I have difficulty seeing is if I do a text box and submit button on the cart page where do I send the discount number information and how? Regards David
  24. grucker

    Paypal web store

    It is the site I built from the videos I purchased from yourselves and customised with the help of this forum. the view cart page is the original. I would like to reduce the cost price by 10% if a members code was entered code was entered. Regards David
×
×
  • Create New...