Highlight moderator name in CGFeedback results

  Previous article Next article  

Highlight moderator name in CGFeedback results

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.5
  Last updated: 18-11-2017
  Comments: 0
  http://cms.ms/HTOU

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.





CMS Made Simple 2.2.5 - Tutorials, tips and tricks - CMSMS 2.2.5

Highlight moderator name in CGFeedback results

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.5
  Last updated: 18-11-2017
  Comments: 0
  http://cms.ms/HTOU