This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

epoolroy

  • ****
  • 121 posts
How to put button for support center message?
« on: April 12, 2018, 10:38:11 AM »
Hello, i had one question... i just install Mibew Messenger... how i create a button like osclass on user dashboard... please see attach file for understand what i mean...

here script for Mibew Messenger

Code: [Select]
<!-- mibew button --><a id="mibew-agent-button" href="/support/chat?locale=en" target="_blank" onclick="Mibew.Objects.ChatPopups['5acf15680bea4e8c'].open();return false;"><img src="/support/b?i=simple&amp;lang=en" border="0" alt="" /></a><script type="text/javascript" src="/support/js/compiled/chat_popup.js"></script><script type="text/javascript">Mibew.ChatPopup.init({"id":"5acf15680bea4e8c","url":"\/support\/chat?locale=en","preferIFrame":true,"modSecurity":false,"forceSecure":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/support\/chat\/style\/popup"});</script><!-- / mibew button -->

*

MB Themes

Re: How to put button for support center message?
« Reply #1 on: April 12, 2018, 10:50:09 AM »
@epoolroy

In user-dashboard.php
Code: [Select]
        <a class="card alerts round3 tr1" href="<?php echo osc_user_alerts_url(); ?>">
          <div class="icon">
            <i class="fa fa-bullhorn tr1"></i>
            <span class="count"><?php echo count(Alerts::newInstance()->findByUser(osc_logged_user_id())); ?></span>
          </div>

          <div class="header"><?php _e('Alerts''stela'); ?></div>
          <div class="description"><?php _e('Notifications you have subscribed to based on specific search criteria.''stela'); ?></div>
        </a>


this is sample code for button.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

epoolroy

  • ****
  • 121 posts
Re: How to put button for support center message?
« Reply #2 on: April 12, 2018, 10:53:28 AM »
@epoolroy

In user-dashboard.php
Code: [Select]
        <a class="card alerts round3 tr1" href="<?php echo osc_user_alerts_url(); ?>">
          <div class="icon">
            <i class="fa fa-bullhorn tr1"></i>
            <span class="count"><?php echo count(Alerts::newInstance()->findByUser(osc_logged_user_id())); ?></span>
          </div>

          <div class="header"><?php _e('Alerts''stela'); ?></div>
          <div class="description"><?php _e('Notifications you have subscribed to based on specific search criteria.''stela'); ?></div>
        </a>


this is sample code for button.

Yeah i know that but i how i can put the mibew script? can you assist me?

Marked as best answer by epoolroy on April 13, 2018, 07:59:13 AM
*

MB Themes

Re: How to put button for support center message?
« Reply #3 on: April 12, 2018, 11:33:03 AM »
@epoolroy
Something like this:
Code: [Select]
        <a class="card alerts round3 tr1" id="mibew-agent-button" href="/support/chat?locale=en" target="_blank" onclick="Mibew.Objects.ChatPopups['5acf15680bea4e8c'].open();return false;">
          <div class="icon">
            <i class="fa fa-support tr1"></i>
            <span class="count"><?php echo count(Alerts::newInstance()->findByUser(osc_logged_user_id())); ?></span>
          </div>

          <div class="header"><?php _e('Alerts''stela'); ?></div>
          <div class="description"><?php _e('Notifications you have subscribed to based on specific search criteria.''stela'); ?></div>
        </a>

        <script type="text/javascript" src="/support/js/compiled/chat_popup.js"></script><script type="text/javascript">Mibew.ChatPopup.init({"id":"5acf15680bea4e8c","url":"\/support\/chat?locale=en","preferIFrame":true,"modSecurity":false,"forceSecure":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/support\/chat\/style\/popup"});</script>


  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

epoolroy

  • ****
  • 121 posts
Re: How to put button for support center message?
« Reply #4 on: April 13, 2018, 07:59:48 AM »
@epoolroy
Something like this:
Code: [Select]
        <a class="card alerts round3 tr1" id="mibew-agent-button" href="/support/chat?locale=en" target="_blank" onclick="Mibew.Objects.ChatPopups['5acf15680bea4e8c'].open();return false;">
          <div class="icon">
            <i class="fa fa-support tr1"></i>
            <span class="count"><?php echo count(Alerts::newInstance()->findByUser(osc_logged_user_id())); ?></span>
          </div>

          <div class="header"><?php _e('Alerts''stela'); ?></div>
          <div class="description"><?php _e('Notifications you have subscribed to based on specific search criteria.''stela'); ?></div>
        </a>

        <script type="text/javascript" src="/support/js/compiled/chat_popup.js"></script><script type="text/javascript">Mibew.ChatPopup.init({"id":"5acf15680bea4e8c","url":"\/support\/chat?locale=en","preferIFrame":true,"modSecurity":false,"forceSecure":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/support\/chat\/style\/popup"});</script>




Awesome, its work... thank you so much... i love you  :D :D