ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Net Web >

How to add admin seal to zblogphp blogger's comments

Monday on March 2nd, 2020Net Web

In the morning, I tossed my way to let the blogger's comments show aliases, but I still felt dissatisfied, so I wanted to stamp the blogger's comments.

Baidu search a lot of methods, are WordPress methods, fortunately, the same ideas, then do it yourself.

1 To separate the blogger and message, so that it can be done, the last article has been resolved, here will not be repeated.

2. Display the stamp, as shown in the figure, I want the result.

3. Implementation method: this method can be realized only by adding a div layer to CSS. First, find an admin seal image on the Internet, put it in the styleimg directory (or images) of the template, and add the following code at the bottom of the CSS file in the style directory

div class=dp-highlighter div class=bar/div ol class=dp-c start=1 li class=alt.admincomment{/li li class=background:url(img/admin.gif)?120px?0?no-repeat; Span class = comment/* 120px? Means the distance to the left *// span/Li Li class = altposition: relative;? Span class = comment/* it took 2 hours to find this, which means that it was placed at the top *// span/Li Li class =}/Li/ol/div div div class = DP highlighter div class = bar/div ol class = dp-c start = 1 Li class = ALT {span class = keywordif/span? Span class=vars$comment/span.Author.Email==span class=vars$article/span.Author.Email}/li li class=lt;div?span class=keywordclass/span=span class=stringadmincomment/spangt;/li li class=altlt;span?span class=keywordclass/span=span class=stringdot/spangt;{span class=vars$key/span+1}#lt;/spangt;{span class=vars$comment/span.Author.Alias}amp;nbsp;amp;nbsp; Lt; spangt; {span class = vars $comment/span. Time()} amp; nbsp; lt; a? Href = span class = string "comment/span? Onclick = span class = stringrevertcomment ('{$comment. ID}')/spangt; reply lt;/AGT; lt;/spangt; lt; div? Span class = keywordclass/span = span class = stringmsgarticle/spangt; {span class=vars$comment/span.Content}/li li class={span class=keywordforeach/span?span class=vars$comment/span.Comments?span class=keywordas/span?span class=vars$comment/span}/li li class=alt{template:comment}/li li class={/span class=keywordforeach/span}/li li class=altlt;/divgt;lt;/divgt;lt;/divgt; /li li class={span class=keywordelse/span}/li li class=altlt;span?span class=keywordclass/span=span class=stringdot/spangt;{span class=vars$key/span+1}#lt;/spangt;lt;a?href=span class=string{$comment.Author.HomePage}/span?rel=span class=stringnofollow/span?target=span class=string_blank/spangt;{span class=vars$comment/span.Author.Name}lt;/agt;amp; Nbsp; amp; nbsp; lt; spangt; {span class = vars $comment/span. Time()} amp; nbsp; lt; a? Href = span class = string double comment/span? Onclick = span class = stringrevertcomment ('{$comment. ID}')/spangt; replytlt;/AGT; lt;/spangt;/Li Li class =/Li class = altlt;/divgt;/Li Li class = lt; div? Span class = keywordclass/span = span class = stringmsgartice/spangt; {span class=vars$comment/span.Content}/li li class=alt{span class=keywordforeach/span?span class=vars$comment/span.Comments?span class=keywordas/span?span class=vars$comment/span}/li li class={template:comment}/li li class=alt{/span class=keywordforeach/span}/li li class=lt;/divgt;/li li class=alt{/span class=keywordif/span}/li /ol /div

OK, it's a success. See the picture above for the effect.

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/How-to-add-admin-seal-to-zblogphp-blogger-s-comments.htm