Discuz!X同步好友到漫游应用

将Discuz!X好友关系同步至Manyou平台,以便在应用里看到他们。

<!--{if $_G['setting']['my_userapp'] && $_G[uid]}-->
 <!-- 同步好友至Manyou 开始 -->
 <script type="text/javascript">
 function my_sync_tip(msg, close_time) {;
 var my_tip = document.getElementById("my_tip");
 if (!my_tip) {
 my_tip = document.createElement("div");
 document.getElementsByTagName("body")[0].appendChild(my_tip);
 my_tip.id = "my_tip";
 }
 my_tip.style.display = 'block';
 my_tip.innerHTML = '<div style="position: absolute; top: 200px; right: 500px; padding: 20px; width: 300px; height: 15px; z-index:9999;">' + msg + '</div>';
 if (close_time) {
 setTimeout("document.getElementById('my_tip').style.display = 'none';", close_time);
 }
 }
 function my_sync_friend() {
 my_sync_tip('正在同步好友信息...', 0);
 var my_scri = document.createElement("script");
 document.getElementsByTagName("head")[0].appendChild(my_scri);
 my_scri.charset = "UTF-8";
 my_scri.src = "http://uchome.manyou.com/user/syncFriends?sId=$_G['setting'][my_siteid]&uUchId=$_G[uid]&ts=$_G[timestamp]&key=<!--{eval echo md5($_G['setting'][my_siteid] . $_G['setting'][my_sitekey] . $_G[uid] . $_G[timestamp]);}-->";
 }
 </script>
 <div><div><div><div><div>
 <p>在游戏中找不到自己的好友?请点击下面的的按钮,将好友信息同步到里面。</p>
 <p style="text-align: center;padding: 20px 0 0;"> <a href="#" onclick="my_sync_friend(); return false;" title="将好友关系同步至Manyou平台,以便在应用里看到他们"><img alt="刷新好友信息" src="image/syncfriend.gif"/></a> </p>
 </div></div></div></div></div>
 <!-- 同步好友至Manyou 结束 -->
 <!--{/if}-->

转载请注明出处:https://www.onexin.net/discuz-x-sync-friends-to-roaming-applications/

相关文章:

1、出生地增加第三级县市和第四级乡镇 for discuz!x 1.5
https://www.onexin.net/hometown-increase-in-third-level-and-fourth-class-county-town-for-discuz-x-1-5/

2、Discuz!X 模板中添加可拖拽区域
https://www.onexin.net/discuz-x-template-can-drag-the-region-to-add/

3、DISCUZ!X 2.5上传图片后缩略图无水印
https://www.onexin.net/discuz-x-2-5-upload-picture-thumbnail-no-watermark/

4、Discuz!X站内开启视频播放代码
https://www.onexin.net/discuz-x-stations-open-video-player-code/

5、Discuz!X 2.5升级前与升级后(笔记)
https://www.onexin.net/discuz-x-2-5-upgrade-before-and-after-the-upgrade-notes/

Leave a Reply