Blogs, Tagging, RSS Feeds
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsSearch Engine StrategiesBlogs, Tagging, RSS Feeds

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old March 30th, 2005, 02:32 PM
toddieg's Avatar
toddieg toddieg is offline
Permanently Banned
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Posts: 1,936 toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 6 h 30 m 6 sec
Reputation Power: 12
PHP / RSS Questions

Hi - I just had a quick question.. I'm not a PHP programmer or anything, but I was wondering 2 thing.

1. Can I set up my RSS feed to have the links open in a new window?
2. How can I change my RSS feed to use my style sheet?

(i have just set up an RSS feed on www.sddefenselawyers.com and was hoping i could fix this problem)

the php code that i added in works with MAGPIERSS and looks like this
Quote:
<?php
require_once 'rss_fetch.inc';

$url = 'http://www.law.com/newswire_rss.xml' ;
$rss = fetch_rss($url);

echo "Site: ", $rss->channel['title'], "<br>\n";
if ( $rss and !$rss->ERROR) {
foreach ($rss->items as $item ) {
echo "<p><a href=" . $item[link] . ">" . $item[title] . "</a><br>\n";

echo $item[ description ] . "</p>" ;
}
} else {
echo "RSS Error: " . $rss->ERROR . "<BR><BR>" ;
}
?>


Any help would be appreciated.

Thanks
__________________
It's been fun everyone... Time to leave for good. See this for more details.

Reply With Quote
  #2  
Old March 30th, 2005, 03:48 PM
1EightT 1EightT is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 409 1EightT User rank is Private First Class (20 - 50 Reputation Level)1EightT User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 53 m 52 sec
Reputation Power: 6
set the target to blank using html where the href string is to have it open i na new window. Something along the lines of echo "<p><a href=" . $item[link] . " target="_blank">" . $item[title] . "</a><br>\n"; should work

Reply With Quote
  #3  
Old March 30th, 2005, 04:05 PM
toddieg's Avatar
toddieg toddieg is offline
Permanently Banned
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Posts: 1,936 toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level)toddieg User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 6 h 30 m 6 sec
Reputation Power: 12
thanks

Reply With Quote
Reply

Viewing: SEO Chat ForumsSearch Engine StrategiesBlogs, Tagging, RSS Feeds > PHP / RSS Questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway