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: 13
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: 410 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 59 m 3 sec
Reputation Power: 7
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: 13
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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT