*

Marko

  • ***
  • 66 posts
placement on header
« on: June 10, 2016, 02:48:49 AM »
Hi Michal,
Please have a  look the attachment file. I think i placed the code wrongly. I like to have same wigdet placement.see the right image attached

*

MB Themes

Re: placement on header
« Reply #1 on: June 10, 2016, 08:14:50 AM »
@Marko
I think you have entered it inside div that belongs to welcome message.
Can you post your url?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #2 on: September 05, 2016, 12:23:40 PM »
hi,

please would you advice on how to place instant messenger on the footer I've purchased the plugging
and I got stacked after activated it
would you mind sending me a code line of how and what to do I mean a step by step I'm a new come into coding

Marko, I'd like to do the same as what you did

thanks,

*

MB Themes

Re: placement on header
« Reply #3 on: September 05, 2016, 01:05:30 PM »
@Jhun
You have it written in plugin:

To show link to message center and count of unread messages of user, place following link to your theme files:
Code: [Select]
<?php if(function_exists('im_messages')) { echo im_messages(); } ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #4 on: September 05, 2016, 02:21:10 PM »
hi,

I understand but as I said I'm just new in coding

would you mind telling me which theme files (the name)
and where to past the code line please  :'(

a small screen capture will be much appreciated  8) 8)

I really appreciate your help

thanks,

*

MB Themes

Re: placement on header
« Reply #5 on: September 05, 2016, 02:44:28 PM »
@Jhun
Well I would bet if you want to place it to footer, you should add it to footer.php in theme files.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #6 on: September 06, 2016, 08:13:58 AM »
.
« Last Edit: September 15, 2016, 03:07:07 PM by Jhun Kiluba »

*

MB Themes

Re: placement on header
« Reply #7 on: September 06, 2016, 08:52:11 AM »
@Jhun
In file:
oc-content/themes/zara/header.php

Right above this line:
Code: [Select]
<!-- CONTACT PHONE AND LINK IN HEADER -->
You place code:
Code: [Select]
      <!-- INSTANT MESSENGER PLUGIN -->
      <?php if(function_exists('im_messages')) { echo im_messages(); } ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #8 on: September 13, 2016, 03:55:57 PM »
hi,

it's now ok, I can see it on header but I'm having this message from user loggin

Warning: Missing argument 3 for ModelIM::getThreadIsRead(), called in /htdocs/oc-content/plugins/instant_messenger/user/threads.php on line 54 and defined in /htdocs/oc-content/plugins/instant_messenger/model/ModelIM.php on line 275

honestly I just have a small issue with interpretation of this,

could you please assist,

thanks,

*

MB Themes

Re: placement on header
« Reply #9 on: September 13, 2016, 07:37:21 PM »
@Jhun Kiluba
Do you use latest version of plugin?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #10 on: September 15, 2016, 03:10:04 PM »
hi,

it's 1.0.3 version

*

MB Themes

Re: placement on header
« Reply #11 on: September 15, 2016, 07:32:40 PM »
@Jhun
This might be problem with your hosting as third argument of that function is optional...
Can you post what you have in file:
model/modelIM.php

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

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #12 on: September 16, 2016, 08:27:17 AM »
@frosticek

public function getThreadIsRead( $thread_id, $user_id, $secret ) {
  $this->dao->select('coalesce(m.pk_i_id, 0) as pk_i_id, coalesce(m.i_read, 1) as i_read');
  $this->dao->from( $this->getTable_threads() . ' as t' );
  $this->dao->join( $this->getTable_messages() . ' as m', 't.i_thread_id = m.fk_i_thread_id AND ((t.i_from_user_id = ' . $user_id . ' AND m.i_type = 1  OR  t.i_to_user_id = ' . $user_id . ' AND m.i_type = 0) OR (t.s_from_secret = "' . $secret . '" AND m.i_type = 1  OR  t.s_to_secret = "' . $secret . '" AND m.i_type = 0))', 'LEFT OUTER' );

  $this->dao->where('t.i_thread_id', $thread_id );

  $this->dao->orderby('m.d_datetime DESC');
  $this->dao->limit(1);

  $result = $this->dao->get();
  if( !$result ) { return array(); }
  return $result->row();
}

*

MB Themes

Re: placement on header
« Reply #13 on: September 16, 2016, 08:38:01 AM »
@Jhun Kiluba
That is not latest version. Some mess is there.
I have mailed to you latest plugin version. Simply replace plugin files with new one.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jklb

  • ***
  • 54 posts
Re: placement on header
« Reply #14 on: September 16, 2016, 10:46:02 AM »
@

it seems resolved, but I'm now having thread:listing #4inquiry
find it attached.

thanks,