Profile Views Download 3.1

This component/theme works with latest OSSN version.
Indonesian Arsalan Shah 5 years ago

Allow your users to view the people who visited their profile.


  • Fixed issue as mentioned below.
  • Changed order to desc
gb TalkToAi Online Replied 2 months ago

works nicely.

Indonesian Arsalan Shah Replied 11 months ago

Fixed in 3.0

German Michael Zülsdorff Replied 11 months ago

Thanks for your feedback, Melo.

And yes, it makes sense to show the latest visitors first (=descending order)
Thus, instead of reversing the result we better delegate that task to the database query right away... 💡

$looks = ossn_get_relationships(array(
    'from' => ossn_loggedin_user()->guid,
    'type' => __who_view_profile_type__,
    'order_by' => 'relation_id DESC'
ma Melo lobo Replied 11 months ago

I propose to add the function array_reverse( ) to show new views first.

instead of $vars['users'] = $users;


$vars['users'] = array_reverse($users);

it's my modest contribution :)

ma Melo lobo Replied 11 months ago

now that I applied your script everything works perfectly. in fact it's a small change of script but it requires a great mastery to do it. Thank you Michael Zülsdorff, RESPECT

German Michael Zülsdorff Replied 11 months ago

Oops yes, can confirm that.
Now that this component has been in use for a long time and has thus created countless to/from mix-ups in the database, I think it makes sense to leave them in place and simply reverse the display logic like

$looks = ossn_get_relationships(array(
    'from' => ossn_loggedin_user()->guid,
    'type' => __who_view_profile_type__
$count = ossn_get_relationships(array(
    'from' => ossn_loggedin_user()->guid,
    'type' => __who_view_profile_type__,
    'count' => true
if ($looks) {
    foreach ($looks as $item) {
        $user = ossn_user_by_guid($item->relation_to);
        if ($user) {
            $users[] = $user;
ma Melo lobo Replied 11 months ago

Hello Arsalan Shah, I just tested the profilView component and I found that the component works backwards, that is to say that instead of showing me the people who have visited my profile, it shows me the people that I visited their profile. I don't know is it me who is off the mark :p

Indonesian Arsalan Shah Replied 1 year ago

Thanks merged and updated

Breton Rafael [] Replied 1 year ago

Today I've made a few updates into this component and send it to github. Basically, an icon before menu item and this item inside links section. Also, label translation to portuguese and spanish. Code is in

pk Malik Umer Farooq Replied 5 years ago

add notification user receive notification as well


Developer: Arsalan
License ossnv3
Type: Uncategorized
Requires Ossn Version : 6.0
Latest Version: 3.1
Last Updated 10 months ago
Repository Url View Repository