Skip to:
Content
Pages
Categories
Search
Top
Bottom

Mobile bbPress (using XML-RPC api)

Viewing 25 replies - 26 through 50 (of 84 total)

  • ortixia
    Participant

    @ortixia

    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..


    master5o1
    Participant

    @master5o1

    .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=$1&reply=$2 [L,QSA]
    RewriteRule ^new/post/([^/]+)/quote/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id=$1&quote=$2 [L,QSA]
    RewriteRule ^new/([^/]+)/([^/]+)/?$ /mobile-bbpress/index.php?new=$1&id=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /mobile-bbpress/index.php?f=$1 [L,QSA]
    RewriteRule ^forum/?$ /mobile-bbpress/index.php [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /mobile-bbpress/index.php?t=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /mobile-bbpress/index.php?t=$1 [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 Mobile

    The change was the RewriteBase being / to /mobile-bbpress/, etc.


    master5o1
    Participant

    @master5o1

    .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=$1&reply=$2 [L,QSA]
    RewriteRule ^new/post/([^/]+)/quote/([^/]+)/?$ /mobile-bbpress/index.php?new=post&id=$1&quote=$2 [L,QSA]
    RewriteRule ^new/([^/]+)/([^/]+)/?$ /mobile-bbpress/index.php?new=$1&id=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /mobile-bbpress/index.php?f=$1 [L,QSA]
    RewriteRule ^forum/?$ /mobile-bbpress/index.php [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /mobile-bbpress/index.php?t=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /mobile-bbpress/index.php?t=$1 [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 Mobile

    The change was the RewriteBase being / to /mobile-bbpress/, etc.


    ortixia
    Participant

    @ortixia

    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…


    ortixia
    Participant

    @ortixia

    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…


    master5o1
    Participant

    @master5o1

    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.


    master5o1
    Participant

    @master5o1

    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.


    ortixia
    Participant

    @ortixia


    ortixia
    Participant

    @ortixia


    master5o1
    Participant

    @master5o1

    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);


    master5o1
    Participant

    @master5o1

    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);


    ortixia
    Participant

    @ortixia

    your up.


    ortixia
    Participant

    @ortixia

    your up.


    master5o1
    Participant

    @master5o1

    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=&quote= [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


    master5o1
    Participant

    @master5o1

    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=&quote= [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


    ortixia
    Participant

    @ortixia

    internal server error..


    ortixia
    Participant

    @ortixia

    internal server error..


    ortixia
    Participant

    @ortixia

    however this may also be due to some troubles i am having with bbpress itself at the moment..


    ortixia
    Participant

    @ortixia

    however this may also be due to some troubles i am having with bbpress itself at the moment..


    master5o1
    Participant

    @master5o1

    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


    master5o1
    Participant

    @master5o1

    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


    master5o1
    Participant

    @master5o1

    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.


    master5o1
    Participant

    @master5o1

    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.


    ortixia
    Participant

    @ortixia

    my god! i hope this is somewhat helpful to you!


    ortixia
    Participant

    @ortixia

    my god! i hope this is somewhat helpful to you!

Viewing 25 replies - 26 through 50 (of 84 total)
  • The topic ‘Mobile bbPress (using XML-RPC api)’ is closed to new replies.
Skip to toolbar