| 
Welcome, Guest

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

TOPIC: Plugin - Last Profile Visitors

Re:Plugin - Last Profile Visitors 6 years, 4 months ago #3097

  • saimen
  • saimen
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 8
  • Karma: -
wow! great - I love this plugin. It's working very smooth on my Joomla/CB website.

Thank you very much.

Re:Plugin - Last Profile Visitors 6 years, 4 months ago #3834

  • muirad
  • muirad
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 6
  • Karma: -
thanx;)

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

A strange query in the lastviews plugin 6 years, 4 months ago #3871

  • Viames
  • Viames
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 69
  • Karma: 6
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

Re:A strange query in the lastviews plugin 6 years, 4 months ago #3875

  • trail
  • trail
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 439
  • Karma: 792
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

using sefRelToAbs() and alternate rows color 6 years, 3 months ago #5019

  • Viames
  • Viames
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 69
  • Karma: 6
well trail, i know you love when i found something to change or fix ... 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

Re:using sefRelToAbs() and alternate rows color 6 years, 3 months ago #5352

  • pateta12
  • pateta12
  • OFFLINE
  • Senior Boarder
    Senior Boarder
  • Posts: 58
  • Karma: 5
I just found about this plugin and think that is great.

Here is some Karma going your way Trail.




Post edited by: pateta12, at: 2006/02/02 08:52
Time to create page: 0.80 seconds