Modify the comment style and phpcms in phpcms
The built-in comment plug-in phpcms is very useful! However, the style is ugly and Baidu cannot find a solution. Maybe its search method is incorrect, So I studied it myself. Here I can use two methods to modify it.
Method 1:
Use the get method in PHPCMS to obtain data
// Concatenate commentid Field Values of the comment table {php $ commentid = 'content _'. $ catid. '-'. $ id. '-'. $ modelid;} // query the Retrieved Data {pc: get SQL = "SELECT * FROM v9_comment_data_1 where commentid = '$ commentid'" cache = "0" return = "data"} // loop output {loop $ data $ key $ val} <li class = "list-group-item"> <div class = "media"> <a class = "media-left" href = "#"> </a> <div class =" media-body ">
Method 2:
In addition to getting data using the get method, there is also the simplest way to find/phpcms/templates/default/comment/show_list.html and find the following code to modify the style.
{Pc: comment action = "lists" commentid = "$ commentid" siteid = "$ siteid" page = "$ _ GET ['page']" hot = "$ hot" num = "20 "} {if! Empty ($ data)} <div class = "comment_button"> <a href = "{APP_PATH} index. php? M = comment & c = index & a = init & commentid = {$ commentid} & title = {urlencode ($ comment [title]? $ Comment [title]: $ title)} & url = {urlencode ($ comment [url]? $ Comment [url]: $ url)} & hot = 0 & iframe = 1 "{if empty ($ hot )} class = "on" {/if}> latest </a> <a href = "{APP_PATH} index. php? M = comment & c = index & a = init & commentid = {$ commentid} & title = {urlencode ($ comment [title]? $ Comment [title]: $ title)} & url = {urlencode ($ comment [url]? $ Comment [url]: $ url ))} & hot = 1 & iframe = 1 "{if $ hot} class =" on "{/if}> hottest </a> </div> <div class =" comment" >{ loop $ data $ r}
The above section describes how to modify the comment style in phpcms. I hope it will be helpful to you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!