欢迎来到山村网

Pinterest.com界面风格的社交展示web应用:Infinite-social-wall

2019-03-29 06:16:05浏览:984 来源:山村网   
核心摘要:在线演示Infinite-Social-Wall是一个基于PHP和Mysql的开源应用,主要用来帮助你使用pinterest.com的界面风格来展示各类社交网站

Pinterest.com界面风格的社交展示web应用:Infinite-social-wall 山村教程

在线演示

Infinite-Social-Wall是一个基于PHP和Mysql的开源应用,主要用来帮助你使用pinterest.com的界面风格来展示各类社交网站的事件信息。

这个应用通过指定的RSS来抓取社交网站内容,并且拥有Twitter,Reddit,Instagram,Github等的内建样式和图表。

使用免费的mysql服务器作为存储的后台,这样就不需要每次都解析feeds。前台使用Isotope插件来生成动态布局,并且可以生成无限滚动特效。

如果你需要自己创建一个类似的社交类自动更新网站,这个免费的应用肯定是不错的选择。

类库支持:

1.Isotope - 个人和非商用免费

2.Infinite-Scroll - MIT License

3.jQuery - MIT License

4.SimplePie - BSD License

5.jquery-timeago - MIT License

6.html5shiv - MIT License

7.css3 transition detection - Unknown

如何使用

创建数据库表:

CREATE TABLE `archived_social_items` (
`id` varchar(32) NOT NULL,
`category` varchar(255) NOT NULL,
`title` text NOT NULL,
`content` text NOT NULL,
`link` text NOT NULL,
`date` datetime NOT NULL,
UNIQUE KEY `item_id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1

修改config.php的mysql配置指向你的数据库。

新的feed可以通过修改$apis数组添加到config.php。如下:

"github" => array(
"user" => "philipbjorge",
"url" => "http://atom2rss.semiologic.com/?atom=https://github.com/{USER}.atom"
),

添加样式到header:

<!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <style type="text/css"> .clear { zoom: 1;display: block;} </style> <![endif]-->
<link rel="stylesheet" type="text/css" href="css/isotope.css">
<link rel="stylesheet" type="text/css" href="css/networks.css">

在body中,添加容器和PHP include:

<div id="social-container" class="variable-sizes clearfix infinite-scrolling">
<?php require_once('get_stream.php'); ?>
</div>

接下来加入PHP支持:

<script src=http://www.shancun.net/skin/default/image/nopic.gif /><script src=http://www.shancun.net/skin/default/image/nopic.gif /><script src=http://www.shancun.net/skin/default/image/nopic.gif /><script src=http://www.shancun.net/skin/default/image/nopic.gif type="text/javascript"></script>
<script src=http://www.shancun.net/skin/default/image/nopic.gif type="text/javascript"></script>

自定义CSS:

修改isotop.css,networks.css等css文件

来源:Pinterest.com界面风格的社交展示web应用:Infinite-social-wall

(责任编辑:豆豆)
下一篇:

一组黑白灰的低调大气范网站设计

上一篇:

避免3种响应式设计灾祸

  • 信息二维码

    手机看新闻

  • 分享到
打赏
免责声明
• 
本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们 xfptx@outlook.com