| 
Welcome, Guest

Plugin - Last Profile Visitors
(1 viewing) (1) Guest

TOPIC: Plugin - Last Profile Visitors

Re:Plugin - Last Profile Visitors 2 years, 9 months ago #96853

  • Posts:
  • Karma:
line 41
 
$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";



change to
 
$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";
 


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

Re:Plugin - Last Profile Visitors 2 years, 9 months ago #97176

  • Posts:
  • Karma:
thank you so much sorema that solves it.

Re:Plugin - Last Profile Visitors 2 years, 8 months ago #101666

  • Posts:
  • Karma:
Can i use that without legacy mod?

Re:Plugin - Last Profile Visitors 2 years, 6 months ago #106733

  • Posts:
  • Karma:
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...

Does anybody know how to do this?

Best Regards to all

Re:Plugin - Last Profile Visitors 2 years, 5 months ago #108508

  • Posts:
  • Karma:
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 =-

Re:Plugin - Last Profile Visitors 2 years, 4 months ago #111966

  • Posts:
  • Karma:
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:

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


...and replace it with this:

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


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
Time to create page: 1.17 seconds