Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: MediaWiki edits -> BP activity streams


LPH2005
Participant

@lph2005

It looks like the INSERT into db does not align for WP 3.0. So I modified the mysql_query statement

Also, I changed the lines with $wpmudp to ($wpmudp, $link) in which $link was added as:

$link = mysql_connect(‘localhost’, ‘db’, ‘db_password’);
if (!$link) {
die(‘Not connected : ‘ . mysql_error());
}

This allowed the extension to attach to the proper database (my mediawiki is on a different host, with different user and password).

The only thing incorrect is the time. And I’m working on a solution for it.

See this thread for how I modified the query statement:
https://buddypress.org/community/groups/creating-extending/forum/topic/db-inserts-into-bp_activity

Skip to toolbar