cloudy

Author Topic: Who's Online PHP Script 2.0 for your template site  (Read 114712 times)

0 Members and 2 Guests are viewing this topic.

Offline Shultzy

  • Posts: 200
  • WS-3600 in Beresfield, Newcastle, NSW, Australia
  • Beresfield, Newcastle, NSW, Australia
    • Beresfield Live Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #750 on: October 26, 2009, 10:45:22 PM »
Still getting this error:

Fatal error: Call to undefined function check_for_settings() in /virtual/users/e15740-16637/web/whos-online.php on line 15

Offline Shultzy

  • Posts: 200
  • WS-3600 in Beresfield, Newcastle, NSW, Australia
  • Beresfield, Newcastle, NSW, Australia
    • Beresfield Live Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #751 on: October 26, 2009, 10:56:04 PM »
In the file include-whos-online-settings.php, check_for_settings.php isn't defined. Is  it supposed to be? (in relation to the error message)

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #752 on: October 26, 2009, 11:09:27 PM »
In the file include-whos-online-settings.php, check_for_settings.php isn't defined. Is  it supposed to be? (in relation to the error message)

check_for_settings is not a PHP file, it is a function inside include-whos-online-header.php

include-whos-online-header.php is included by whos-online.php

Sorry you are having trouble. You might not be following the install instructions properly.

FYI 3.0 version will be out in a day or two and it will be easier to install.

Mike

Offline Shultzy

  • Posts: 200
  • WS-3600 in Beresfield, Newcastle, NSW, Australia
  • Beresfield, Newcastle, NSW, Australia
    • Beresfield Live Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #753 on: October 27, 2009, 01:42:07 AM »
Cheers Mike, thanks for your help. I'll wait for V3 and try again then.

Jacob :)

Offline edje1205

  • edje
  • Posts: 1,838
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Who's Online PHP Script 2.0 for your template site
« Reply #754 on: December 01, 2009, 12:04:44 PM »
hi guys,

I'm a little confused, it seems to work without dbname user pass settings on include-whos-online-page.php
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/whos-online.php (but not updating ?)

but trying to open the page http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/include-whos-online-page.php there's an error:

Quote
Error: You need to set the settings for dbname, dbuser, and dbpass for the whos online script to function.


then filling in the user pass etc at include-whos-online-page.php
Code: [Select]
// Connect to mysql database
$wo_dbh = mysql_connect($C['localhost'], $C['weersxxxxxxxx'], $C['xxxxxxx']);
if (!$wo_dbh) die('Could not connect: ' . mysql_error($wo_dbh));
mysql_select_db($C['whos_online'],$wo_dbh) or die(mysql_error($wo_dbh));

I have a parse error:

Quote
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /var/www/vhosts/weersverwachtingen.eu/httpdocs/clientraw/wd-ajax-ml/include-whos-online-page.php on line 619

line 619 starts (see att)

does it work not filling in the pass etc at include-whos-online-page.php ?
is it possible to open the include-whos-online-page.php alone ?
if not and fill in the pass etc what's that parse error ')'  ?

thnx for the scripts Mike, anyway !
« Last Edit: December 01, 2009, 12:13:27 PM by edje1205 »
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #755 on: December 01, 2009, 03:49:11 PM »
The dbsettings are supposed to be set in the file include-whos-online-settings.php, do not alter any code in the other files.

Offline dw1373

  • Posts: 13
  • Gig Harbor, Washington
    • Gig Harbor Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #756 on: December 02, 2009, 03:28:58 AM »
Hi Mike,

I have been using your Who's Online script for a while and just recently upgraded to the 2.0 just before Thanksgiving and everything was fine. Dec 1st comes and I have an error.

Who's Online
Invalid query: Table 'gigharb1_gigharborweather.geo_update' doesn't exist647/home1/gigharb1/public_html/include-whos-online-page.php

What did I miss?

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #757 on: December 02, 2009, 04:43:37 AM »
Insert this mysql to your whos online database:

Code: [Select]
CREATE TABLE `geo_update` (
  `time_last_check` int(10) unsigned NOT NULL default '0',
  `needs_update` tinyint(1) unsigned NOT NULL default '0'

) TYPE=MyISAM DEFAULT CHARSET=latin1;

Offline dw1373

  • Posts: 13
  • Gig Harbor, Washington
    • Gig Harbor Weather
Re: Who's Online PHP Script 2.0 for your template site
« Reply #758 on: December 02, 2009, 11:32:32 AM »
Mike,

Do I insert that code within the include-whos-online-settings.php or somewhere within the mysql database on the server?

Offline edje1205

  • edje
  • Posts: 1,838
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Who's Online PHP Script 2.0 for your template site
« Reply #759 on: December 02, 2009, 01:55:17 PM »
Mike,

Do I insert that code within the include-whos-online-settings.php or somewhere within the mysql database on the server?

to your whos online database 'geo_update' see posting above  :wink:
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,439
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Who's Online PHP Script 2.0 for your template site
« Reply #760 on: December 14, 2009, 04:05:35 PM »
Hi Mike,
Why the script showes me the incomprehensible words like in the attachment?
What's the meaning of this?
Thanks,

Alessandro

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #761 on: December 14, 2009, 04:28:55 PM »
Alessandro,

I do not know specifically why. The links had paramaters added to the URL. A query string. Sometimes hackers play with added parameters on a url to try to find a security hole in your server. Some of the parameters like "uom" look normal to the scripts operation though.

Mike

Offline K3JAE

  • Posts: 696
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: Who's Online PHP Script 2.0 for your template site
« Reply #762 on: December 15, 2009, 03:19:29 PM »
I have an interesting problem.

I redid my whos-online script to fix the database error.  Problem resolved by the way.

My problem:  i did the page as http://k3jae.com/whos-online-test.php first to ensure all was well.  Formatting is correct and it is the way I want it to look. So I simply renamed my whos-online-test.php to whos-online.php and my formatting went from narrow format to wide format. Again NOTHING was changed except the file name.

Where am I missing the formatting issue? Is it in the Settings.php or someplace else? ALL files were uploaded using the latest package so no older issued files were left, as all should be at latest version.

See examples by using URL below for visual understanding:
http://k3jae.com/whos-online-test.php
http://k3jae.com/whos-online.php


73's de K3JAE

John
K3JAE Weather Station

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #763 on: December 15, 2009, 05:58:24 PM »
It is supposed to be wide because the URLs in the table can be rather long. Yes you find the code for that it in settings.php

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Who's Online PHP Script 2.0 for your template site
« Reply #764 on: December 16, 2009, 06:22:40 AM »
I worked on version 3.0 tonight. It is almost ready. Maybe I will have a beta in a few days.