0 Members and 1 Guest are viewing this topic.

online , offline icon
« on: January 15, 2018, 01:14:54 PM »
How can i show icon"online,offline" beside member photo in profile page.
Thanks

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #1 on: January 15, 2018, 07:58:38 PM »
Hi elkashef,

I will have to look this up and test to let you know first.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #2 on: January 17, 2018, 07:19:20 AM »
Hi elkashef,

Here is the modded online and offline icon Mod.

You will need to upload all the files in the attachment below called Offline-Online Mod.zip.

Icon and Text can be changed again for just icons, but will need to modded again.
« Last Edit: January 17, 2018, 07:41:21 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: online , offline icon
« Reply #3 on: January 17, 2018, 08:54:53 AM »
Very Very thanks

Working now...
 ;)

Re: online , offline icon
« Reply #4 on: January 17, 2018, 09:07:18 AM »
Very Very thanks

Working now...
 ;)
how can it work in full profile page?
« Last Edit: January 17, 2018, 10:16:39 AM by CBG »

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #5 on: January 17, 2018, 10:59:41 AM »
Hi elkashef,

The profile tpl would have to be modded.

In the nickpage_basic_address.tpl you need to add this on line 130 after the last {/if} before the </table>

Code: [Select]
<tr class="signup_line_outer oddrow">
<td>
<b>Online Status:</b>
</td>
<td>
{checkuser userid=$item.id checkfor='online'}
</td>
</tr>
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: online , offline icon
« Reply #6 on: January 17, 2018, 01:03:08 PM »
Iget


Input array has 1 params, does not match query: 'select count(onl.userid) from osdate_onlineusers as onl, osdate_user as usr where onl.userid = ? and usr.id = onl.userid and usr.allow_viewonline = ?'
 Not Recently Active

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #7 on: January 17, 2018, 08:20:32 PM »
Hi elkashef,

I will take a look later, more than likely the code will need to be changed or can't have in the profile area.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #8 on: January 17, 2018, 11:15:52 PM »
Hi elkashef,

For the profile area change this:
Code: [Select]
{checkuser userid=$item.id checkfor='online'}
To this:
Code: [Select]
{checkuser userid=$user checkfor='online'}
Works fine now  ;)
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #9 on: January 18, 2018, 05:38:42 AM »
Hi elkashef,

I made a few mistakes in the last version, so I have remade the Online Mod.

In the language file of your pick, find this line 1338:
Code: [Select]
$lang['useronlinetext'] = array(
'online_now' => 'Online Now',
'active_24hours' => 'Active within 24 Hours',
'active_3days' => 'Active within 3 Days',
'active_1week' => 'Active within 1 week',
'active_1month' => 'Active within 1 month',
'notactive' => 'Not Recently Active'
);

Change to:
Code: [Select]
$lang['useronlinetext'] = array(
'online_now' => 'Online Now',
'active_24hours' => 'Active within 24 Hours',
'active_3days' => 'Active within 3 Days',
'active_1week' => 'Active within 1 week',
'active_1month' => 'Active within 1 month',
'notactive' => 'Not Recently Active',
        'onlinea' => 'Online',
'offlineb' => 'Offline'
);

Also you need to add this below:
Code: [Select]
$lang['onlineprstatus'] = 'Status:';
Save and then go the admin/ find the Manage languages, select Example: English and click load, so the database now reflects the same changes.

You also need to upload all the files again with the fixes.

I removed the images and replaced with CSS system instead.

The mod included has all the changes including the English lang file only.

Since your using a bought template, you will need to add the CSS changes yourself also.


 
« Last Edit: January 19, 2018, 01:34:25 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: online , offline icon
« Reply #10 on: January 18, 2018, 08:55:00 AM »
everything fine but profile page stay offline for online user
 :)
Thank you for your support

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #11 on: January 18, 2018, 09:13:02 AM »
Hi elkashef,

I didn't test if it was working but if I can't work it out just remove from the profile, it's not really needed there.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,125
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: online , offline icon
« Reply #12 on: January 18, 2018, 10:17:09 AM »
Hi elkashef,

I fixed the profile online, sorry small typo in $user

Change the
Code: [Select]
{checkuser userid=$user checkfor='online'}
To this:
Code: [Select]
{checkuser userid=$user.id checkfor='online'}
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: online , offline icon
« Reply #13 on: January 18, 2018, 10:24:53 AM »
Working Now  ;) :) :) :) :) :) ;)
Thanks