Skip to Content Skip to Menu

Plugin - Last Profile Visitors

  • saimen
  • saimen
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
18 years 10 months ago #3097 by saimen
Replied by saimen on topic Re:Plugin - Last Profile Visitors
B) wow! great - I love this plugin. It's working very smooth on my Joomla/CB website.

Thank you very much.

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

  • muirad
  • muirad
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
18 years 10 months ago #3834 by muirad
Replied by muirad on topic Re:Plugin - Last Profile Visitors
thanx;)

Post edited by: muirad, at: 2006/01/14 22:27

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

  • Viames
  • Viames
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 6
18 years 10 months ago #3871 by Viames
Replied by Viames on topic A strange query in the lastviews plugin
Hi Trail :)
Looking at the plugin code i found this query at lastviews.php row 72:

SELECT count(viewer_id) FROM #__comprofiler_views WHERE profile_id ='$user->id' AND viewer_id=0

but this query seems has no role in the plugin, altought it is executed for many times (0 to 10 should depends on # of last visits) in every plugin load.
Anyway this query seems not required cuz views number is loaded directly from the first query (row 41-43).

CB italian translation & testing
translations on joomla.it
homesites: Viames.it , Crotone on Web

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

  • trail
  • trail
  • OFFLINE
  • Posts: 232
  • Thanks: 21
  • Karma: 813
18 years 10 months ago #3875 by trail
Replied by trail on topic Re:A strange query in the lastviews plugin
You are right that it should not be executed $listlimit number of times. But it serves the purpose of counting guest visits.

I have moved it out of the foreach loop so its just executed once. This should speed up the code, nice find, thanks :)

v0.1.9beta is born :)

Post edited by: Trail, at: 2006/01/15 18:26

DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age , Starsign Matchmaking Horoscope , My Visitor , My Highscores , My ProfileID ,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many :)

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

  • Viames
  • Viames
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 6
18 years 9 months ago #5019 by Viames
well trail, i know you love when i found something to change or fix ... lol :lol: j/k :)

1. Testing the SEF feature, i found that urls generated by lastviews plugin don't use the sefRelToAbs() function.
So the line:
... <a href=\"index.php?option=com_comprofiler&task=userProfile&user=".$lastview->viewer_id."\"> ...
could be changed into:
... <a href=\"".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$lastview->viewer_id)."\"> ...

2. The list could use alternate row colors, like in all CB tabs and in whole joomla. It missed "sectiontableentry1", using just "sectiontableentry2" for odds and even rows.

Thank you trail!

CB italian translation & testing
translations on joomla.it
homesites: Viames.it , Crotone on Web

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

  • pateta12
  • pateta12
  • OFFLINE
  • Posts: 30
  • Thanks: 0
  • Karma: 5
18 years 9 months ago #5352 by pateta12
I just found about this plugin and think that is great.

Here is some Karma going your way Trail.


:woohoo:

Post edited by: pateta12, at: 2006/02/02 08:52

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

Moderators: beatnantkrileon
Powered by Kunena Forum