Jump to content



Latest News: (loading..)

* * * * * 1 votes

Who's Online Enhancement 1.4


  • Please log in to reply
1756 replies to this topic

#1741   baps

baps
  • Members
  • 2 posts
  • Real Name:Lee

Posted 03 February 2012 - 02:33 PM

Hi folks,

Wondering if perhaps someone can suggest what's wrong with my installation of this addon? I'm running osCommerce 2.3.1 and have installed Who's Online version 3.5.4. I've found so many additions/edits of this I'm somewhat confused as to which I should be running to be honest.

This version is mostly fine, although it doesn't label bots as bots. From what I'm reading I need to update spiders.txt? Does anyone know where I get a valid updated version of this from?

Also, the shopping cart appears to be separate from the rest of the table and doesn't recognise when someone has an item in their cart. You can see this in the attached screenshot where even the style is different on the shopping cart column.

Would I be better reinstalling the addon? If someone could point me to the correct version that would be very helpful.

Many thanks,

Baps.

Edit: Regarding the cart issue, I've checked the store sessions settings, they both match.

Attached Files


Edited by baps, 03 February 2012 - 02:42 PM.


#1742   rabon33

rabon33
  • Members
  • 74 posts
  • Real Name:jason ravone

Posted 05 February 2012 - 03:21 AM

is not a security risk, to let a folder with permissions on 777???

#1743   Nisinho Brazil

Nisinho Brazil
  • Members
  • 15 posts
  • Real Name:Nisinho
  • Gender:Male

Posted 04 June 2012 - 10:59 PM

Hello, I'm wanting the API code but Google is different now as mandated by the contribution is to link different

Was watching do not know if this is
https://developers.google.com/android/maps-api-signup

could see me if this is the same code that generates the API?

This I thank you

#1744   luigicosta

luigicosta
  • Members
  • 97 posts
  • Real Name:luigi costa

Posted 14 June 2012 - 08:57 PM

hello all, has anyone ever had this kind of error?
thanks

Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 583 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Maglia Calcio Germania Trasferta stagione 2011 - 2012 (Product)


#1745   SteveDallas

SteveDallas
  • Members
  • 720 posts
  • Real Name:Glen
  • Gender:Male
  • Location:Alabama, US

Posted 06 July 2012 - 12:45 PM

View Postluigicosta, on 14 June 2012 - 08:57 PM, said:

hello all, has anyone ever had this kind of error?
thanks

Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 583 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Maglia Calcio Germania Trasferta stagione 2011 - 2012 (Product)
What version of whos_online are you using?  The history for the contribution shows that this issue was fixed in v3.6.6.2 in 2010.

--Glen

#1746   WWI

WWI
  • Members
  • 27 posts
  • Real Name:Lisa Fisli
  • Gender:Female

Posted 19 July 2012 - 09:09 PM

Has anyone figured out what is this error:
Parse error: syntax error, unexpected T_CLASS in   /admin/includes/classes/ipinfodb.class.php on line 2

#1747   Sylvester99

Sylvester99
  • Members
  • 31 posts
  • Real Name:Dwane
  • Gender:Male

Posted 13 August 2012 - 02:50 PM

I am having problem with this contribution after using it for the past 2 years or so.

Yesterday the page would not refresh.  It just sits there in FireFox with the spinning logo indicating that it is loading.  So I tried it in IE8 and it appears to be working fine.

I am wondering if this has anything to do with Google changing the API?  I have tried disabling the ipinfodb.com stuff, but it still does it which is what makes me think that it has something to do with the Google API.

Is anyone else suffering the same issues?  And how can the map function be eliminated from the code as I do not use it at all.  (I only use ipinfodb.com once in a while and it wouldn't bother me if it had to go too).

Thanks!

Sylvester99.

#1748   abbott75

abbott75
  • Members
  • 89 posts
  • Real Name:Adam

Posted 03 October 2012 - 02:31 AM

Is there a complete package download for 2.3.3?

#1749   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,080 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 03 October 2012 - 07:22 AM

@abbott75

Have you tried the one for 2.3.1 it may work as the versions are pretty much the same.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.  

OSC has a steep learning curve, but in general the program does work.  If it doesnt work, the chances are it is something you have done.

#1750   pixclinic

pixclinic

    FrenchyBee

  • Members
  • 713 posts
  • Real Name:Frenchy Bee
  • Gender:Male
  • Location:Seattle

Posted 17 October 2012 - 10:39 PM

Does anybody have the show map working with the Google Maps API V3. (V2 is deprecated and wont work)?

the whos_online part calling the API:

<?php echo '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' . GOOGLE_MAPS_KEY . '" type="text/javascript"></script>'; ?>
	<script type="text/javascript">
	var map;
var geoXml;
var toggleState = 1;

function initialize() {
   if (GBrowserIsCompatible()) {
	//Angel - Arreglo para que salgan las burbujas en el Mapa del Mundo
  //geoXml = new GGeoXml("<?php //echo HTTP_CATALOG_SERVER . "/visitors_georss.php";?>");
  geoXml = new GGeoXml("<?php echo HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "visitors_georss.php";?>");
  map = new GMap2(document.getElementById("map_canvas"));
  map.setCenter(new GLatLng(36,2), 1);
  map.addControl(new GLargeMapControl());
  map.addControl(new GLargeMapControl());
  map.addOverlay(geoXml);
   }
}
	</script>

needs to be changed to


<?php echo '<script src="http://maps.googleapis.com/maps/api/js?key=' . GOOGLE_MAPS_KEY . '&sensor=true" type="text/javascript"></script>'; ?>
	<script type="text/javascript">
  

function initialize() {
		var mapOptions = {
		  center: new google.maps.LatLng(<HERE WE NEED THE LATITUDE>,<HERE WE NEED THE LONGITUDE>),
		  zoom: 8,
		  mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_canvas"),
			mapOptions);
	  }



	</script>

Thank you for your input.

#1751   intensivex

intensivex
  • Members
  • 67 posts
  • Real Name:Intensivex
  • Gender:Male
  • Location:East Coast

Posted 24 November 2012 - 02:08 AM

Hello folks,

Install was a success. API key works (the map throws an alert dialog with an error if it doesn't). I'm digging the newer icons and the updated selects for control.

I would love the map, if it actually did anything.

Does the map rely on the ipinfo api feed at all?

I've also applied pixclinic's v3 update, and the map still seems to work.

My questions are:

1) Is the map designed to do anything? Am i supposed to see icons over the map? if so, from what local source? catalog/images/flags?
2) @pixclinic - in your update to v3, you're code seems like it expects  "<HERE WE NEED THE LATITUDE>" and "<HERE WE NEED THE LONGITUDE>" - how are these populated and from where?

Thanks much for your time.

Edited by intensivex, 24 November 2012 - 02:11 AM.


#1752   intensivex

intensivex
  • Members
  • 67 posts
  • Real Name:Intensivex
  • Gender:Male
  • Location:East Coast

Posted 29 November 2012 - 03:22 AM

Seems i fixed my issues with the map. It now populates with icons. The problem was the visitors_georss.php needed to be in the root/catalog, public directory so the google maps api can access it (to populate it with icon locations). Fair enough, but my original assumption was this file not being in a publicly accessible directory. Even though its only basic information, someone can easily mine your traffic stats  - exposing them like this probably violates some privacy rules and or laws as well.

As a solution, I added this to visitors_georss.php:
// Redirect me back to home page if im NOT maps.google.com
if($_SERVER['HTTP_REFERER'] != 'http//map.google.com/'.$_SERVER['QUERY_STRING']) header("Location: /");

Also ... the v3 of the Map API code posted by @pixclinic, didn't actually work for me. I reverted to v2 and all seems well again. Has anyone else gotten his v3 map update to work?

Also ...

For those of you still having issues with your visitors cart contents not displaying properly or at all, the issue stems from your get_products() and calculate() Methods that live inside your /admin/includes/classes/shopping_cart.php class. Namley to due with the differences in OOP between php 4 and php 5.3+

Apparently the while loops need to be converted into foreach's, and your queries should be updated to ensure they are returning results. The products_id wrapped in that tep_ function inside the queries was our issue.  Here are the get_products() and calculate() functions, both /admin/includes/classes/shopping_cart.php

http://pastebin.com/SgzpUVDj

These work for us. Use a code comparison tool to see what we did.

Good Luck!

#1753   intensivex

intensivex
  • Members
  • 67 posts
  • Real Name:Intensivex
  • Gender:Male
  • Location:East Coast

Posted 29 November 2012 - 03:50 AM

missed a colon in the referrer url: Should be:

if($_SERVER['HTTP_REFERER'] != 'http://map.google.com/'.$_SERVER['QUERY_STRING']) header("Location: /");


#1754   pixclinic

pixclinic

    FrenchyBee

  • Members
  • 713 posts
  • Real Name:Frenchy Bee
  • Gender:Male
  • Location:Seattle

Posted 29 January 2013 - 07:13 PM

anyone experiencing EXTREMELY slow page load the first time the url is reached (idoes not happen after that, the refresh are fast...) I'm suspecting the connexion to api.ipinfodb.com?

There always has been a little delay compared to the "non-flag" version, but it became worse lets say... in 2013

Thank you for your input!

#1755   shelby72

shelby72
  • Members
  • 139 posts
  • Real Name:Shelby Melton

Posted 28 February 2013 - 12:06 AM

I have installed the Who's online enhancement 3.6.7.2 and done the updates all the way up to update 231osc version. I cannot get the geolocations to display.  The city, region, and referer are all blank.  I also cannot get the map to come up.  I got the Google Maps Api v3 key.  The API Access link in my Google API console does have an exclamation mark by it.  Not sure what that means and if that has anything to do with why the map won't come up.  Is this something that I'm required to set up a credit card account with cause I see the Billing link below it?

#1756   yahalimu

yahalimu
  • Members
  • 27 posts
  • Real Name:mo

Posted 13 May 2013 - 03:57 PM

View Postpixclinic, on 29 January 2013 - 07:13 PM, said:

anyone experiencing EXTREMELY slow page load the first time the url is reached (idoes not happen after that, the refresh are fast...) I'm suspecting the connexion to api.ipinfodb.com?

There always has been a little delay compared to the "non-flag" version, but it became worse lets say... in 2013

Thank you for your input!


I also was dismayed by the slow load times.
Then I commented out the map calling function. (As detailed above) and its now almost instant.

The map is a gimic anyway.

#1757   pixclinic

pixclinic

    FrenchyBee

  • Members
  • 713 posts
  • Real Name:Frenchy Bee
  • Gender:Male
  • Location:Seattle

Posted 14 May 2013 - 04:14 PM

yahalimu

Removing the map calling did not improve anything on my end...

any suggestions?

Edited by pixclinic, 14 May 2013 - 04:15 PM.