Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Plugin - Last Profile Visitors

  • sorema
  • sorema
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
15 years 7 months ago #96853 by sorema
Replied by sorema on topic Re:Plugin - Last Profile Visitors
line 41
[code:1]
$query = "SELECT * FROM #__profilevisitors_visitors a INNER JOIN ( #__comprofiler b, #__users c) ON ( a.visitor_id = b.user_id AND a.visitor_id = c.id ) WHERE a.user_id = $user->id ORDER BY a.date_of_visit DESC";[/code:1]


change to
[code:1]
$query = "SELECT * FROM #__profilevisitors_visitors a INNER JOIN ( #__comprofiler b, #__users c) ON ( a.visitor_id = b.user_id AND a.visitor_id = c.id ) WHERE a.user_id = $user->id ORDER BY a.date_of_visit DESC LIMIT 4";
[/code:1]

i used 4...you can use what you want!

Please Log in or Create an account to join the conversation.

15 years 7 months ago #97176 by bytebandit01
Replied by bytebandit01 on topic Re:Plugin - Last Profile Visitors
thank you so much sorema ;) that solves it.

Please Log in or Create an account to join the conversation.

15 years 6 months ago #101666 by FreakKKkKk
Replied by FreakKKkKk on topic Re:Plugin - Last Profile Visitors
Can i use that without legacy mod?

Please Log in or Create an account to join the conversation.

  • Mx150
  • Mx150
  • OFFLINE
  • Posts: 45
  • Thanks: 4
  • Karma: 1
15 years 4 months ago #106733 by Mx150
Replied by Mx150 on topic Re:Plugin - Last Profile Visitors
Does anybody know how to add paging to this tab?

I Love this plug and it would be very great to have a paging function... :woohoo:

Does anybody know how to do this?

Best Regards to all

Please Log in or Create an account to join the conversation.

  • rocknolds
  • rocknolds
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: -3
15 years 4 months ago #108508 by rocknolds
Replied by rocknolds on topic Re:Plugin - Last Profile Visitors
I don't know if i miss something but it is showing in my CB profile page even in CB Profile EDIT page. I have a success installation with this.

Please shade light or direct me to the right section

cb1.2.1 + j1.5.14 legacy mode

-= the moment you enjoy wasting is not a waste of time
www.asmsi-cebu.org =-

Please Log in or Create an account to join the conversation.

15 years 3 months ago #111966 by swissbliss
Replied by swissbliss on topic Re:Plugin - Last Profile Visitors
I had a problem with this plugin (cb-profile-visitors-1_2) from Blisspark where it would only show an uploaded avatar and not a user selected gallery avatar.

This is how I fixed it, not the most elegant solution but it works! Hope it helps someone else.

In profile.visitors.php around line 83, find this code:

[code:1]if($visitor && strlen($visitor) > 0) {
if($ueConfig && !$visitor) {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnpendphoto.jpg';
} else {
$avatar_url = JURI::base() . 'images/comprofiler/tn' . $visitor;
}
} else {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnnophoto.jpg';
}[/code:1]

...and replace it with this:

[code:1]if($visitor && strlen($visitor) > 0) {
if($ueConfig && !$visitor) {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnpendphoto.jpg';
} elseif ( (strncasecmp($visitor, 'gallery', 7)) ==0) {
$avatar_url = JURI::base() . 'images/comprofiler/' . $visitor;
}
else {
$avatar_url = JURI::base() . 'images/comprofiler/tn' . $visitor;
}

} else {
$avatar_url = JURI::base() . 'components/com_comprofiler/images/english/tnnophoto.jpg';
}[/code:1]

You need to be using the default gallery directory for it to function, otherwise change the path strings appropriately.

Expose your creative side, write a poem
www.thatpoem.com

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum