Baldwin238
Technical User
Ok.. This is going to fairly long and complicated (at least for me).
The long and short of it....I am taking a feed and putting it onto my site at ( The feed (or a portion of it) is here:
The sections where it says <sitelink> I want to add to my site, but with MY referral links in it. The ones currently there are for a different site.
Can I do an if..then statement with a replace function in there as well? I am an .asp person and am not sure ow to even go about STARTING this. The code I have on my site to get the feed as it is now is...
Any suggestions would be greatly appreciated!
Jeff Baldwin
The long and short of it....I am taking a feed and putting it onto my site at ( The feed (or a portion of it) is here:
Code:
- <tournament>
<time>12:15 AM</time>
<type>No Limit Texas Holdem</type>
<payout>$50</payout>
<sitename>Absolute Poker</sitename>
<sitelink>[URL unfurl="true"]http://www.xxxx.com/fclick/fclick.php?fid=absolute</sitelink>[/URL]
</tournament>
- <tournament>
<time>12:50 AM</time>
<type>No Limit Texas Holdem</type>
<payout>$1250</payout>
<sitename>Party Poker</sitename>
<sitelink>[URL unfurl="true"]http://www.xxxx.com/fclick/fclick.php?fid=partypoker</sitelink>[/URL]
</tournament>
- <tournament>
<time>01:00 AM</time>
<type>No Limit Texas Holdem</type>
<payout>$1000</payout>
<sitename>Gaming Club Poker</sitename>
<sitelink>[URL unfurl="true"]http://www.xxxx.com/fclick/fclick.php?fid=gamingclub2</sitelink>[/URL]
</tournament>
The sections where it says <sitelink> I want to add to my site, but with MY referral links in it. The ones currently there are for a different site.
Can I do an if..then statement with a replace function in there as well? I am an .asp person and am not sure ow to even go about STARTING this. The code I have on my site to get the feed as it is now is...
Code:
<?php
$file = '[URL unfurl="true"]http://www.freerolls.net/feed.php';[/URL]
require_once('xml.parser.class.php');
$xml = new xml_parser_class();
$xml->parseFile($file);
$tree = $xml->getTree();
unset($xml);
print '<table border="0" cellpadding="2" cellspacing="0" width="" class="tm">';
print '<tr class="caption"><td>Time (Eastern)</td><td>Payouts</td><td>Site</td></tr>';
$i = 0;
foreach($tree['freerolls']['tournament'] as $k)
{
$i++;
print '<tr class="'.(!($i%2)?'rl':'rd').'">';
print '<td>'.$k['time']['value'].'</td>';
print '<td>'.$k['payout']['value'].'</td>';
print '<td>'.$k['sitename']['value'].'</td>';
print '</tr>';
}
print '</table>';
?>
Any suggestions would be greatly appreciated!
Jeff Baldwin
