Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

Who's Online Enhancement 1.4


  • You cannot reply to this topic
1741 replies to this topic

#41 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 14:45

Sheepish, on Dec 15 2004, 03:22 AM, said:

I'm not sure if it's not working properly or if the lights aren't labelled correctly - I'm getting a dark green when someone is active but with nothing in the cart...and when I do a test and put something in my own cart - that's green too.

Sheepo

<{POST_SNAPBACK}>


Sheepo,

The cart code depends on session data. Is your session data stored in mySQL or in a file? I've only tested it for mySQL. The code I used was cut and paste from some other source.

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#42 100asa

  • Community Member
  • 390 posts
  • Real Name:Remigio
  • Location:Italy

Posted 15 December 2004, 14:48

100asa, on Dec 15 2004, 10:15 AM, said:

When I able the line 274
   <?php echo tep_image('images/flags/' . strtolower(geoip_country_code_by_addr($gi, $whos_online['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $whos_online['ip_address'])).'&nbsp;'. geoip_country_code3_by_addr($gi, $whos_online['ip_address']); ?>
my who's online show me this fatal error:
Fatal error: Call to undefined function: geoip_country_code3_by_addr() in /web/htdocs/www.100asa.it/home/securecentoasa/whos_online.php on line 274
Thank you for support

<{POST_SNAPBACK}>


How can I solve this problem?
Skype: centoasa
Skype: remigioruberto

#43 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 14:50

100asa, on Dec 15 2004, 04:15 AM, said:

When I able the line 274
   <?php echo tep_image('images/flags/' . strtolower(geoip_country_code_by_addr($gi, $whos_online['ip_address'])) . '.gif', geoip_country_name_by_addr($gi, $whos_online['ip_address'])).'&nbsp;'. geoip_country_code3_by_addr($gi, $whos_online['ip_address']); ?>
my who's online show me this fatal error:
Fatal error: Call to undefined function: geoip_country_code3_by_addr() in /web/htdocs/www.100asa.it/home/securecentoasa/whos_online.php on line 274
Thank you for support

<{POST_SNAPBACK}>


100asa,

There are some resource files and some additional code in the other whos online contrib. You need to get that contrib and read it thoroughly.

My intent was to show where the Flag code needed to be inserted to get the flags in the table but not to fully integrate the Flag code. I did this because there was no consensus on whether people wanted flags or not but I knew people who wanted them would then be asking where to put the code. Sorry if it added more confusion then help.

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#44 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 14:55

Fireman-911, on Dec 15 2004, 09:42 AM, said:

I have a quick question. The other Who's online that I was using, automatically droped the person that was not active after 15 minutes. Now, the timer also was counting up to 15 minutes.

My question is just that - How long does an inactive session (bot or otherwise) stay on the page?

<{POST_SNAPBACK}>


Joel,

Active is 0 - 3 minutes.
Inactive is 3 - 15 minutes.
15 minutes is deleted from the table.

There are 2 variables in the code, one set to 180 (3 minutes) and one set to 900 (15 minutes). These can be easily changed when you find them. I may move them up top in the future...

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#45 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 14:57

airolg, on Dec 14 2004, 10:25 AM, said:

I love all your ideas and will be extremely grateful to you for all you are doing to enhance this tool.

Since you know what you are doing, I'm going to stop trying to get my red/green lights to work in my code and wait for your upgrade.  :D 

Is it ready yet??? <just kidding>

<{POST_SNAPBACK}>


It's ready!

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#46 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 15:01

Tipsy, on Dec 14 2004, 06:37 AM, said:

The flags sound fun but aren't too important.

As to the lights all I'd ask is that the difference between light and dark is pronounced enough being one of the many with red/green colour blindness :)  Failing that making the colours totally different would get around it ie red/yellow red/blue yellow/blue etc etc. A silly little handicap but one that a lot of people have got  :blush:

That said it'd be easy enough to make a small tweak myself and change the colour if need be. It's the rest of the code someone with my limited abilities struggles with :) So just being released in whatever flavour would be fine.

<{POST_SNAPBACK}>


Tony,

Let me know how the colors work. I added alt text. Also, with Green as active and Red as inactive, and the entries sorted by last click, the Green and Blue lights should be at the top and the Yellow and Red lights should be at the bottom. That might help differentiate.

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#47 Sheepish

  • Community Member
  • 36 posts
  • Real Name:Martin

Posted 15 December 2004, 15:04

medvid, on Dec 15 2004, 02:45 PM, said:

Sheepo,

The cart code depends on session data.  Is your session data stored in mySQL or in a file?  I've only tested it for mySQL.  The code I used was cut and paste from some other source.

ed

<{POST_SNAPBACK}>


Urm - dunno about the session data. How can I check?

Carts that are empty and carts that are full are all green...only colours I see is green, yellow and white (and no - I'm not colour blind like Tipsy :)

Any suggestions?

Sheepo

#48 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 15:17

Sheepish, on Dec 15 2004, 10:04 AM, said:

Urm - dunno about the session data.  How can I check?

Carts that are empty and carts that are full are all green...only colours I see is green, yellow and white (and no - I'm not colour blind like Tipsy :)

Any suggestions?

Sheepo

<{POST_SNAPBACK}>


Sheepo,

Your catalog/includes/configure.php sets the session storage. It's down at the bottom near the database entries. Also, what version of osC are you using?

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#49 PandA.nl

  • Community Member
  • 323 posts
  • Real Name:Paul
  • Location:Haarlem, Netherlands

Posted 15 December 2004, 15:23

About the sessions: I remember I've changed something to the original code concering sessions to make it work with my own cart, but I didn't really understand this part so.....

I will try to take another look at it
Please do not PM me for support, I will not respond anyway.

#50 BoulderDash

  • Community Member
  • 122 posts
  • Real Name:Mark P.

Posted 15 December 2004, 15:23

Hey there,
I'm afraid I'm joining the "Who's Online Enhancement 1.5" party a little late. To initially install this for the first time, is all I have to do is download the "Who'sOnlineEnhancement1.5 Folder" and make the changes documented there... or do I have to download prior versions and add code from each release up to 1.5?

Thanks!
BD

:-"

#51 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 15:29

BD,

It's written as a drop in. 1.5 has all of the necessary files you need (except for the country flags). Of course, that will overwrite any other custom work you've done prior. 1.4 changes are marked with EEM comments. 1.5 changes are marked with WOL 1.5 comments.

There are no "find this line and change it to this" type of directions.

ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#52 Sheepish

  • Community Member
  • 36 posts
  • Real Name:Martin

Posted 15 December 2004, 15:41

Looking at my config file...it's

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Is it possible to change to mysql without shagging things?

As to the version of osc - I use the CRELoaded version 6.042...

Ta

M.

#53 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 15:46

Sheepo,

I'm not an expert but my guess is that if you change it, then current, on-line shoppers will get a new sessionID which will disconnect them from their carts. That's a guess but I'd wait til activity has died down and then make the switch.

Modding that one line should be all you need to switch the session storage. It is actually recommended as a more secure, reliable session storage. With that said, that may or may not fix the status lights :-"

ed

Edited by medvid, 15 December 2004, 15:46.

Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#54 Sheepish

  • Community Member
  • 36 posts
  • Real Name:Martin

Posted 15 December 2004, 15:57

medvid, on Dec 15 2004, 03:46 PM, said:

Sheepo,

I'm not an expert but my guess is that if you change it, then current, on-line shoppers will get a new sessionID which will disconnect them from their carts.  That's a guess but I'd wait til activity has died down and then make the switch. 

Modding that one line should be all you need to switch the session storage.  It is actually recommended as a more secure, reliable session storage.  With that said, that may or may not fix the status lights  :-"

ed

<{POST_SNAPBACK}>


OK. I'll try it on my "test" site and see how it goes. Live testing is not good for meek little sheep like me ;)

I'll let you know in the morning when it's quiet

M. the S.

#55 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 16:03

PandA.nl, on Dec 15 2004, 10:23 AM, said:

About the sessions: I remember I've changed something to the original code concering sessions to make it work with my own cart, but I didn't really understand this part so.....

I will try to take another look at it

<{POST_SNAPBACK}>


Paul,

Thanks. Everything else you sent me is working great! I appreciate everything you're doing. If you do find something, post here or e-mail me directly, either is fine.

Thanks,
Ed
Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#56 Sheepish

  • Community Member
  • 36 posts
  • Real Name:Martin

Posted 15 December 2004, 16:40

medvid, on Dec 15 2004, 03:46 PM, said:

Sheepo,

I'm not an expert but my guess is that if you change it, then current, on-line shoppers will get a new sessionID which will disconnect them from their carts.  That's a guess but I'd wait til activity has died down and then make the switch. 

Modding that one line should be all you need to switch the session storage.  It is actually recommended as a more secure, reliable session storage.  With that said, that may or may not fix the status lights  :-"

ed

<{POST_SNAPBACK}>


That seems a bit better...just went to mysql and the colours are nice and pretty.

Ta.

M.

#57 medvid

  • Community Member
  • 1,210 posts
  • Real Name:Medvid

Posted 15 December 2004, 16:53

So, it seems we have a known issue. In v1.5, the status lights ONLY work with sessions stored in mySQL.

Please post any other issues or questions as they arise.

Thanks.
ed

Edited by medvid, 15 December 2004, 16:54.

Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.
Seek and ye shall find Contributions.
My Contributions
My Blog

#58 Fireman-911

  • Community Member
  • 519 posts
  • Real Name:Joel Gallant
  • Location:NB, Canada

Posted 15 December 2004, 17:07

Ok, for some reason, I can't get the icon_status_white.gif file to save into my folder.

Is there anyone else having that problem? Does anyone have a solution?



**************** NEVERMIND... PROBLEM FIXED ITSELF ****************

Edited by Fireman-911, 15 December 2004, 17:08.

Joel Gallant

#59 Tipsy

  • Community Member
  • 23 posts
  • Real Name:Tony

Posted 15 December 2004, 17:13

medvid, on Dec 15 2004, 03:01 PM, said:

Tony,

Let me know how the colors work.  I added alt text.  Also, with Green as active and Red as inactive, and the entries sorted by last click, the Green and Blue lights should be at the top and the Yellow and Red lights should be at the bottom.  That might help differentiate.

ed

<{POST_SNAPBACK}>



The colours are more than fine for me - thanks. Although my colour blindness is only mild compared to many I think most will be OK. The 'tones' are different enough for them to be easily recognized no matter what the colour looks like to someone :)

Thanks again.

#60 Fireman-911

  • Community Member
  • 519 posts
  • Real Name:Joel Gallant
  • Location:NB, Canada

Posted 15 December 2004, 17:22

Question of time...

Currently, from what I can see, it is set up to be on EST. Now, I live in Atlantic Canada & would like to see it listed in AST. Where do I look to change that?
Joel Gallant