phpLinkBid RSS Feeds MOD


phpLinkBid RSS Feeds MOD

Posted 2008-08-04 in News

Hot off the press! We just released a totally free phpLinkBid RSS Feeds MOD. This is the MOD you've been waiting for.

This is a completely free MOD for phpLinkBid v1.4 that will let you manage unlimited RSS feeds in phpLinkBid Administration, assign them to categories, and easily add them to your templates. This MOD is currently a beta release, with functionality that will be deprecated in phpLinkBid v1.6. I'm releasing this MOD to tide everyone over until v1.6 arrives.

Please read the full details and give your feedback on this new MOD!



Reader Comments (19 comments)

BidTopLink
Just added the new mod to my directory at

www.bidtoplink.com

Only took a few minutes and very easy to
install.

I was working on this myself so its saved a lot
of time and headaces.

Thanks very much for a great free mod, its very
much appreciated.

Terry
Tekime
Hi Terry, I'm glad you decided to implement this MOD. Although your site doesn't seem to be loading for me at this time - I just get a blank page. :confused:
BidTopLink
Hi

Thats interesting you should say that.

I installed the MOD and then started having
problems with the site loading.

I keep getting an error page and then if I refresh the
page several times sometimes it will work and then
sometimes not.

I have never had problems before so I removed the
MOD.

After removing the MOD I was still getting the same
problem, so I thought it cant be the MOD and must
probably be my browser.

So I uploaded the MOD again.

I run the site on a dedicated server and all my other
sites seem to be OK so I am guessing its not the
server, but not 100% sure.

The reason I thought it was my browser was because
another of my sites was partly OK however not showing some videos
when requested and brought up an error page, but after asking other
people they said they could see them.

So now I am really confused.

Terry
BidTopLink
Hi

I have just completely removed MOD and so far site
appears to be OK.

So not sure if this is just coincidence or might suggest
MOD was causing the site to error.

Terry
Tekime
This MOD requires RSS requests for each load, so it's possible that the timeout on your server is set really low, thus on certain pages that take too long to load it times out. This would mean the MOD could increase the likelihood of the problem occurring, but not necessarily cause it occur.

I am working on caching for this MOD and should have it added really soon - it's actually finished for the most part. This should speed up everything and also help with your problem if it is like I described above.
BidTopLink
OK Look forward to trying new MOD when
ready.

Thanks

Terry
bigidea_guy
I will test it when i get home, I'll let you know how it goes :D very nice mod though
madtay
I had a go installing this but for some reason the code in the /inc/footer.php is causing an internal server error :confused:

Edit: The internal server error is on the homepage only :confused::confused: The mod works and all the category pages are showing the feeds, just the homepage has internal server error. Any ideas please?
Tekime
That is very strange. Are you sure it's in connection with this MOD? Just because an Internal Server Error is not common with a scripting problem. I can only guess that a timeout is occuring somehow, but if it's consistently on one page and works on the others... just strange.

Perhaps it's worth waiting for the cache version, should be up this weekend I'm plugging away on a number of items.
madtay
Yes it definetly appears to be the code im adding to /inc/footer.php because it only happens when i add that code, then when i take it out its working fine again. Could it be something im missing thats not installed on the server im using?

I will wait for the cached version, not in any rush to install it just cant make sense of why the error is on the homepage only, weird!

I also noticed in the root folder there were dozens of 'core' files left behind.. is that normal too?
Tekime
Not normal at all... core files are dumps made when a script terminates abnormally on the server. You might learn what happened by checking Apache error logs, if you were so inclined to do so.
madtay
Hi Tekime,

All i see in the error log is about 30 or 40 lines of:

Premature end of script headers: /public_html/index.php

Not sure what that means.
Tekime
Thanks for checking into it. That error can mean several things but a script timeout is a definite possibility. Once I get this MOD updated hopefully you can try it out, and if the error is still happening we'll have to dig a bit deeper!
madtay
Ok cool. Thanks for the reply :)
Ragenrat
Going for the rss feed mod :D
Hopefully soon it will be up and rocking ;)
Mark
TopWeb
First it was so weird because it worked for two or three pages then quit for no reason. Back in my cPanel file manager I could see dozens of 18 meg files being written to root. They were all files named core.##### (a core memory dump). Testing showed it came after the code was added to inc/footer.php

The site crashes and shows this on the front page...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4

FrontPage/5.0.2.2635 Server at #####.com Port 80

Even thought the front page had this error I could still get in behind and do everything with the server. I had to delete allot of huge core files to reclaim space. Everyone might want to check to see if they have a ton of junk files sitting in their root.

Hope this helps find a fix.

UPDATE 12/22/08

Downloaded fresh MOD
Installed carefully again
MOD is working now HOWEVER
In the sql default feeds only 2 are rss are working.

The following are not...

http://biddirectory.blogspot.com/feeds/posts/defaulthttp://feeds.feedburner.com/DirectoryBlog
http://feeds.feedburner.com/GabrielHarper

When I go to these URLs Firefox add rss popup comes up and the links work fine from the browser. I have triple checked to activate them and tryed setting them to all directories and specific ones.
ebidnow
ok i add these in in the footer php got the error

/** BEGIN phpLinkBid RSS Feeds MOD **/
include(PATH_LIB . 'class.kRssFeed.php');

// Loop through active feeds
$sql = 'SELECT * FROM ' . TBL_FEEDS . ' WHERE feed_status = 1';
if(($rs = $db->execute($sql)) && (!$rs->EOF))
{
$phplb_feeds_category = '';
while(!$rs->EOF)
{
$feed_html = '';
$rs->fields = str_replace('', urlencode($cat->data), $rs->fields);
$rs->fields = str_replace('', $cat->data, $rs->fields);
$kRssFeed = new kRssFeed();
$kRssFeed->getFeed($rs->fields, $rs->fields);
if(is_array($kRssFeed->feed))
{
if($rs->fields == 1)
{
$feed_html = '

' . $rs->fields . '

';
}
foreach($kRssFeed->feed as $item=>$link)
{
$feed_html .= '

' . $link . '
' . $link . '

';
}
$sql = 'UPDATE ' . TBL_FEEDS . ' SET feed_cache = "' . addslashes($feed_html) . '", dateupdated = "' . unix_to_dbtime(time()) . '" WHERE feed_id = ' . $rs->fields;
$db->execute($sql);
}
if(($this_view == 'cat'))
{
if($rs->fields == 1)
{
if($this_id == $rs->fields)
{
$phplb_feeds_category .= $feed_html;
}
elseif($rs->fields == 0)
{
$phplb_feeds_category .= $feed_html;
}
}
}
$tpl->assign('phplb_feeds_' . $rs->fields, $feed_html);

$rs->MoveNext();
}
$tpl->assign('phplb_feeds_category', $phplb_feeds_category);
}
/** END phpLinkBid RSS Feeds MOD **/
netentropy
when i add the code to /inc/footer.php

I get a 500 error

has anyone worked around this
netentropy
interesting, it works if you go to /rss.php even without the inc file change




 

Subscribe via RSS

Stay current with phpLinkBid news and subscribe in your favorite RSS reader.


Subscribe via Email

Get the latest phpLinkBid news delivered to your inbox.

Add to Technorati Favorites