rclayh
|
| Posted: 05/24/2003, 8:37 PM |
|
Can anybody point me to an example the explains the mechanics of the newsfeed in the Portal example. I've looked through the code in PHP and I can't tell where the app is fetching the Meerkat newsfeed. Any tips would be greatly appreciated.
Clay
|
|
|
 |
Ed
|
| Posted: 05/25/2003, 4:11 AM |
|
It is not in the code , it is in the database.
Table > news
Field > news_desc
Regards,
Ed,
|
|
|
 |
DaveRexel
|
| Posted: 05/25/2003, 5:57 AM |
|
::
And here's a wealth of information on how to use and configure it :
http://www.oreillynet.com/pub/a/rss/2000/05/09/meerkat_api.html?page=3
Dave
|
|
|
 |
rclayh
|
| Posted: 05/25/2003, 7:37 AM |
|
Thanks for the responses, but I was hoping to identify exactly where in the code generated by Code Charge it makes the call to Meerkat. I can't find it (or don't recognize it when I see it). Somewhere in the code the page needs to make a call to pull in the HTML and that's what I'm looking for.
|
|
|
 |
DaveRexel
|
| Posted: 05/25/2003, 8:30 AM |
|
Hi Clay
The news_desc field in the news table used in the Portal contains
<script language="JavaScript" type="text/javascript" src="http://www.oreillynet.com/meerkat/?m=296&_fl=js">
</script>
having set a label control to retrieve this field as HTML CCS will show the resulting HTML. Meerkat server does all the parsing & display generation, CCS just handles this as normal label.
Dave
|
|
|
 |
DaveRexel
|
| Posted: 05/25/2003, 8:48 AM |
|
::
Here's some snippets from a fresh generated Portal
-------------------
$this->news_html = new clsControl(ccsLabel, "news_html", "news_html", ccsMemo, "", CCGetRequestParam("news_html", ccsGet));
$this->news_html->HTML = true;
-------------------
function SetValues()
{
$this->news_html->SetDBValue($this->f("news_desc"));
}
--------------------
But if you want to further parse and manipulate the resulting Meerkat HTML you can use regexps in CCS events to rewrite label component news_html display.
|
|
|
 |
rclayh
|
| Posted: 05/25/2003, 3:50 PM |
|
Thanks everybody - once again I should've dug a little deeper. Thanks for the help.
|
|
|
 |