grucker
-
Posts
97 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Posts posted by grucker
-
-
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
-
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
-
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
-
-
-
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
-
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));}
-
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:.75em;text-align:center;"> '. $item->description.' </p>
</div>
</td>
';
// checks the loop. If it's >= 2 (indicating that it's looped 3 times)...
if ($i >= 0){
// start new row
$output .= "</tr><tr>";
// reset loop
$i = 0;
}
// if not, add one to the loop
else
$i++;
}
// finishes table
$output .= '<td></td></tr></table>';
return $output;
}
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="rss.xsl"?>
<rss version="2.0">
<channel>
<title>English Golf Union (EGU) | NEWS</title>
<link>http://www.englishgolfunion.org</link>
<description>English Golf Union (EGU) | NEWS</description>
<language>en-gb</language>
<copyright>Copyright English Golf Union (EGU)2010.</copyright>
<lastBuildDate>Tue, 17 Aug 2010 13:41:15 GMT</lastBuildDate>
<ttl>60</ttl>
<item>
<guid isPermaLink="false">http://www.englishgolfunion.org-4419</guid>
<title><![CDATA[sittingbourne & Milton Regis Golf Club receives EGU/EWGA GolfMark Award]]></title>
<link><![CDATA[http://www.englishgolfunion.org/news.asp?id=4419&code=0001000100010029]]></link>
<description><![CDATA[]]></description>
<pubDate>Tue, 17 Aug 2010 00:00:00 GMT</pubDate>
</item> <item>
<guid isPermaLink="false">http://www.englishgolfunion.org-4418</guid>
<title><![CDATA[Pine Ridge Golf Club receives EGU/EWGA GolfMark Award]]></title>
<link><![CDATA[http://www.englishgolfunion.org/news.asp?id=4418&code=0001000100010029]]></link>
<description><![CDATA[]]></description>
<pubDate>Tue, 17 Aug 2010 00:00:00 GMT</pubDate>
</item> <item>
<guid isPermaLink="false">http://www.englishgolfunion.org-4416</guid>
<title><![CDATA[England on top in Home Internationals again]]></title>
<link><![CDATA[http://www.englishgolfunion.org/news.asp?id=4416&code=000100030002]]></link>
<description><![CDATA[England retained the Raymond Trophy when they completed a clean sweep in the Home Internationals at Ashburnham in Wales.]]></description>
<pubDate>Mon, 16 Aug 2010 00:00:00 GMT</pubDate>
</item> <item>
<guid isPermaLink="false">http://www.englishgolfunion.org-4414</guid>
<title><![CDATA[Hat-trick man Francis lands London Pride Gold Medal]]></title>
<link><![CDATA[http://www.englishgolfunion.org/news.asp?id=4414&code=000100020001000300150001]]></link>
<description><![CDATA[Kevin Francis from Cheshire completed three wins in a row when he carried off the London Pride EGU Gold Medal in the sunshine at Woodhall Spa.
]]></description>
<pubDate>Sun, 15 Aug 2010 00:00:00 GMT</pubDate>
</item>
</channel>
</rss>
-
-
-
-
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>
-
Is it possible to stop certain ip addresses viewing a website using php coding.
Thanks,
David
-
WAMP
in Open Forum
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
-
WAMP
in Open Forum
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
-
WAMP
in Open Forum
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'));
-
WAMP
in Open Forum
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
-
WAMP
in Open Forum
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.org.uk/mulberry/images/ulticon.ico" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="usM43MPT6eFkeFdZ8i6B4X7-06p12MKnakEYkOFqS5g" />
<title>Ultimate Skin Care:-<?php if ($thisPage!="")
echo " | $thisPage |"; ?> featuring the skin care products of Poppy Red Naturals, Acamuti and Lavera</title>
<meta name="robots" content="Index, ALL" />
<meta name="language" content="en" />
<meta name="keywords" content="<?php if ($thisPage!="")
echo " | $thisPage |"; include("mulberry/includes/keywords.php"); ?>" />
<meta name="description" content="<?php if ($thisPage!="")
echo " | $thisPage |"; include("mulberry/includes/keywords.php");?>" />
<link rel="stylesheet" href="mulberry/mulberry_styles.css" type="text/css" />
</head>
<body>
<?php include("mulberry/includes/indexheader.php"); ?>
<?php include("mulberry/includes/rightlinks.php"); ?>
<div id="leftpanelcontent">
<div style="float:left;"><img src="mulberry/images/ultimate3.png" alt="ultimate logo <?php include("mulberry/includes/keywords.php");?>" height="60" width="60"/> </div>
<div style="float:right; padding-right:5px"><img src="mulberry/images/ultimate3.png" alt="lavera logo <?php include("mulberry/includes/keywords.php");?>" height="60" width="60"/> </div>
<h3 style="text-align:center;margin:-10px 0 0 0;">Links To All The Pages On Our Site<br/> </h3>
<div style="width: 475px;">
<br/>
<?= render_products_from_SITEMAP() ;?>
</div>
<br/><br/><br/><br/><br/><br/><br/>
<div id="various">
<p style="text-align:center; "><img src="mulberry/images/various.png" alt="green logo <?php include("mulberry/includes/keywords.php"); ?>
" width="400" height="290" style="border: #6B003C solid 2px"/></p>
</div>
</div>
<hr class="hidden" />
</div>
<?php include("mulberry/includes/indexfooter.php"); ?>
</body>
</html>
-
WAMP
in Open Forum
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
-
WAMP
in Open Forum
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 ?
-
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
-
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
-
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
-
Good morning, The shop works and the whole world is sunny except a cloud has appeared on the horizon. When viewing the cart I would like an option to load a members discouunt code which would give a discount off the product costs and apply the new total before sending to PayPal. At the minute I have members logging in and then going to their own store which is a copy of the main store with different prices. It works but is an awful lot of updates for nothing. Just wondered if possible or are there any alternatives at all.
Kindest regards
David
Double drop down menu
in CSS
Posted
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