整合与Android Disqus评论 [英] Integrate Disqus comments with Android
问题描述
我想Disqus留言集成到我的Android应用程序,而我下面这个教程:
I am trying to integrate Disqus comments to my Android application, and I am following this tutorial:
http://globeotter.com/blog/disqus-android-$c $ C /
我不明白有关disqus_identifier以及一部分。正如你可以从code见下面我用这个code存取权限到我的服务器上showcomments.php。
I didn't understand well part about disqus_identifier. As you can see from the code below I use this code to acces showcomments.php on my server.
webDisqus.loadUrl( http://balkanandroid.com/showcomments.php?disqus_id=一>+标识符);
webDisqus.loadUrl("http://balkanandroid.com/showcomments.php?disqus_id="+identifer);
在哪里标识符的背后是顶级域名URL的一部分,是这样的:
Where identifer is part of url behind top level domain name, something like this:
http://balkanandroid.com/graficka-evolucija-nexus-telefona/
我用/ graficka-evolucija-NEXUS-telefona /类似Disqus标识符。
http://balkanandroid.com/graficka-evolucija-nexus-telefona/ And I use /graficka-evolucija-nexus-telefona/ as disqus identifer.
和我收到此错误信息:
我们无法加载Disqus。如果你是一个主持人请参阅我们的故障排除指南。
We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
下面是服务器端PHP code>
Here is server side php code>
推荐答案
根据提供的示例code,这是一个pretty容易解决。只要改变这一行:
Based on the example code provided, this is a pretty easy fix. Just change this line:
VAR disqus_shortname ='< balkanandroid>';
这样:
VAR disqus_shortname ='balkanandroid';
这篇关于整合与Android Disqus评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!