Jump to content

TCH-Thomas

Members
  • Posts

    15,512
  • Joined

  • Last visited

Everything posted by TCH-Thomas

  1. I love that notifier :heart
  2. I thought it should be that easy, so I tried, but then it gave me errors for the second feed.
  3. Michael, did you look in all folders? Hotmail tends to sort it very strange sometimes. The most serious mails do happen to end up in junk folder sometimes.
  4. I hate flash mostly. Not all of it though. If a small part of a site is flash (like banner size), then ok, but if its a whole site or a huge intro that takes looooooong time to start, I tend to leave.
  5. It should not be any problem using hotmail, but have a look in the junk folder to be sure it hasnt ended up there.
  6. I read/hear rumours that google might be developing an instant messaging client. Read more here: http://www.internetnews.com/infra/article.php/3401761 Has anyone else heard this?
  7. Can I somehow use the above code to show 2 different feeds? What I want to do is to show both the top news and international feeds from reuters.com on same page.
  8. Uh oh... I need to learn CSS then. I will... soon. Thanks Lisa
  9. Thanks Raul, that works. :-) You rock!!! EDIT: I thought I should change h2 to h1 to get it smaller. Now I know.
  10. Thanks Raul I tried it a little. Not going to well, but I´ll keep trying.
  11. Its working now, but now I bumped in to a new problem. The text, especially the headings, are too big and I also would like to get rid of the borders around the items. Is there anyway I can change this? My RSS test page
  12. Thanks VI I was thinking about doing a search on google or something but then I figured that they all will probably claim to be most read (as most swedish newspapers do ), so I thought I ask my friends here.
  13. Snow
  14. Which is Americas most read newspaper? Thank you in advance
  15. I finally found a rss reader I understand I think. It works when I try the downloaded "default" code, but not when I replace the url I want to get news from (http://expressen.se/rss/nyheter'>http://expressen.se/rss/nyheter). When I replace the default url I get this error: Does anyone know why? Here is the original code ><?php /* PHP RSS Reader v1.1 By Richard James Kendall Bugs to richard@richardjameskendall.com Free to use, please acknowledge me Place the URL of an RSS feed in the $file variable. The $rss_channel array will be filled with data from the feed, every RSS feed is different by by and large it should contain: Array { [TITLE] = feed title [DESCRIPTION] = feed description [LINK] = link to their website [IMAGE] = Array { [URL] = url of image [DESCRIPTION] = alt text of image } [ITEMS] = Array { [0] = Array { [TITLE] = item title [DESCRIPTION] = item description [LINK = a link to the story } . . . } } By default it retrives the Reuters Oddly Enough RSS feed. The data is put into the array structure so you can format the information as you see fit. */ set_time_limit(0); $file = "http://slashdot.org/index.rss"; $rss_channel = array(); $currently_writing = ""; $main = ""; $item_counter = 0; function startElement($parser, $name, $attrs) { global $rss_channel, $currently_writing, $main; switch($name) { case "RSS": case "RDF:RDF": case "ITEMS": $currently_writing = ""; break; case "CHANNEL": $main = "CHANNEL"; break; case "IMAGE": $main = "IMAGE"; $rss_channel["IMAGE"] = array(); break; case "ITEM": $main = "ITEMS"; break; default: $currently_writing = $name; break; } } function endElement($parser, $name) { global $rss_channel, $currently_writing, $item_counter; $currently_writing = ""; if ($name == "ITEM") { $item_counter++; } } function characterData($parser, $data) { global $rss_channel, $currently_writing, $main, $item_counter; if ($currently_writing != "") { switch($main) { case "CHANNEL": if (isset($rss_channel[$currently_writing])) { $rss_channel[$currently_writing] .= $data; } else { $rss_channel[$currently_writing] = $data; } break; case "IMAGE": if (isset($rss_channel[$main][$currently_writing])) { $rss_channel[$main][$currently_writing] .= $data; } else { $rss_channel[$main][$currently_writing] = $data; } break; case "ITEMS": if (isset($rss_channel[$main][$item_counter][$currently_writing])) { $rss_channel[$main][$item_counter][$currently_writing] .= $data; } else { //print ("rss_channel[$main][$item_counter][$currently_writing] = $data<br>"); $rss_channel[$main][$item_counter][$currently_writing] = $data; } break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); if (!($fp = fopen($file, "r"))) { die("could not open XML input"); } while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } xml_parser_free($xml_parser); // output as HTML print ("<html><head><title>PHP RSS Reader</title></head><body>"); if (isset($rss_channel["IMAGE"])) { print ("<a href=\"" . $rss_channel["LINK"] . "\" target=\"_blank\"><img border=\"0\" src=\"" . $rss_channel["IMAGE"]["URL"] . "\" align=\"middle\" alt=\"" . $rss_channel["IMAGE"]["TITLE"] . "\"></a> <font size=\"5\">" . $rss_channel["TITLE"] . "</font><br><br>"); } else { print ("<font size=\"5\">" . $rss_channel["TITLE"] . "</font><br><br>"); } print ("<i>" . $rss_channel["DESCRIPTION"] . "</i><br><br>"); if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) { print ("\n<table width=\"100%\" border=\"1\"><tr><td width=\"100%\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\"><h2>" . $rss_channel["ITEMS"][$i]["TITLE"] . "</h2></a></b>"); print ("<i>" . html_entity_decode($rss_channel["ITEMS"][$i]["DESCRIPTION"]) . "</i>"); print ("</td></tr></table><br>"); } } else { print ("<b>There are no articles in this feed.</b>"); } } print ("</body></html>"); ?>
  16. No, this is not right. Please submit a helpdesk ticket. Link on top of page.
  17. I am trying to setup dada mail for the webring but gets stuck in these... Lets say my cpanelusername is thomas and I place these files outside the public_htm, what will $FILES = '/usr/home/justin/dada_files'; look for me then? Then it says Do I use /usr/sbin/sendmail or /usr/lib/sendmail And what exactly do I type if name is still thomas?
  18. Air
  19. The TCH Customer Webring is now back online. Sorry for the extended downtime. We also want to take the opportunity to ask those who wants updates about the webring in future to subscribe to our mailinglist. Thank you, Thomas & Kasey P.S If you find any broken links etc, please let us know.
  20. I dont know if this has been asked before, sorry for repeating if so... "Help desk" and "Server status" links opens in new window. Wouldnt it be better if "Web hosting home" opens in new window too?
  21. Do you mean hosting account or domain account? If domain account, I have run into this myself. I solved it with registering a new user if I remember correctly.
  22. See if this is what you are looking for.
  23. Cake
  24. Let us know when hotlink is off so we (who have problem) can recheck.
  25. No worries. We have all been there. Just do the parts you do understand and ask us if you need. What I ment with the remove skin was though that it might have been a poorly written skin and I wanted to see if there was a problem with wither the basic installation or the skin. Now we know.
×
×
  • Create New...