Ucenter Home Page Call description

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Ucenter home is Sing (Comsenz) company released a SNS station system, since the release of the domestic use of Ucenter home set up local and vertical SNS has more than 130,000. Currently Ucenter home version of the development has entered the official testing phase, Ucenter home 2.0α test version has been on the official site.

In Ucenter home, a lot of webmaster want to know what the content of the first page of Ucenter is called out by which specific conditions, and according to what conditions, the following author will give you a detailed introduction of the first page of the call, and how to modify the call conditions.

The layout of the page is as follows

  

1, Slide

Here mainly call the latest uploaded pictures, if you do not have pictures in the album, here is not displayed, if there are pictures also show blank, you can refer to the description here:

Home call blank or slide picture blank analysis: http://faq.comsenz.com/viewnews-621-php-1

2, Hot Log

The call condition here is the most recently published 11 logs, if you want to increase the number of log calls, such as to call 15, you can modify the Ucenter home root directory index.php files, the detailed method of modification is:

Found it:

$query = $_sglobal[' db ']->query ("Select Blogid,subject,uid,username from". Tname (' blog '). " WHERE friend= ' 0 ' and

Dateline> ' $wheretime ' ORDER by Replynum DESC LIMIT 0,11 ");

Modified to:

$query = $_sglobal[' db ']->query ("Select Blogid,subject,uid,username from". Tname (' blog '). " WHERE friend= ' 0 ' and

Dateline> ' $wheretime ' ORDER by Replynum DESC LIMIT 0,15 ");

Log in to the background, update the cache to take effect.

3, dynamic

See what we are doing now, scroll down to show the latest news for everyone, up to 10 members do not set the privacy of the dynamic, if you want to modify to show more

For example, modify to show 15 dynamic, also modify the Ucenter home root directory under the index.php file, the detailed modification method is:

Found it:

$query = $_sglobal[' db ']->query ("select * from". Tname (' feed '). " WHERE friend= ' 0 ' ORDER by Dateline DESC LIMIT

0,10 ");

Modified to:

$query = $_sglobal[' db ']->query ("select * from". Tname (' feed '). " WHERE friend= ' 0 ' ORDER by Dateline DESC LIMIT

0,15 ");

4. Photo Album

The display position is below the slide, where the call condition is the most recently updated 7 non-privacy albums, where the picture shown is the cover picture for each album, and if you want to modify it to more, modify the index.php file in the Ucenter home root directory, and modify the method in detail:

Found it:

$query = $_sglobal[' db ']->query ("Select Albumid,albumname,picnum,pic,picflag,uid,username from". Tname (' album '). "

WHERE friend= ' 0 ' and picnum>0 order by UpdateTime DESC LIMIT 0,7 ');

Change the number 7 here to the digital update cache that you want to display to take effect.

5, Fun Application

Here call Webmaster Recommended 5 applications, according to the order of the display in the background, if the webmaster did not recommend the default order display the first 5 applications.

If you want to modify to more, also modify the Ucenter home root directory under the index.php file, the detailed modification method is:

Found it:

$query = $_sglobal[' db ']->query ("Select Appid,appname from". Tname (' MyApp '). " WHERE flag>=0 ORDER by flag DESC,

Displayorder LIMIT 0,5 ");

Change the number 5 to the digital update cache you want to display to take effect.

6. Group Topic

This calls the 3 newest topics for the group, and if you want to invoke more recent topics, modify the index.php file in the Ucenter home root directory in the same way:

Found it:

$query 2 = $_sglobal[' db ']->query ("Select Tid,subject,uid,username from" Tname (' thread '). " WHERE tagid= ' $value

[TagID] ' ORDER by Dateline DESC LIMIT 0,3 ');

Change the number 3 here to the number you want to display.

7, Hot users

Here, the maximum number of space traffic 6 members, if you want to invoke multiple members also modify the Ucenter home root directory under the index.php file, the detailed modification method is:

Found it:

$query = $_sglobal[' db ']->query ("Select Uid,username,name,namestatus from". Tname (' spaces '). "

WHERE updatetime> ' $wheretime ' ORDER by Viewnum DESC LIMIT 0,6 ");

Change the number 6 here to the number you want to display.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.