Plugin - Last Profile Visitors

14 years 11 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 to join the conversation.

14 years 10 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 to join the conversation.

14 years 9 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 to join the conversation.

14 years 7 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 to join the conversation.

14 years 7 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 to join the conversation.

14 years 6 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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.476 seconds

Facebook Twitter LinkedIn