https://trac.bbpress.org/ticket/1355
I have opened a ticket that provides a patch for xmlrpc.php.
https://trac.bbpress.org/ticket/1355
I have opened a ticket that provides a patch for xmlrpc.php.
Just managed another way by patching bbPress’ xmlrpc.php and overwriting $_SERVER with the desired value.
// Poster IP
$_SERVER['REMOTE_ADDR'] = isset( $structure['poster_ip'] ) ? $structure['poster_ip'] : $_SERVER['REMOTE_ADDR'];
Then what I do on the bbPress Mobile side is send the data:
$params_array = new xmlrpcval(
array(
"title" => new xmlrpcval($title, "string"),
"text" => new xmlrpcval($text, "string"),
"forum_id" => new xmlrpcval($forum_id, "int"),
"tags" => new xmlrpcval($tags, "string"),
"poster_ip" => new xmlrpcval($_SERVER['REMOTE_ADDR'], "string")),
"struct");
Just managed another way by patching bbPress’ xmlrpc.php and overwriting $_SERVER with the desired value.
// Poster IP
$_SERVER['REMOTE_ADDR'] = isset( $structure['poster_ip'] ) ? $structure['poster_ip'] : $_SERVER['REMOTE_ADDR'];
Then what I do on the bbPress Mobile side is send the data:
$params_array = new xmlrpcval(
array(
"title" => new xmlrpcval($title, "string"),
"text" => new xmlrpcval($text, "string"),
"forum_id" => new xmlrpcval($forum_id, "int"),
"tags" => new xmlrpcval($tags, "string"),
"poster_ip" => new xmlrpcval($_SERVER['REMOTE_ADDR'], "string")),
"struct");
Sweet. In my plugin, I just made this:
if ( isset($_GET['poster_ip']) && !empty($_GET['poster_ip']) ) {
$bbdb->query( $bbdb->prepare( "UPDATE $bbdb->posts SET poster_ip = %s WHERE post_id = %d", $_GET['poster_ip'], $post_id ) );
}
And the .'&poster_ip='.$_SERVER['REMOTE_ADDR'] is in bbPress Mobile.
It would probably be better doing it a different way, can anyone suggest something?
Sweet. In my plugin, I just made this:
if ( isset($_GET['poster_ip']) && !empty($_GET['poster_ip']) ) {
$bbdb->query( $bbdb->prepare( "UPDATE $bbdb->posts SET poster_ip = %s WHERE post_id = %d", $_GET['poster_ip'], $post_id ) );
}
And the .'&poster_ip='.$_SERVER['REMOTE_ADDR'] is in bbPress Mobile.
It would probably be better doing it a different way, can anyone suggest something?
While developing and testing my bbPress Mobile XMLRPC interface, I have come across a situation where the poster IP would be of the server that bbPress Mobile is hosted on, not the actual poster’s IP address.
I would like to suggest that it be possible for the poster’s IP address be able to be set if the post is sent through XMLRPC. This way, I would be able to pass-through the IP address of the poster through bbPress Mobile. Fall back would be of the server’s IP that hosts bbPress Mobile.
I understand that it would currently be working correctly for a client that is on the user’s machine, such as a native Android application.
I’m going to try and figure out whether I can incorporate this functionality into my XMLRPC Client Info plugin or whether I need to patch bbPress core.
Any ideas on when a beta of this bbPress plugin will be available to download?
Any ideas on when a beta of this bbPress plugin will be available to download?
I’ve found the Problem. It was collision between my TinyMCE-Plugin and an older Version of AllowImages.
I’ve found the Problem. It was collision between my TinyMCE-Plugin and an older Version of AllowImages.
Hi mr_pelle,
If you want to add meta description only on homepage, then see
“bbpressbb-templateskakumeifront-page.php”
If you want to add in header for all forum, then see
“bbpressbb-templateskakumeiheader.php”
Regards
Hi mr_pelle,
If you want to add meta description only on homepage, then see
“bbpressbb-templateskakumeifront-page.php”
If you want to add in header for all forum, then see
“bbpressbb-templateskakumeiheader.php”
Regards
Is there a way to add a variable to the links?
I wanna make a mobile layout and it needs to be passed…
like: www.site.com/bbpress/register.php?mobile=true … if you go then to the next step,
the ?mobile=true stays until you close your browser…
Maybe bad explained…
I’ve tried it. But with zaerl I get two Quotations at the after href= and two at the end. Plus: http: is removed.
I’ve tried it. But with zaerl I get two Quotations at the after href= and two at the end. Plus: http: is removed.
Try zaerl Editor instead, I’ve never had problems with that.
Try zaerl Editor instead, I’ve never had problems with that.
Are you sure you’re using an admin account?
Are you sure you’re using an admin account?
Maybe someone can help me here.
Everytime I post a Link in my BBPress-Forum. It adds a ” to the Link.
For Example:
BBpress
is transformed to
BBpress
I use a TinyMCE-Plugin, which I wrote on my own. But if I use Editor-Plugins from BBPress Plugin Repository (Wysiwyg CKEditor for Example), the same thing happens.
Any Ideas?
BBPress 1.0.2 on Apache
Jan
Update:
No longer is a patched xmlrpc.php required. I realised it can all be done with the XMLRPC Client Info plugin.
http://master5o1.com/projects/bbpress-mobile/
Update:
No longer is a patched xmlrpc.php required. I realised it can all be done with the XMLRPC Client Info plugin.
http://master5o1.com/projects/bbpress-mobile/
The deadline is still far away, I think so too.
@Willabee – Would love to see what you come up with.