Well I have two RSS feeds that are merged into one and converted into HTML via a php script. The php script uses an HTML template and is included into my news.php page.
The HTML template looks like this:
<BODY>
<H1>~~~FeedTitle~~~</H1>
<H2>This feed is a combination of our News blog and the best bits from our Technology blog. To see the two blogs separately</H2>
<TABLE width="100%">
~~~BeginItemsRecord~~~
<TR>
<TD>
~~~ItemPubShortDate~~~ ~~~ItemPubShortTime~~~
</TD>
</TR>
<TR>
<TD>
<B><A href="~~~ItemGuid~~~">~~~ItemTitle~~~</A></B>
</TD>
</TR>
<TR>
<TD>
~~~ItemDescription~~~
<BR><br><br>
</TD>
<BR>
</TR>
~~~EndItemsRecord~~~
</TABLE>
</BODY>
As you can see, the php script inserts the different bits of RSS into the template (everything inbetween ~~~BeginItemsRecord~~~ and ~~~EndItemsRecord~~~ is duplicated for each entry).
At the moment the ItemGuid taken from the RSS script can't be used as a hyperlink as it's in this format:
tag:blogger.com,1999:blog-7429518092685469770.post-961602106155280416
So I have a script that converts it into this:
http://www.blogger.com/feeds/8726257680 ... 4040822617
Script is as follows:
Code: Select all
<?php
$link = "tag:blogger.com,1999:blog-7429518092685469770.post-961602106155280416";
$blogID = substr($link, 26, 19);
$postID = substr($link, 51);
$orgstring = "http://www.blogger.com/blogID/posts/default/postID";
$string1 = str_replace("blogID", $blogID, $orgstring);
$string = str_replace("postID", $postID, $string1);
?>
$string is the new hyperlink.
$link I need to be taken from the news.php page.
So I need to edit the above template HTML file (it can't have any php in it, by the way, or the RSS > HTML script won't work) so that the ~~~ItemTitle~~~, when clicked, posts the ~~~ItemGuid~~~ to my php script and opens a new page with an <? include for $string.
Hope that's more clear.
Does that sound at all possible?