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.2
  Last updated: 09-03-2015
  Comments: 2

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.


A2 Webhosting CMS Made Simple

  Working example

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



A2 Webhosting CMS Made Simple

  Comments

  Click here to leave a comment






This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
  « Enter the CAPTCHA code (lower case)

Your IP address will be stored on submit. I reserve the right to change or delete your response without notice!
In case of abuse your IP address will be blocked!


Can I have your attention for a moment?

Did this tutorial help you solving a problem at your (clients) website and it saved you many hours of work? Great!!
Consider buying Rolf a cup of coffee in return! [ Click here ]


  2 Comments

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

Highlight moderator name in CGFeedback results

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.2
  Last updated: 09-03-2015
  Comments: 2

A2 Webhosting CMS Made Simple