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.


Advertisement



Ads help me to help you! Thanks!

Ads help me to help you! Thanks!


  Working example

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




  Comment Form

Click here to open the form


  2 Comments

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.7
  Last updated: 18-11-2017
  Comments: 2
  http://cms.ms/HTOU

Advertisement



Ads help me to help you! Thanks!

Ads help me to help you! Thanks!

Ads help me to help you! Thanks!