MENU

Highlight moderator name in CGFeedback results

  Previous article Next article  

As the owner or moderator of a CMS Made Simple website using the CGFeedback module, you often reply to questions asked by visitors. But how to let the visitors see *you* are answering and not another person with your name...?

  How to use

Open in the CGFeedback module your summary template and search for the line:

<div class="feedback_item_authorname">
  {$mod->Lang('lbl_author_name')}:&nbsp;{$one.author_name}
</div>

And change it to:

<div class="feedback_item_authorname">
  {if $one.author_name == '!Jack'}
    {$mod->Lang('lbl_author_name')}:&nbsp;<span style="color: red;">Jack</span>
  {else}
    {$mod->Lang('lbl_author_name')}:&nbsp;{$one.author_name}
  {/if}
</div>

When you reply and instead of your own name i.e. Jack you fill in !Jack, your name will be displayed in red. In the template you can change your display and "secret" name and change the styling or add an icon. Simple, but effective.



  Working example

Look at the feedback below, I filled in *my* secret name and my name is displayed in red.



Buy Me A Coffee


  Comment Form

ReviewManager

Click here to open the form

ReviewManager

  2 Comments

Buy Me A Coffee

CMS Made Simple - Tutorials, Tips and Tricks - CMSMS

Highlight moderator name in CGFeedback results

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.19
  Last updated: 10-06-2019
  Comments: 2
  http://cms.ms/HTOU


Buy Me A Coffee




Advertisement


Ads help me to help you! Thanks!

Ads help me to help you! Buy products from these advertisers!