Forum Discussion

benpiddington's avatar
12 years ago

Creating the report inappropriate content feature for mobile

Hi,

 

We've been asked to re-create the report inappropriate content feature for the mobile version of our forums as the feature isn't currently available as part of the core product and we were wondering if anyone has tried to do anything similar before?

 

Basically, we're planning to add a link to each message which would pass the message ID through to our current grief report page, or a mobile version of the grief report page if this is not possible.

 

Does anyone know the best way to collect the value of a URL parameter on the report page? Is this something that can be done using Freemarker?

 

thanks,

Ben

 

  • AdamN's avatar
    AdamN
    Khoros Oracle

    You can use the http.request context object to get the parameters used on the request:

    http://lithosphere.lithium.com/t5/developers-knowledge-base/Context-objects-for-custom-components-http-request/ta-p/9323

     

    For example:

    ${http.request.parameters.name.get("page", 1)}

     One other thing you might want to look into is that there's a REST API method for reporting abuse. It's the "moderation/abuse/report" method in the Message class:

    /restapi/vc/messages/id/1271/moderation/abuse/report

     I hope this helps!

    • ChiaraS's avatar
      ChiaraS
      Lithium Alumni (Retired)

      Hi,

       

      please note that you can also reuse the default component for that (see comment on this idea: http://lithosphere.lithium.com/t5/customer-ideas/Add-Report-Inappropriate-Content-Button-to-Mobile/idi-p/30961).

       

      The way we did it for another customer was:

       

      • create a custom component "report-abuse-mobile":
        <#if page.name == "MobileForumTopicPage" || page.name == "MobileBlogArticlePage" || page.name == "MobileIdeaPage">
        <@component id="forums.action.report-abuse"/>
        </#if> 
      • add the custom component to the footer of the following quilts: SimpleBlogMessage, SimpleForumMessage, SimpleIdeaMessage

      You may need to adjust the instructions based on the interaction styles you need to support, and the mobile skin css for the button style...

      • benpiddington's avatar
        benpiddington
        Helper
        Thank you both! :-)

        We'll give it a try and will let you know if we come across anything.

        Thanks again!
        Ben