Recommended members for phpcms v9 and phpcmsv9

Source: Internet
Author: User

Recommended members for phpcms v9 and phpcmsv9

Template display recommendation Member Code

<Div class = "zhanxun2">
<Div class = "title">
<A href = ''> recommended Member </a>
</Div>
<Div class = "huajia">
{Pc: get SQL = "SELECT. userid,. nickname, B. photo, B. description FROM mobao_member AS a, mobao_form_jianjie AS B WHEREa. groupid = 5 AND. userid = B. userid "}
{Loop $ data $ v}

<Div class = "info">
<Div class = "photo"> <a href = "index. php? M = member & c = space & a = home & uid = {$ v ['userid']} "target =" _ blank "> {$ V ['photo']}"Title =" {$ v ['nickname']} "alt =" {$ v ['nickname']} "> </a> </div>
<Div class = "info2"> <a href = "index. php? M = member & c = space & a = home & uid = {$ v ['userid']} "target =" _ blank ">{Str_cut ($ v ['description'], 54 )}</A> </div>
</Div>
{/Loop}
{/Pc}

</Div>
</Div>


In PHPCMS v9, how is the value of the recommended bit ID [posid] determined? Is it custom or officially defined? Principle

Background-Recommendation space management (at the bottom of the left sidebar), which allows you to customize IDs.
The following is the default one:
In the background of V9, add the source code on the article page and find that there are five types of Recommendation bits:
1 homepage focus chart recommendation
2 homepage headlines recommendation
9. Top website recommendations
10 topic homepage recommendations
12 homepage image recommendations
However, we can add recommendation spaces in the background. Choose "current location: content> content-related Settings> recommendation bit Management>" to add a recommendation bit .. In this way, we can create custom attributes that are as rich and convenient as DEDECMS .. But remember the ID of the recommended bit you set when calling the tag...

What is the recommended position for phpcms v9?

When you write an article, there will be a row of Recommendation spaces under the content. After you select this option, you can drop these articles. For example, if your website recommends some news, you can select a recommendation location during update and then call it.
For example, if your website wants to display a very conspicuous news, you can add a recommendation space, id = 1, then you can tag out the article of this Recommendation space, when you want to change the news in a short time, you only need to update an article and select the recommended position id = 1.

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.