Info
- 43 posts
- 6 voices
- Started 1 year ago by master5o1
- Latest reply from intimez
Mobile bbPress (using XML-RPC api)
-
- Posted 1 year ago #
Not sure if it existed already, but I made this myself. It's a mobile-friendly interface to bbPress that uses the XML-RPC api.
For a "via Mobile bbPress" thing in posts you need to patch xmlrpc.php and install a plugin. It is probably possible to move the patching into the plugin, but I'm not sure what or how.
Just want some php/bbpress gurus to look through it and see stuff that I can't.
http://master5o1.com/projects/bbpress-mobile/
To see it in operation, check our http://dump.master5o1.com/mobi/.
That currently points to http://tartarus.co.nz/community/http://m.tartarus.co.nz/ is the mobile version of Tartarus.
-
- Posted 1 year ago #
good work
-
- Posted 1 year ago #
Nice..
-
- Posted 1 year ago #
moar feedback desired :)
-
- Posted 1 year ago #
Just registered a project on LaunchPad. Browser the source for index.php and tell me what you think :D
-
- Posted 1 year ago #
Sorry to be naiive but is this a plugin or a theme for bbpress? I would be happy to test this for you, as it would be useful for my work.
I have something similar set up for my other wordpress site that has the wp-iphone plug-in and a vast html forum server, it works ok, but it is very useful.
I am not a guru of any sort, but I would be happy to test it for you, provided that I am given some clear guidance. I can find my way around php to make adjustments, but not much yet.
-
- Posted 1 year ago #
It's a stand alone system using the XML-RPC api for bbPress.
For example, http://m.tartarus.co.nz points to the bbPress installation on http://tartarus.co.nz/community,
and (currently) http://dump.master5o1.com/mobi/ also points to the same bbPress install.
-
- Posted 1 year ago #
I've uploaded a new bbPress-Mobile.zip to my website that has some other things.
What you'd put on http://m.example.com/ would be in the ./mobile-bbpress./ folder.
The plugin for bbPress is the ./xmlrpc-client-info/ folder, which you'd put on the bbPress side.
And then to actually make the plugin receive anything, you'd patch the xmlrpc.php file, details are in ./xmlrpc-patch/ -- basically replace your existing xmlrpc.php with xmlrpc.patched.php.
-
- Posted 1 year ago #
i have downloaded the files, and will mess around with them a bit. Just to be clear, i upload the mobile file outside of the bbpress installation, and the patches within the bbpress files?
ie: address technically be http://www.example.com/mobile-bbpress
rather than http://www.example.com/bbpress/mobile-bbpress -
- Posted 1 year ago #
Plugin: example.com/bbpress/my-plugins/xml-client-info/
Patch: example.com/bbpress/xmlrpc.php (patched) *
Mobile: example.com/mobile-bbpress/index.php **
* If you change the 'xmlrpc.php' filename in mobile-bbpress/index.php to 'xmlrpc.patched.php' then you can just copy xmlrpc.patched.php to your root bbpress directory instead of modifying the stock bbpress one.
** Mobile: m.example.com/index.php (subdomain)
-
- Posted 1 year ago #
I have set up my own forum for testing and support purposes:
http://dump.master5o1.com/bbpr/I have also pointed my bbPress Mobile instance to that forum:
http://dump.master5o1.com/mobi/ -
- Posted 1 year ago #
So to configure this baby..
i have uploaded everything, including patch, activated plugin.
at this point
http://www.terralingua.org/mobile-bbpress/index.php
i get the internal server error.
of course, it has not been configured.
i figure i work with this bit..$uri = "http://m.example.com";
$brand = "bbPress Mobile";
$host = "example.com"
$directory = ""; // if you bbPress is in a folder such as /forumso i have tried...
$uri = "http://m.terralingua.org";
$brand = "bbPress Mobile";
$host = "terralingua.org"
$directory = "/bbpress"; // if you bbPress is in a folder such as /forumand i still the the same error message, i am assuming it is my filepaths...
i can post this on your support forum you are setting up if you like to break it in... -
- Posted 1 year ago #
Oh yeah, .htaccess is something to edit in that mobile-bbpress folder. And tick the option in bbPress' settings to allow the xmlrpc api* to be used.
* /bb-admin/options-writing.php
-
- Posted 1 year ago #
the xmlrpc is ticked, but i do not know how to open the .htaccess file
thank you for the instantanious response!
sorry, got it open with notepad.. -
- Posted 1 year ago #
.htaccess file can be opened in any simply text editor as a regular text file. E.g.: Note pad, gedit, etc.
Mine:
$uri = "http://dump.master5o1.com/mobi"; $brand = "bbPress Mobile"; $host = "dump.master5o1.com"; $directory = "/bbpr"; // if you bbPress is in a folder such as /forum // Make an object to represent our server. $server = new xmlrpc_client($directory.'/xmlrpc.patched.php?client='.urlencode($brand).'&client_uri='.urlencode($uri), $host, 80);See how I'm using the /xmlrpc.patched.php instead of modifying xmlrpc.php?
Possibility for you:
$uri = "http://www.terralingua.org/mobile-bbpress"; $brand = "bbPress Mobile"; $host = "terralingua.org"; $directory = "/bbpress"; // if you bbPress is in a folder such as /forum // Make an object to represent our server. $server = new xmlrpc_client($directory.'/xmlrpc.php?client='.urlencode($brand).'&client_uri='.urlencode($uri), $host, 80);Edit your /mobile-bbpress/.htaccess so that it could look like this (maybe)
# BEGIN bbPress Mobile Options -MultiViews <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mobile-bbpress/ RewriteRule ^new/post/([^/]+)/reply/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id=&reply= [L,QSA] RewriteRule ^new/post/([^/]+)/quote/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id="e= [L,QSA] RewriteRule ^new/([^/]+)/([^/]+)/?$ /mobile-bbpress/index.php?new=&id= [L,QSA] RewriteRule ^forum/([^/]+)/?$ /mobile-bbpress/index.php?f= [L,QSA] RewriteRule ^forum/?$ /mobile-bbpress/index.php [R=302,L,QSA] RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /mobile-bbpress/index.php?t=&page= [L,QSA] RewriteRule ^topic/([^/]+)/?$ /mobile-bbpress/index.php?t= [L,QSA] RewriteRule ^topic/?$ / [R=302,L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ /mobile-bbpress/index.php [L] </IfModule> # END bbPress MobileThe change was the RewriteBase being / to /mobile-bbpress/, etc.
-
- Posted 1 year ago #
still same error, checking file paths, and that i have followed all your instructions properly.. as well as the way i have the other sites configured...
-
- Posted 1 year ago #
How about this: Delete your .htaccess file in the /mobile-bbpress/ directory (or rename it to a.htaccess) and then we'll see what happens.
The links on the bbPress Mobile won't work right now, but it could at least show the page.
-
- Posted 1 year ago #
-
- Posted 1 year ago #
XML-RPC Fault #6: No data received from server.
Can you please point your bbPress Mobile to my test forum:
$host = "dump.master5o1.com"; $directory = "/bbpr"; // if you bbPress is in a folder such as /forum // Make an object to represent our server. $server = new xmlrpc_client($directory.'/xmlrpc.patched.php?client='.urlencode($brand).'&client_uri='.urlencode($uri), $host, 80); -
- Posted 1 year ago #
your up.
-
- Posted 1 year ago #
http://www.terralingua.org/mobile-bbpress/index.php?t=1
So that's a topic on my forum. We will now try with .htaccess in there.
I suggest this for the content of your .htaccess file:
# BEGIN bbPress Mobile Options -MultiViews <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /mobile-bbpress/ RewriteRule ^new/post/([^/]+)/reply/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id=&reply= [L,QSA] RewriteRule ^new/post/([^/]+)/quote/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id="e= [L,QSA] RewriteRule ^new/([^/]+)/([^/]+)/?$ /mobile-bbpress/index.php?new=&id= [L,QSA] RewriteRule ^forum/([^/]+)/?$ /mobile-bbpress/index.php?f= [L,QSA] RewriteRule ^forum/?$ /mobile-bbpress/index.php [R=302,L,QSA] RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /mobile-bbpress/index.php?t=&page= [L,QSA] RewriteRule ^topic/([^/]+)/?$ /mobile-bbpress/index.php?t= [L,QSA] RewriteRule ^topic/?$ /mobile-bbpress/index.php [R=302,L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ /mobile-bbpress/index.php [L] </IfModule> # END bbPress Mobile -
- Posted 1 year ago #
internal server error..
-
- Posted 1 year ago #
however this may also be due to some troubles i am having with bbpress itself at the moment..
-
- Posted 1 year ago #
Hmm... Ok, remove the .htaccess again. I'm working on getting links to be non-pretty so no .htaccess is needed.
Also, I have http://dump.master5o1.com/mobi/ pointed to your bbpress install:
Correct them if they're wrong:
$host = "www.terralingua.org"; //http://www.terralingua.org/bbpress/ $directory = "/bbpress"; // if you bbPress is in a folder such as /forum // Make an object to represent our server. $server = new xmlrpc_client($directory.'/xmlrpc.php?client='.urlencode($brand).'&client_uri='.urlencode($uri), $host, 80);Like this, it doesn't work either :S
-
- Posted 1 year ago #
I will now suggest that you have this:
bbpress/xmlrpc.php <-- stock that came from the bbpress zip.
bbpress/xmlrpc.patched.php <-- the patched version that I have.And then make sure xmlrpc is allowed in the settings.
-
- Posted 1 year ago #
my god! i hope this is somewhat helpful to you!
-
- Posted 1 year ago #
mmm. I hope.
-
- Posted 1 year ago #
sorry cross post here...
this on my server:
bbpress/xmlrpc.phpis your patched version...
I have the original bbpress version on my computer.
and the settings are checked.
the plugin is activated..
-
- Posted 1 year ago #
Cool. So in mobile-bbpress/index.php can you:
function page_title()
{
return "whatido"; // insert this line please -
- Posted 1 year ago #
what was the patch.diff file that was included in the patch folder, does this matter?