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.