*

MeroWish.com

  • ***
  • 78 posts
Hello sir,

I'm using all the themes and plugins from your mb-theme.com as my website is www.merowish.com you can check it..

Sir here i facing one issue with your "instant messenger plugin" As you can see the configruation setting in Admin panel there was given option "Replace Contact Seller button" but while i clicked and saved but nothing happned.

Why the "Contact Seller" button is not getting replaced with instant msgenr plugin?

Please help me for this i want to use only "Instant Messenger plugin" instead of "Contact seller" please let me know how to make this work.
MeroWish.com

*

MB Themes

@Nancy Aarya
There is no word about replacing button.
Funcitonality will be replaced without need of theme modification, however nothing in your theme will be changed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MeroWish.com

  • ***
  • 78 posts
Ok let me explain.. here is the code of theme which consist "Contact Seller"

<div class="c-seller tr1<?php echo ' ' . $c_seller_class; ?> <?php if($ios) { ?>ios<?php } ?>">
            <div class="left tr1"><i class="fa fa-envelope-o"></i></div>
            <div class="right tr1">
              <?php _e('Contact seller', 'zara') ; ?>

            </div>
          </div>
        </div>


And here is the code of the instant messenger plugin..

<?php if(function_exists('im_contact_button')) { im_contact_button(); } ?>

Now please let me know how to implement this code to replace the button only i want to use instant messenger plugin button instead of "Contact Seller"


Waiting for your kind response & reply.

MeroWish.com

*

MeroWish.com

  • ***
  • 78 posts
For more details please read my few months previous same question.

http://forums.mb-themes.com/instant-messenger-plugin/instant-massenger-plugin-does-not-replaced-contact-seller/


Now please help me please.
MeroWish.com

*

MB Themes

@nancy
You can not replace button in way you want.
You can:
- add new button for messaging
or
- replace functionality (how contact seller message is handled) and then change strings if you want to change it to something else (like "Contact seller" to "Send message to seller")
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Balocha

  • **
  • 7 posts
Hi friend. In order to correct your mistake you must change the code. In file item.php.
Code: [Select]
<div class="message-block">
                  <?php if( osc_item_is_expired () ) { ?>
                    <div class="empty">
                      <?php _e('Срок действия этого объявление истек, вы не можете связаться с пользователем.''veronika') ; ?>
                    </div>
                  <?php } else if( (osc_logged_user_id() == osc_item_user_id()) && osc_logged_user_id() != ) { ?>
                    <div class="empty">
                      <?php _e('Это ваше объявление, вы не можете связаться с самим собой.''veronika') ; ?>
                    </div>
                  <?php } else if( osc_reg_user_can_contact() && !osc_is_web_user_logged_in() ) { ?>
                    <div class="empty">
                      <?php _e('Вы должны войти в систему или зарегистрироваться, чтобы связаться с пользователем.''veronika') ; ?>
                    </div>
                  <?php } else { ?>
                    <div class="row first">
                      <?php ContactForm::your_name(); ?>
                      <label><?php _e('Имя''veronika') ; ?></label>
                    </div>

                    <div class="row second">
                      <?php ContactForm::your_email(); ?>
                      <label><span><?php _e('Эл.почта''veronika'); ?></span><span class="req">*</span></label>
                    </div>

                    <div class="row third">
                      <?php ContactForm::your_phone_number(); ?>
                      <label><span><?php _e('Телефон''veronika'); ?></span></label>
                    </div>

                    <div class="row full">
                      <?php ContactForm::your_message(); ?>
                    </div>
                   
                    <?php if(osc_item_attachment()) { ?>
                      <div class="attachment">
                        <div class="att-box">
                          <label class="status">
                            <span class="wrap"><i class="fa fa-paperclip"></i> <span data-original="<?php echo osc_esc_html(__('Загрузить файл''veronika')); ?>"><?php _e('Загрузить файл''veronika'); ?></span></span>
                            <?php ContactForm::your_attachment(); ?>
                          </label>
                        </div>

                        <div class="text"><?php _e('Больше возможностей:''veronika'); ?> <?php echo osc_allowed_extension(); ?>.</div>
                        <div class="text"><?php _e('Максимальный размер:''veronika'); ?> <?php echo round(osc_max_size_kb()/10001); ?>Mb.</div>
                      </div>
                    <?php ?>


                    <?php osc_run_hook('item_contact_form'osc_item_id()); ?>
                    <?php osc_show_recaptcha(); ?>

                    <button type="<?php echo (osc_get_preference('forms_ajax''veronika_theme') == 'button' 'submit'); ?>" class="send" id="item-message"><i class="fa fa-envelope"></i> <?php _e('Отправить сообщение''veronika') ; ?></button>
                  <?php ?>
                </div>

                <div class="message-status message-sent">
                  <div class="icon"><i class="fa fa-check-circle"></i></div>
                  <div class="title"></div>
                  <div class="link"><a href="#" class="next-message"><?php _e('Отправить следующее сообщение''veronika'); ?></a></div>
                </div>

                <div class="message-status message-not-sent">
                  <div class="icon"><i class="fa fa-times-circle"></i></div>
                  <div class="title"></div>
                  <div class="link"><a href="#" class="next-message"><?php _e('Отправить следующее сообщение''veronika'); ?></a></div>
                </div>
Find this code to delete or comment.