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 >

zblogphp Comments display the user's alias method

Saturday on March 28th, 2020Net Web

We know, wordpress there are settings, you can choose to display the user's own set of aliases in the foreground, to avoid let others see the login name and password in order to crack.

The zblogPHP is not, although the user can set up an alias in the background, but only the comments section displays the user login user name, therefore, need to be modified.

Methods as below:

Comment.php template directory to find the file:

The

span style = line-height: 1.5; lt; span/spanspan class = keyword style = line-height: 1.5; class/spanspan style = line-height:? 1.5; =/spanspan class = string style = line-height: 1.5 ; dot/spanspan style = line-height: 1.5; gt; {/ spanspan class = vars style = line-height: 1.5; $ key/spanspan style = line-height: 1.5; +1} #lt;/spangt; lt ; a href =/spanspan class = string style = line-height:? 1.5; {$ comment.Author.HomePage}/spanspan style = line-height:? 1.5; rel =/spanspan class = string style = line-height: 1.5; nofollow/spanspan style = line-height: 1.5; target =/spanspan class = string style = line-height:? 1.5; _blank/spanspan style = line-height: 1.5; gt; {/ spanspan class = vars style = line-height: 1.5; $ comment/spanspan style = line-height: 1.5; .Author.Name} lt;/agt; amp; nbsp; amp; nbsp; lt; spangt; {/ spanspan class = vars style = line- height: 1.5; $ comment/spanspan style = line-height: 1.5; .Time ()} amp; nbsp; lt; a href =/spanspan class = string style = line-height: 1.5; # comment/spanspan style =? line-height: 1.5; onclick =/spanspan class = string style = line-height:? 1.5; Rev ertComment ( '{$ comment.ID}')/spanspan style = line-height: 1.5; gt; Reply lt;/agt; lt;/spangt;/span

change into:

div class = dp-highlighter div class = bar/div {? span class = keywordif/span span class = vars $ comment/span.Author.Email == span class = vars $ article/span.Author.Email} lt; 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;/divgt; {span class = keywordelse/span} lt;? 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 # comment/span onclick = span class = stringRevertComment ( '{$ comment?? .ID} ')/spangt; reply lt;/agt; lt;/spangt; lt;/divgt; lt;? Div span class = keywordclass/span = span class = stringmsgarticle/spangt; {span class = vars $ comment/span.Content} {span class = keywordforeach/span span class = vars $ comment/span.Comments span class = keywordas/span span class = vars $ comment/span} {template:??? comment} {/ span class = keywordforeach/span} lt;/divgt; {/ span class = keywordif/span}/div

Add a judge, {if $ comment.Author.Email == $ article.Author.Email}, meaning if the mailbox with the author of the article reviewers identical mailboxes ,, then displays the alias, not the user, such as name display.

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/zblogphp-Comments-display-the-user-s-alias-method.htm