lincanbin / Android-Carbon-Forum

Android Client for Carbon Forum with Material Design.
https://www.94cb.com
Apache License 2.0
249 stars 78 forks source link

my local ip #6

Open mhartian opened 8 years ago

mhartian commented 8 years ago

should it work if i test it to may local ip? ipv4

lincanbin commented 8 years ago

You need another domain name to enable the client to work properly.

mhartian commented 8 years ago

Thabks very much for reply. How can i test it into localhost. and about api key and secret key can be eun into localhost? thank you agai i am student i want to implement it to our thesis.

On Sunday, 10 April 2016, Canbin Lin notifications@github.com wrote:

You need another domain name to enable the client to work properly.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-207938862

lincanbin commented 8 years ago

You can bind the LAN IP of Server as domain name for the API, such as 192.168.1.1.

lincanbin commented 8 years ago

qq 20160410191351 Just like this.

mhartian commented 8 years ago

it look like this?

public static final String DOMAIN_NAME = "127.0.0.1" + WEBSITE_PATH;
public static final String MOBILE_DOMAIN_NAME = "127.0.0.1" + WEBSITE_PATH;
public static final String BASIC_API_URL = "192.168.15.5" +

WEBSITE_PATH; // MY IPV4

and how can i configure this? i am using localhost . what should i put in my API_KEY and API_SECRET?

public static final String WEBSITE_PATH = ""; //Website path, You can leave it blank in most cases. public static final String API_KEY = "12450"; //Application key you

set in config.php

public static final String API_SECRET = "b40484df0ad979d8ba7708d24c301c38"; //Application secret you set in

config.php

Thank you for the reply sir sorry to disturb you.

On Sun, Apr 10, 2016 at 4:14 AM, Canbin Lin notifications@github.com wrote:

[image: qq 20160410191351] https://cloud.githubusercontent.com/assets/5785188/14409810/653766fc-ff50-11e5-8269-6bb2a198776a.png Like this.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-207962196

lincanbin commented 8 years ago
public static final String DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH;
public static final String MOBILE_DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH;
public static final String BASIC_API_URL = "http://192.168.15.5" + WEBSITE_PATH; // MY IPV4
lincanbin commented 8 years ago

And API_SECRET API_KEY can be modified, as long as with the config.php to maintain consistency.

You can also do not have to modify it.

mhartian commented 8 years ago

Hello. i trie but it wont work it always Network error.

On Sun, Apr 10, 2016 at 6:22 AM, Canbin Lin notifications@github.com wrote:

And API_SECRET API_KEY can be modified, as long as with the config.php to maintain consistency.

You can also do not have to modify it.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-207983812

mhartian commented 8 years ago

define('ForumLanguage', '{{Language}}'); //MemCache(d) / Redis define('EnableMemcache', {{EnableMemcache}}); define('MemCacheHost', 'localhost');/////////////////////////////////////// could i change it to my ip? or localhost only? define('MemCachePort', 11211);//Memcache: 11211, Redis: 6379 define('MemCachePrefix', '{{MemCachePrefix}}');

RewriteEngine On RewriteCond %{HTTP_HOST} ^94cb.com$ [NC] --------------------- could i change it to localhost? RewriteRule ^(.*)$ https://www.94cb.com/$1 [L,R=301]

For SSL

RewriteCond %{HTTP_HOST} ^94cb.com$ [NC] --------------------- also this

to localhost?

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(._)$ https://www.94cb.com/$1 [L,R=301]

--------------------- and this?

RewriteCond %{HTTP_HOST} ^m.94cb.com$ [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(._)$ https://m.94cb.com/$1 [L,R=301] ---------------------

and this


define('ForumLanguage', 'en'); //MemCache(d) / Redis define('EnableMemcache', false); define('MemCacheHost', '127.0.0.1');---------------------------------------------------to my ip or localhost only? define('MemCachePort', 11211);//Memcache: 11211, Redis: 6379 define('MemCachePrefix', 'carbon_fiber'); //Database define('DBHost', '127.0.0.1'); -------------------------also this? define('DBName', 'database'); define('DBUser', 'root'); define('DBPassword', '');

cant run the android app . please help me . the website is run smoothly but the android app wont connect.

On Sun, Apr 10, 2016 at 8:27 AM, mhart ian cruz ian.mhart21@gmail.com wrote:

Hello. i trie but it wont work it always Network error.

On Sun, Apr 10, 2016 at 6:22 AM, Canbin Lin notifications@github.com wrote:

And API_SECRET API_KEY can be modified, as long as with the config.php to maintain consistency.

You can also do not have to modify it.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-207983812

lincanbin commented 8 years ago

Print your Android debug log.

mhartian commented 8 years ago

heres.

04-10 19:06:22.016 3884-8359/com.lincanbin.carbonforum W/System.err: java.net.MalformedURLException: Protocol not found: deepwebph.x10host.com/seccode.php 04-10 19:06:22.016 3884-8359/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:176) 04-10 19:06:22.016 3884-8359/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:125) 04-10 19:06:22.016 3884-8359/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.tools.VerificationCode$2.run(VerificationCode.java:42) 04-10 19:06:22.016 3884-8359/com.lincanbin.carbonforum W/System.err: at java.lang.Thread.run(Thread.java:841) 04-10 19:06:25.056 3884-3884/com.lincanbin.carbonforum I/Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread. 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum D/POST URL :: deepwebph.x10host.com/page/1 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1460340387&SValue=fa2f5cad88735b6436be0adb4d660a9d 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum D/Post Error: No Network 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum W/System.err: java.net.MalformedURLException: Protocol not found: deepwebph.x10host.com/page/1 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:176) 04-10 19:06:27.386 3884-3924/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:125) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.util.HttpUtil.postRequest(HttpUtil.java:128) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:435) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:373) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 04-10 19:06:27.396 3884-3924/com.lincanbin.carbonforum W/System.err: at java.lang.Thread.run(Thread.java:841) 04-10 19:06:31.516 3884-3884/com.lincanbin.carbonforum I/dalvikvm: Could not find method com.lincanbin.carbonforum.RegisterActivity.checkSelfPermission, referenced from method com.lincanbin.carbonforum.RegisterActivity.mayRequestContacts 04-10 19:06:31.516 3884-3884/com.lincanbin.carbonforum W/dalvikvm: VFY: unable to resolve virtual method 21793: Lcom/lincanbin/carbonforum/RegisterActivity;.checkSelfPermission (Ljava/lang/String;)I 04-10 19:06:31.516 3884-3884/com.lincanbin.carbonforum D/dalvikvm: VFY: replacing opcode 0x6e at 0x000b 04-10 19:06:31.556 3884-8510/com.lincanbin.carbonforum W/System.err: java.net.MalformedURLException: Protocol not found: deepwebph.x10host.com/seccode.php 04-10 19:06:31.556 3884-8510/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:176) 04-10 19:06:31.556 3884-8510/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:125) 04-10 19:06:31.556 3884-8510/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.tools.VerificationCode$2.run(VerificationCode.java:42) 04-10 19:06:31.566 3884-8510/com.lincanbin.carbonforum W/System.err: at java.lang.Thread.run(Thread.java:841) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum D/POST URL :: deepwebph.x10host.com/page/1 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1460340393&SValue=6805167a8c09af38e19c3ac0c2acc490 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum D/Post Error: No Network 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: java.net.MalformedURLException: Protocol not found: deepwebph.x10host.com/page/1 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:176) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:125) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.util.HttpUtil.postRequest(HttpUtil.java:128) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:435) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:373) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 04-10 19:06:33.346 3884-3924/com.lincanbin.carbonforum W/System.err: at java.lang.Thread.run(Thread.java:841) 04-10 19:07:11.206 3884-3884/com.lincanbin.carbonforum D/dalvikvm: GC_FOR_ALLOC freed 418K, 8% free 5819K/6272K, paused 10ms, total 10ms 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum D/POST URL :: deepwebph.x10host.com/page/1 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1460340432&SValue=83b5bdbae9f3ff9eaa16dd49ea72a69e 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum D/Post Error: No Network 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: java.net.MalformedURLException: Protocol not found: deepwebph.x10host.com/page/1 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:176) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.net.URL.(URL.java:125) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.util.HttpUtil.postRequest(HttpUtil.java:128) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:435) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at com.lincanbin.carbonforum.IndexActivity$GetTopicsTask.doInBackground(IndexActivity.java:373) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 04-10 19:07:12.556 3884-3901/com.lincanbin.carbonforum W/System.err: at java.lang.Thread.run(Thread.java:841)

On Sun, Apr 10, 2016 at 6:18 PM, Canbin Lin notifications@github.com wrote:

Print your Android debug log.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208106842

lincanbin commented 8 years ago

Because you delete "http://"。

public static final String DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://192.168.15.5" + WEBSITE_PATH; // MY IPV4

mhartian commented 8 years ago

i have my own domain now and i upload the site . http://www.deepwebph.x10host.com/ - this my domain

so should i put like this :

public static final String DOMAIN_NAME = "http://deepwebph.x10host.com" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = " http://deepwebph.x10host.com" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://deepwebph.x10host.com" + WEBSITE_PATH; // MY IPV4

On Sun, Apr 10, 2016 at 7:57 PM, Canbin Lin notifications@github.com wrote:

Because you delete "http://"。

public static final String DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://192.168.15.5" + WEBSITE_PATH; // MY IPV4

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208136261

mhartian commented 8 years ago

the only problem is how can i retrieve posted thread into android app it always network error

On Sun, Apr 10, 2016 at 8:14 PM, mhart ian cruz ian.mhart21@gmail.com wrote:

i have my own domain now and i upload the site . http://www.deepwebph.x10host.com/ - this my domain

so should i put like this :

public static final String DOMAIN_NAME = "http://deepwebph.x10host.com" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = " http://deepwebph.x10host.com" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://deepwebph.x10host.com"

  • WEBSITE_PATH; // MY IPV4

On Sun, Apr 10, 2016 at 7:57 PM, Canbin Lin notifications@github.com wrote:

Because you delete "http://"。

public static final String DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "http://192.168.15.5" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://192.168.15.5" + WEBSITE_PATH; // MY IPV4

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208136261

lincanbin commented 8 years ago

qq 20160411140723 Set your domain name firstly.

mhartian commented 8 years ago

ok i set it it now. after that

On Monday, 11 April 2016, Canbin Lin notifications@github.com wrote:

[image: qq 20160411140723] https://cloud.githubusercontent.com/assets/5785188/14418155/c1a983b8-ffee-11e5-85ad-0328b0ac6541.png Set your domain name firstly.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208177528

mhartian commented 8 years ago

i only upload the website in the web hosting and it run smoothly . should i upload the android carbon forum app source to web hosting?so it can connect the androin app to the website. can you help me how?

On Monday, 11 April 2016, mhart ian cruz ian.mhart21@gmail.com wrote:

ok i set it it now. after that

On Monday, 11 April 2016, Canbin Lin <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

[image: qq 20160411140723] https://cloud.githubusercontent.com/assets/5785188/14418155/c1a983b8-ffee-11e5-85ad-0328b0ac6541.png Set your domain name firstly.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208177528

lincanbin commented 8 years ago

you don't need to upload app source.

mhartian commented 8 years ago

only the website? but it wont connect me it always network connection. but when i try to login the Captcha show ip but it wont log in me always network error

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

you don't need to upload app source.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208432698

lincanbin commented 8 years ago

What's your API domain name?

mhartian commented 8 years ago

here's my domain for the website deepwebph.x10host.com http://deepwebph.x10host.com/seccode.php

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

What's your API domain name?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208456164

lincanbin commented 8 years ago

API domain name, not the pc domain name.

mhartian commented 8 years ago

i dont have api sir.

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

API domain name, not the pc domain name.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208460034

lincanbin commented 8 years ago

you can't use api without api domain name.

mhartian commented 8 years ago

how to get api domain. should i upload the website on api domain?

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

you can't use api without api domain name.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208463036

lincanbin commented 8 years ago

Just bind another domain name to your host, and set it as api domain name on carbon forum dashboard. You do not need to upload anything.

mhartian commented 8 years ago

is there any tutorial for that. im so sorry sir im student

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

Just bind another domain name to your host, and set it as api domain name on carbon forum dashboard. You do not need to upload anything.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208465176

lincanbin commented 8 years ago

Binding domain should be a very simple matter, you should not need tutorials.

mhartian commented 8 years ago

just like subdomain?

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

Binding domain should be a very simple matter, you should not need tutorials.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208466855

mhartian commented 8 years ago

can you give me example sir

On Tuesday, 12 April 2016, mhart ian cruz ian.mhart21@gmail.com wrote:

just like subdomain?

On Tuesday, 12 April 2016, Canbin Lin <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Binding domain should be a very simple matter, you should not need tutorials.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208466855

mhartian commented 8 years ago

how to bind sir. please

thanks

On Tuesday, 12 April 2016, mhart ian cruz ian.mhart21@gmail.com wrote:

can you give me example sir

On Tuesday, 12 April 2016, mhart ian cruz <ian.mhart21@gmail.com javascript:_e(%7B%7D,'cvml','ian.mhart21@gmail.com');> wrote:

just like subdomain?

On Tuesday, 12 April 2016, Canbin Lin notifications@github.com wrote:

Binding domain should be a very simple matter, you should not need tutorials.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208466855

lincanbin commented 8 years ago

right, add a subdomain.

mhartian commented 8 years ago

just like this? api.(Subdomain).deepwebph.x10host.com

deepwebph.x10host.com- this is my main domain so i just put api.(subdomain name)?

On Mon, Apr 11, 2016 at 6:18 PM, Canbin Lin notifications@github.com wrote:

right, add a subdomain.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208653938

mhartian commented 8 years ago

is this correct?

On Tue, Apr 12, 2016 at 5:00 AM, mhart ian cruz ian.mhart21@gmail.com wrote:

just like this? api.(Subdomain).deepwebph.x10host.com

deepwebph.x10host.com- this is my main domain so i just put api.(subdomain name)?

On Mon, Apr 11, 2016 at 6:18 PM, Canbin Lin notifications@github.com wrote:

right, add a subdomain.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-208653938

lincanbin commented 8 years ago

You are right. you can ask your service provider how to bind the domain name.

mhartian commented 8 years ago

network error again.

this is my configuration

Apiadress:

public static final String DOMAIN_NAME = "http://deepwebph.x10host.com" + WEBSITE_PATH; public static final String MOBILE_DOMAIN_NAME = "http://m.deepwebph.x10host.com" + WEBSITE_PATH; public static final String BASIC_API_URL = "http://api.deepwebph.x10host.com" + WEBSITE_PATH; // MY IPV4

htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^http://deepwebph.x10host.com$ [NC] RewriteRule ^(.*)$ http://deepwebph.x10host.com/$1 [L,R=301]

For SSL

RewriteCond %{HTTP_HOST} ^http://deepwebph.x10host.com/$ [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(._)$ http://deepwebph.x10host.com/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^http://api.deepwebph.x10host.com$ [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(._)$ http://api.deepwebph.x10host.com/$1 [L,R=301]

api.deepwebph.x10host.com PC Domainname (www.94cb.com) Mobile Domainname (m.94cb.com) API Domainname (api.94cb.com)

i dont know why always error. i think my configuration is correct.

On Tue, Apr 12, 2016 at 6:19 PM, Canbin Lin notifications@github.com wrote:

You are right. you can ask your service provider how to bind the domain name.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/lincanbin/Android-Carbon-Forum/issues/6#issuecomment-209174393

mhartian commented 8 years ago

this is my log.

04-13 02:11:14.439 4225-4255/com.lincanbin.carbonforum D/POST URL :: http://api.deepwebph.x10host.com/register 04-13 02:11:14.439 4225-4255/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1460538674&SValue=69bf9c39c40f561fcea697221fb8715f&Email=dasdsadsa% 40gmail.com &VerifyCode=2756&UserName=daremenot&Password=99303d7922f1518d2f4135add71b63f5 04-13 02:11:15.149 4225-4229/com.lincanbin.carbonforum D/dalvikvm: GC_CONCURRENT freed 2398K, 33% free 5165K/7600K, paused 0ms+0ms, total 10ms 04-13 02:11:22.319 4225-4255/com.lincanbin.carbonforum D/Post Result: <!DOCTYPE html> Sign up - Carbon Forum <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> <meta http-equiv="cleartype" content="on" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" /> <meta name="MobileOptimized" content="320" /> <meta name="HandheldFriendly" content="True" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" /> <meta name="full-screen" content="yes" /> <meta name="x5-fullscreen" content="true" /> <meta name="msapplication-TileColor" content="#0088D1" /> <meta name="msapplication-TileImage" content="/static/img/retinahd_icon.png" /> <meta name="theme-color" content="#0088D1" /> <link rel="icon" sizes="192x192" href="/static/img/nice-highres.png" /> <link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57x57-precomposed.png" /> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72x72-precomposed.png" /> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114x114-precomposed.png" /> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144x144-precomposed.png" /> <link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/img/retinahdicon.png" /> <link rel="shortcut icon" type="image/ico" href="/favicon.ico" /> <link rel="stylesheet" type="text/css" href="/styles/mobile/theme/appframework.css?version=5.0.1" /> <link rel="stylesheet" type="text/css" href="/styles/mobile/theme/style.css?version=5.0.1" /> <link rel="search" type="application/opensearchdescription+xml" title="Carbon Forum" href="/search.xml" /> <script type="text/javascript" charset="utf-8" src="/static/js/jquery.js"> <script type="text/javascript" charset="utf-8" src="/static/js/appframework.ui.min.js?version=5.0.1"> <script type="text/javascript" charset="utf-8" src="/static/js/mobile.global.js?version=5.0.1"> <script type="text/javascript" charset="utf-8" src="/language/en/global.js?version=5.0.1"> <meta http-equiv="mobile-agent" content="format=xhtml; url= http://m.deepwebph.x10host.com/register" /> <div id="mainview" class="view splitview">

Sign up

<a class="menuButton" onclick="javascript:slideout.toggle();">
<div class="pages"> <div data-title="Sign up" id="IDd9776f0775997b2e698c6975420b5c5d" class="panel" selected="true"> <br /><form action="?" method="post" onsubmit="JavaScript:this.Password.value=md5(this.Password.value);"> <div class="input-group"> <input type="hidden" name="FormHash" value="c5ff8004" /> <input type="text" placeholder="Email" name="Email" value="" /> <input type="password" placeholder="Password" name="Password" value="" /> <input type="text" placeholder="Verification code" name="VerifyCode" value="" style="width:66%;" /> <img src="/seccode.php" align="middle" onclick="this.src+=''" style="cursor: pointer;" /> <input type="submit" value="Sign up" name="submit" class="button" style="float:right;" />