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

16 years 14 hours ago #83363 by blueyes1980
Replied by blueyes1980 on topic Re:Plugin - Last Profile Visitors
great plugi

Thanks

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

  • buzzi22
  • buzzi22
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
15 years 11 months ago #85922 by buzzi22
Replied by buzzi22 on topic Re:Plugin - Last Profile Visitors
made i little "feature" to delete all the views > 10, because i had over 500000 db entries:

put in lastviews.php

[code:1]//change
if($my->id == $database->getEscaped($user->id)) {
global $database;

$database->setQuery("SELECT * FROM #__comprofiler_views WHERE profile_id = " . $database->getEscaped($user->id));

if (!$database->query()) {
echo $database->stderr();
return false;
}

$ten = $database->getNumRows();
$finalten = $ten-10;
if($finalten > "1"«») {
$database->setQuery("DELETE FROM #__comprofiler_views WHERE profile_id = ". $database->getEscaped($user->id)." ORDER BY lastview ASC LIMIT ".$finalten." "«»);
$database->query();
}

}[/code:1]

all the views > 10 are deleted now, when a user clicks on his profile.
but you have to hide the total visits in admin area

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

  • Mike999
  • Mike999
  • OFFLINE
  • Posts: 39
  • Thanks: 1
  • Karma: 0
15 years 11 months ago #85927 by Mike999
Replied by Mike999 on topic Re:Plugin - Last Profile Visitors
Great work

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

  • buzzi22
  • buzzi22
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
15 years 11 months ago #85928 by buzzi22
Replied by buzzi22 on topic Re:Plugin - Last Profile Visitors
yeah it really killed my performance on the server, now it works very smooth

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

  • thelight
  • thelight
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
15 years 10 months ago #88362 by thelight
Replied by thelight on topic Re:Plugin - Last Profile Visitors
How do I make the last profile visitors tab visible only to the profile owner not to all other registered members. ie only the person who's profile has been visited should be able to see who has visted it. Some kind of privacy option ie read only by profile owner. Is this possible? what would I need to change in the code.

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

  • testeuse
  • testeuse
  • OFFLINE
  • Posts: 93
  • Thanks: 2
  • Karma: 0
15 years 10 months ago #89375 by testeuse
Replied by testeuse on topic Re:Plugin - Last Profile Visitors
Hi,

I am sorry, but where can i get this plugin please? The link to dj trail is no longer working??

Please, can someone give me a link or share his plugin please?

Last thing, is it working with cb 1.2?

Thank you very much for help.
Best regards

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

Moderators: beatnantkrileon
Powered by Kunena Forum