-
- CommentAuthor4evrblu
- CommentTimeJan 10th 2007
Well, I was curious about this program called caRP. It seemed like a very interesting way to increase traffic to your site, via increased pressence in the search engines. Here is a link to caRP to tell you what it does: caRP
The installation is not all that difficult, but IMHO the instructions for customizing it are beyond vague.
You have to create a separate database for caRP to write to, and when you install it caRP creates all the necessary tables for the DB.
Then you add the following code to your page where you want your live feeds to go:<h2>Our Live RSS Feeds</h2>
<?php
require_once '/home/content/t/o/t/totalphysique/html/wordpress/carp/carp.php';
/*** Setup Code ***/
CarpConf('cache-method','mysql');
CarpConf('mysql-connect',1);
CarpConf('mysql-database','totalcarp');
CarpConf('mysql-host','yourhostname');
CarpConf('mysql-username','******');
CarpConf('mysql-password','********');
/*** End Setup Code ***/
// Add any desired configuration settings before CarpCacheShow
// using "CarpConf" and other functions
CarpCacheShow('http://totalphysiqueonline.com/feed/');
?>
What this does is somehow write to the carp database, but at the same time it seems to somehow write to your blog database, once the html output is generated.
Once I installed all of the above and got my feeds going, all of the sudden my site screeched to a halt. It was snail-pace slow to load. When I logged into admin, I began to get strange errors when trying to navigate from one area to another.
I just wanted to call to your attention the error. It looks like:
WordPress database error: [Lost connection to MySQL server during query]
SELECT option_value FROM wp_options WHERE option_name = 'recently_edited' LIMIT 1
I began to suspect it had something to do with caRP, do I deleted the caRP database, removed the above code from my home.php file, and believe it or not that did not fix the issue. I kept getting the snail-pace performance and the same error.
I had to then drop my entire physique database and import the pre-caRP backup I made last night at 11 AM.
Once I did that , all was back to normal.
Any thoughts? -
- CommentAuthor4evrblu
- CommentTimeJan 10th 2007 edited by 4evrblu on the 10th January 2007 at 19:27:43 EST
note: I am willing to hold out for the possibility I did something wrong of course. I don't want to appear to be slandering someones software. I just wanted to give a heads up to people who might be trying caRP, just in case they start to get some wonkiness to their sites.
Maybe the issue is with GoDaddy database servers? Could be. hmmm
Maybe a reinstall of the utility? -
- CommentAuthor4evrblu
- CommentTimeJan 10th 2007 edited by 4evrblu on the 10th January 2007 at 20:22:01 EST
Just by way of a follow-up...I was able to locate the creator of caRP and we discussed the issue, and he seemed to think that there was a possibility that someone gained access to my user name and pass for that data base and was using it to do queries on it.
We both suspected this because when I sent some info in a forum thread for caRP, inadvertently there was some code that had that information contained within it. When I saw it, I of course deleted it immediately. It was only there for an instant, but it may have been up there long enough for someone to snag it. It is a remote possibility, but a distinct one.
I am going to attempt a reinstall of caRP to see what happens. I am all backed up, of course ;)
I hope that is the case, because caRP looks cool. -
-
CommentAuthorChristopher
- CommentTimeJan 11th 2007 edited by Christopher on the 11th January 2007 at 03:52:42 EST
Not trying to push you away from what your using, just offering an alternative. Have you tried lastRSS.php? I've got a demo page setup on my server at edg3.co.uk/news/ that I use as quick access to the BBC / Digg / OpenDesigns / Slashdot feeds. Was really simple to setup, no database required, all stored in flat temp files on your server etc. -
-
-
CommentAuthorarwen54
- CommentTimeJan 11th 2007
when I recommended CaRP in another thread, it was really meant for non-Wordpress users...there are other WordPress plugins you can use to have feeds on your blog...just search http://wp-plugins.net/
the alternative that Christopher posted above may be the ticket also... -
-
-
CommentAuthorLobsterMan
- CommentTimeJan 11th 2007
I use lastRSS with various projects, It's pretty easy to set up and customize. -
-
-
CommentAuthorChristopher
- CommentTimeJan 11th 2007
yeah i only suggested the alternative because it doesn't need a database to run, so wouldn't interfere with anything and is extremely difficult to break or mess up anything with it. but theres bound to be a decent plugin available for WP like Karen suggested -
-
- CommentAuthor4evrblu
- CommentTimeJan 11th 2007
Well, thanks for the suggestion Chris. I will check it out.
I managed to reinstall it, and this time it is working smoothly, and according to the caRP programmer, Antone, the two databases should not interact at all. Anyway, I will look at your demo and then take it from there. -
- CommentAuthor4evrblu
- CommentTimeJan 11th 2007
Chris, is lastrss.php uploaded to the root dir of the theme folder you are using, or the root dir of your WP blog?
Also, is// include lastRSS library
include './lastRSS.php';
// create lastRSS object
$rss = new lastRSS;
// setup transparent cache
$rss->cache_dir = './cache';
$rss->cache_time = 3600; // one hour
// load some RSS file
if ($rs = $rss->get('URL of some RSS file')) {
// here we can work with RSS fields
}
else {
die ('Error: RSS file not found...');
}
inserted into the home.php template? -
-
CommentAuthorChristopher
- CommentTimeJan 11th 2007
I have this code at the top of my document, listing the RSS feeds and using a unique name to identify them. Also the RSS feeds are styled to use a standard list using UL & LI's.
Then I call them in the document where I wish to show the RSS feeds using this code.
(Linked the code snippets to my external Pastebin to save making this post to long.)
p.s. I don't use it with WordPress, but would assume you could include the main code in your header at the very top, and just call them as normal where you want to show them using the calling code (make sense I hope...) -
-
- CommentAuthor4evrblu
- CommentTimeJan 11th 2007
OK Chris,
I will go look at your code.
In the meantime, are you saying that the code you have pasted in pastebin would go in my header.php template???? Hmmm
Or, did you mean that I would insert it into my home.php file, which I use to manage my static page for my blog?
1 to 11 of 11
