Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

Everything posted by ober

  1. ??? First of all it's "news"... not "new's". Secondly, it's going to be hard to find a feed in spanish since most international news is in english. Third, handling a feed is really quite simple. <div style="overflow:auto;height:100px;border:1px solid gray;background-color:white;padding:5px;font-size:10pt;" class="smalltext"> <?php $insideitem = false; $tag = ""; $title = ""; $description = ""; $link = ""; 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'>%s</a></b></dt>", trim($link),htmlspecialchars(trim($title))); printf("<dd>%s</dd>",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("http://www.entrepreneur.com/feeds/marketing.rss","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); ?> </div> Simply replace the link with the address to whatever feed you want to pull.
  2. Sorry... that's just not going to happen.
  3. Some people don't know when to quit while they're ahead.
  4. Mine doesn't get used that much, and it's not part of my main site, so I haven't had the bot issues.
  5. I don't know Jeff... I looked long and hard when I thought about writing my own, and I landed on http://gallery.menalto.com/ It does everything I think you'd ever really want, and to reproduce what it does with it's efficiency would be very hard and VERY time consuming. I normally like to build stuff myself, but I took the "why reinvent the wheel" approach on this one. Either way, I think the most efficient way would be to store several different versions of the file. Doing all that manipulation in realtime would be too time consuming. Another issue you'll run into is the upload limits. I had to put a modified php.ini file in the base directory to overcome it. It would be nice if that was a setting in the admin panel that you could automatically generate those settings files.
  6. .... thanks for the definitions, but I think most of us knew that.
  7. If you have any additional suggestions, PM either one of us or any of the mods and we'll add to the list. I've added 1and1.
  8. Cep, if you're seeing errors on the main page, try logging out and then logging back in.  We've made some changes on the main site and for whatever reason, your SESSION needs to be refreshed. I personally haven't seen as many issues lately with the connection problems.  I think we've worked some of that out.
  9. I'm still amazed that ASM is consistently the weed-out class that trips up most college students.
  10. I would agree with that idea.  Good luck and post again if that doesn't resolve it.
  11. Another vote here... MUCH better than FCKEditor and easier to configure by far.
  12. Post in freelancing.  It all depends on your skillset.  If all you know is web development, it's not going to cut it.  Very few companies need web developers.  They need application developers, computer scientists, DBAs, design engineers... And coming from someone that just moved and got a new job, I dealt with at least 10 recruiters, some rather heavily, and I posted my resume on all the job sites, some I hadn't even heard of... and where did it get me?  Nowhere.  I ended up emailing a company that I randomly heard about and badda bing, I was in.  Granted, I had another interview that made me an offer the same day, but that's besides the point.  I have a pretty stacked resume for my age and it was still hard. Good luck.
  13. If you don't want to become a tut writer, send the information to either myself or steelmanronald06 and we will add it for you and give you credit.
  14. I signed up a while ago but haven't had time to give it a go recently.
  15. The "free worldwide multiplayer"... whatever image on the front page is blurry as hell.  I'd also rather see you use a more styled link for the navigation rather than the underline.  Something that switches up (background or something) when you hover.  And I love the site too.. been on there before and it's great :)
  16. But in some respects, we want the leeches.  It helps our popularity and gets our content out there.
  17. Please note, we've made some server settings changes and things should work a little more smoothly now.  Unforunately with the popularity of the site, we get TONS of bots and leaches "borrowing" content from the site, which eats up the available connections.  That's why you were seeing what you were.
  18. Is there a reason you can't decompress it in the backend and then just pass the decompressed contents back to the page? 
  19. I have contacted the owners of the server and they are looking into it.  It seems we're getting too big for our britches.  ;) EDIT: As a side note, please do NOT use all caps for thread titles.  It is against the rules and this is your last warning.
  20. Or letting it run it's course and finish indexing (not sure how long that takes).
  • 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.