Hi Dynn, glad it worked for you. I take it that your plan is to get more visitors to your website. What I would recommend, is to use a seperate stream for each catergory. eg if you had a stream related to widgets in the widgets section of the directory, then it would make the catergorary more relevant. Also when people submit to directories they want as few links as possible, I would therefore reccommend that you linit the number of articles in each stream, to one or two. If you do these two things I think that you'll have a nice directory what people would like to submit to. Deano
where do you insert the code(phplinkdirectory)?? Moreover, it seems there are some mistakes: e.g: html code(br,<a href="www.domain.name">.etc...) cann't show correctly. I have also created a test page at: http://download.best-p4u.com/rss_news.php The result is the same. Could someone help me!! Thanks!! Happy new year!!
Need guru help; script works nicely here http://www.wilkes-nc-real-estate.com/ save for parsing of quote marks and other special characters replaced by ’, 20, 21, 30, etc. TIA which, after 2 hours of googling, Wordpress writes http://www.ncrealestateblog.com/?feed=rss2 see page bottom with the "un-parse-able" characters. Wondering, if this can be patched in wp-rss2.php Hmmm...
i tried copying the script (by yfs1) to my php page and i am getting an error: "Error reading RSS data. can anyone help? Thanks
Hehe, must be my lucky day. When I finally decide to try it out this website is "down". Must try again in a few minutes. Do anybody have alternatives to www.syndic8.com ?
phplinkdirectory uses a smarty engine, here was my solution for that: http://www.jimwestergren.com/tutorial-rss-feed-inside-smarty-template-files/
Thx I would green-rep you, but the system said "yfs1 has received too much rep in the last 24 hours" - so, sadly I wasn't able to - Maybe someone else can help out...?
oh god i wet myself 3 times and sprayed my screen with about 2 cups of coffee, Deano that was the best 3 hours i have had in years, it was so funny the air2000 letters, well worth the time. this was one that made me wet myself, Aer Lingus Plc Travelling with your airline recently I asked one of your charming stewardesses, Bridget I think her name was, what the 'Lingus' in the name Aer Lingus meant..... I thought for a moment that it might be a suffix, but quickly discarded that idea as I only know one word which has Lingus as a suffix, and it can't possibly mean that, because although Aer Lingus is by no means the most impressive airline that I have ever flown with, it certainly doesn't suck...... reply Thank you for your recent letter. There's a very simple answer to your question. 'Aer Lingus' is an Irish phrase meaning, appropriately enough, air fleet. Initially in 1936, the company operated under the name 'Irish Sea Airways', but this was soon changed to Aer Lingus, which we have been operating under ever since. reply I assume that you changed the name of your airline from Irish Sea Airlines to Aer Lingus because you wanted to give it an Irish flavour. However Aer Lingus, which I am assuming is Gaelic, only makes sense to someone who speaks this obscure language. If you want to highlight the 'Irishness' of your airline, while at the same time making the name understandable to anyone who speaks English, the perfect appellation for it would be Aer O'Plane.... well worth a visit
Thanks for this, it's just what I needed to have my latest blogs listed on the home page of my new site. Wondering though if you could offer some help... I wanted to have the latest blogs to list the last 3 or 5 blogs with the title, date and a couple of lines of the blog. Is that possible with this code? Any assistance would be helpful and appreciated... the page I'm trying to do this on is http://www.myrollercoasterkid.com it's only a couple of days old and in the development stage so please ignore the "mess". Thanks, Lisa
I am not a pro in this, so I would appreciate any and all help. What do I need to make this code Rotating feed work on my index.htm or index.php work? <?php $insideitem = false; $tag = ""; $title = ""; $description = ""; $link = ""; $locations = array('http://michaelthompson.org/news/goo-world.xml', 'http://forums.seochat.com/external.php', 'http://michaelthompson.org/news/goo-world.xml'); srand((float) microtime() * 10000000); // seed the random gen $random_key = array_rand($locations); function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { $tag = $name; } elseif ($name == "ITEM") { $insideitem = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $description, $link; if ($name == "ITEM") { printf("<dt><b><a href='%s' target=new>%s</a></b></dt>", trim($link),htmlspecialchars(trim($title))); printf("<dt>%s</dt><br><br>",htmlspecialchars(trim($description))); $title = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": $link .= $data; break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen($locations[$random_key], 'r') or die("Error reading RSS data."); while ($data = fread($fp, 4096)) xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); fclose($fp); xml_parser_free($xml_parser); ?> Do I need a program installed on the directory it resides? My host allows my unlimited domains. I use Add on domain feature. Thank youi! st12
You only need to have php enabled...There is no software involved. Have you tried cut and pasting it? If so, what errors have you received?
Yfs1, I tried cut and paste and received the code itself on the index.htm page. Do I need to put the code in the index.htm file? Should I save it as .php? Here is the test website: www.quitsmokinghelp.be Thank you! I tried saving the index.htm as index.php still no luck. I spoke with my webhosting company they said php is enabled by default and it is curently enabled.
Yes it's php code save as index.php, upload it, then remove your index.htm page from your server, so that there is no conflict.
That's what I did saved it as .php, uploaded it, and removed the index.htm didn't work. A strange animal probably resides in my webhosting company I sent them an email .... now waiting. Thank you Deano!