Zen Cart Logo
Forums / General Questions / Adding HTTP_SERVER to who's online

Adding HTTP_SERVER to who's online

Views: 2,124

Results 1 to 15 of 15
30 Dec 2013, 4:09 PM
#1
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Adding HTTP_SERVER to who's online

So I can more easily identify the subdomain of the last url in Who's Online (using multisite - multiple subdomains on same ZC install) I'm trying to include HTTP_SERVER in Admin/whos_online.php to get the full url, I'm assuming that's the way to go.

Changing, around line 413

$lastURLlink = '<a href="' . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>' . zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

to

$lastURLlink = '<a href="' . HTTP_SERVER . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>' . zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

has no effect, any ideas on what I need to do?

30 Dec 2013, 4:20 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding HTTP_SERVER to who's online

simon1066:

So I can more easily identify the subdomain of the last url in Who's Online (using multisite - multiple subdomains on same ZC install) I'm trying to include HTTP_SERVER in Admin/whos_online.php to get the full url, I'm assuming that's the way to go.

Changing, around line 413

$lastURLlink = '<a href="' . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>' . zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

> 
> to
> 
> ```php
$lastURLlink = '<a href="' . HTTP_SERVER . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>' . zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

has no effect, any ideas on what I need to do?

While notsure that returning HTTP_SERVER will identify the correct server for each of your runs, what you have inserted/changed is the link to which clicking on the path will go to. If you want to see the information more easily, you need to add information between the < u > and < /u > (spaces added so that would display on screen p as couldn't get it typed in with no spaces, some sort of autocorrect.)

If you were to hover mouse over the link, ushould see additional information compared to before.

30 Dec 2013, 5:07 PM
#3
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Adding HTTP_SERVER to who's online

Ah yes, I see you're right. What you've described works - thank you.

Unfortunately, with some testing, I see that the HTTP_SERVER is taken from the mystore.com/admin/includes/configure.php (as I guess one would expect) rather than the mystore.com/includes/configure.php which is where my subdomains are referenced (allbeit indirectly)

Not entirely sure there's a way around this

30 Dec 2013, 5:31 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding HTTP_SERVER to who's online

simon1066:

Ah yes, I see you're right. What you've described works - thank you.

Unfortunately, with some testing, I see that the HTTP_SERVER is taken from the mystore.com/admin/includes/configure.php (as I guess one would expect) rather than the mystore.com/includes/configure.php which is where my subdomains are referenced (allbeit indirectly)

Not entirely sure there's a way around this

So, as seems usual for me recently, I am not at a computer and review of the whose_online code isn't easy from this device, but... The fact that there is a fields[] variable with the last_url, uld think there is also a similar fields value for the server being accessed (which would be different than the server to which you are currently connected (which I believe is what happened with HTTP_SERVER above.) You need to refernece a variable that is specific to the server(s) in question.

30 Dec 2013, 6:03 PM
#5
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Adding HTTP_SERVER to who's online

Yes, I see this is going to be tricky, I'll dig around a bit more and see what I can come up with.

Thanks again

4 Jan 2014, 1:28 PM
#6
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Adding HTTP_SERVER to who's online

simon1066:

Yes, I see this is going to be tricky, I'll dig around a bit more and see what I can come up with.

Thanks again

Instead of using ZenCarts' HTTP_SERVER CONSTANT, try using one of the Global variables.

$_SERVER['HTTP_HOST']
or
$_SERVER['SERVER_NAME']

Cheers
RodG

4 Jan 2014, 3:43 PM
#7
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Adding HTTP_SERVER to who's online

RodG:

Instead of using ZenCarts' HTTP_SERVER CONSTANT, try using one of the Global variables.

$_SERVER['HTTP_HOST']
or
$_SERVER['SERVER_NAME']

Cheers
RodG

That won't work, because that will give you the admin $_SERVER['HTTP_HOST'].

I have the solution down below, but it involves some code changes.
First add a field to the Who's online table:

[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] `whos_online`  ADD `store_address2` [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

then open the file includes\functions\whos_online.php

find:```php
if ($stored_customer->fields['count'] > 0) {
$sql = "update " . TABLE_WHOS_ONLINE . "
set customer_id = '" . (int)$wo_customer_id . "',
full_name = '" . zen_db_input($wo_full_name) . "',
ip_address = '" . zen_db_input($wo_ip_address) . "',
time_last_click = '" . zen_db_input($current_time) . "',
last_page_url = '" . zen_db_input($wo_last_page_url) . "',
host_address = '" . zen_db_input($_SESSION['customers_host_address']) . "',
user_agent = '" . zen_db_input($wo_user_agent) . "'
where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";

$db->Execute($sql);

} else {
$sql = "insert into " . TABLE_WHOS_ONLINE . "
(customer_id, full_name, session_id, ip_address, time_entry,
time_last_click, last_page_url, host_address, user_agent )
values ('" . (int)$wo_customer_id . "', '" . zen_db_input($wo_full_name) . "', '"
. zen_db_input($wo_session_id) . "', '" . zen_db_input($wo_ip_address)
. "', '" . zen_db_input($current_time) . "', '" . zen_db_input($current_time)
. "', '" . zen_db_input($wo_last_page_url)
. "', '" . zen_db_input($_SESSION['customers_host_address'])
. "', '" . zen_db_input($wo_user_agent)
. "')";

$db->Execute($sql);

and change to:
```php
  if ($stored_customer->fields['count'] > 0) {
    $sql = "update " . TABLE_WHOS_ONLINE . "
              set customer_id = '" . (int)$wo_customer_id . "',
                  full_name = '" . zen_db_input($wo_full_name) . "',
                  ip_address = '" . zen_db_input($wo_ip_address) . "',
                  time_last_click = '" . zen_db_input($current_time) . "',
                  last_page_url = '" . zen_db_input($wo_last_page_url) . "',
                  host_address = '" . zen_db_input($_SESSION['customers_host_address']) . "',
                  user_agent = '" . zen_db_input($wo_user_agent) . "',
                  store_address = '" . zen_db_input($_SERVER['HTTP_HOST']) . "'
              where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";

    $db->Execute($sql);

  } else {
    $sql = "insert into " . TABLE_WHOS_ONLINE . "
                (customer_id, full_name, session_id, ip_address, time_entry,
                 time_last_click, last_page_url, host_address, user_agent, store_address )
              values ('" . (int)$wo_customer_id . "', '" . zen_db_input($wo_full_name) . "', '"
                         . zen_db_input($wo_session_id) . "', '" . zen_db_input($wo_ip_address)
                         . "', '" . zen_db_input($current_time) . "', '" . zen_db_input($current_time)
                         . "', '" . zen_db_input($wo_last_page_url)
                         . "', '" . zen_db_input($_SESSION['customers_host_address'])
                         . "', '" . zen_db_input($wo_user_agent)
                         . "', '" . zen_db_input($_SERVER['HTTP_HOST'])
                         . "')";

    $db->Execute($sql);

Next open YOUR_ADMIN\whos_online.php
around line 158 find:

  $sql = "select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id, host_address, user_agent

change to:

  $sql = "select customer_id, full_name, ip_address, time_entry,  time_last_click, last_page_url, session_id, host_address, user_agent, store_address

find:

                    $lastURLlink = '<a href="' . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>'. zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

change to:

                    $lastURLlink = '<a href="' .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '" target="_blank">' . '<u>' .  zen_output_string_protected($whos_online->fields['store_address']) .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '</u>' . '</a>';
4 Jan 2014, 4:07 PM
#8
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Adding HTTP_SERVER to who's online

Design75:

That won't work, because that will give you the admin $_SERVER['HTTP_HOST'].

I have the solution down below, but it involves some code changes.
First add a field to the Who's online table:

[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] whos_online ADD store_address2 [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

> 
> then open the file includes\functions\whos_online.php
> 
> find:```php
  if ($stored_customer->fields['count'] > 0) {
    $sql = "update " . TABLE_WHOS_ONLINE . "
              set customer_id = '" . (int)$wo_customer_id . "',
                  full_name = '" . zen_db_input($wo_full_name) . "',
                  ip_address = '" . zen_db_input($wo_ip_address) . "',
                  time_last_click = '" . zen_db_input($current_time) . "',
                  last_page_url = '" . zen_db_input($wo_last_page_url) . "',
                  host_address = '" . zen_db_input($_SESSION['customers_host_address']) . "',
                  user_agent = '" . zen_db_input($wo_user_agent) . "'
              where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";

    $db->Execute($sql);

  } else {
    $sql = "insert into " . TABLE_WHOS_ONLINE . "
                (customer_id, full_name, session_id, ip_address, time_entry,
                 time_last_click, last_page_url, host_address, user_agent )
              values ('" . (int)$wo_customer_id . "', '" . zen_db_input($wo_full_name) . "', '"
                         . zen_db_input($wo_session_id) . "', '" . zen_db_input($wo_ip_address)
                         . "', '" . zen_db_input($current_time) . "', '" . zen_db_input($current_time)
                         . "', '" . zen_db_input($wo_last_page_url)
                         . "', '" . zen_db_input($_SESSION['customers_host_address'])
                         . "', '" . zen_db_input($wo_user_agent)
                         . "')";

    $db->Execute($sql);

and change to:

if ($stored_customer->fields['count'] > 0) {
$sql = "update " . TABLE_WHOS_ONLINE . "
set customer_id = '" . (int)$wo_customer_id . "',
full_name = '" . zen_db_input($wo_full_name) . "',
ip_address = '" . zen_db_input($wo_ip_address) . "',
time_last_click = '" . zen_db_input($current_time) . "',
last_page_url = '" . zen_db_input($wo_last_page_url) . "',
host_address = '" . zen_db_input($_SESSION['customers_host_address']) . "',
user_agent = '" . zen_db_input($wo_user_agent) . "',
store_address = '" . zen_db_input($_SERVER['HTTP_HOST']) . "'
where session_id = '" . zen_db_input($wo_session_id) . "' and ip_address='" . zen_db_input($wo_ip_address) . "'";

$db->Execute($sql);

} else {
$sql = "insert into " . TABLE_WHOS_ONLINE . "
(customer_id, full_name, session_id, ip_address, time_entry,
time_last_click, last_page_url, host_address, user_agent, store_address )
values ('" . (int)$wo_customer_id . "', '" . zen_db_input($wo_full_name) . "', '"
. zen_db_input($wo_session_id) . "', '" . zen_db_input($wo_ip_address)
. "', '" . zen_db_input($current_time) . "', '" . zen_db_input($current_time)
. "', '" . zen_db_input($wo_last_page_url)
. "', '" . zen_db_input($_SESSION['customers_host_address'])
. "', '" . zen_db_input($wo_user_agent)
. "', '" . zen_db_input($_SERVER['HTTP_HOST'])
. "')";

$db->Execute($sql);
> 
> Next open YOUR_ADMIN\whos_online.php
> around line 158 find:
> ```php
  $sql = "select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id, host_address, user_agent

change to:

$sql = "select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id, host_address, user_agent, store_address

> 
> find:
> ```php
                    $lastURLlink = '<a href="' . zen_output_string_protected($whos_online->fields['last_page_url']) . '" target="_blank">' . '<u>'. zen_output_string_protected($whos_online->fields['last_page_url']) . '</u>' . '</a>';

change to:

                $lastURLlink = '<a href="' .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '" target="_blank">' . '<u>' .  zen_output_string_protected($whos_online->fields['store_address']) .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '</u>' . '</a>';

[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] whos_online ADD store_address2 [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

should of course be

[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] whos_online ADD store_address [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

:frusty:
4 Jan 2014, 4:46 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding HTTP_SERVER to who's online

Design75:

[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] whos_online ADD store_address2 [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

> should of course be
> ```
[URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]ALTER[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Falter-table.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TABLE[/URL] `whos_online`  ADD `store_address` [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&server=0&token=51b79b105ae00c1ee10591f7daf23215"]TEXT[/URL] [URL="http://multistore.zen4all-dev.nl/mysqladmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Flogical-operators.html&server=0&token=51b79b105ae00c1ee10591f7daf23215#operator_not"]NOT[/URL] NULL ;

:frusty:

Trust me, that sort of mistake happens...

I'm curious though, why the change to the database table(s)? Why not prepend the last_page_uri with the associated server name? Do you have a unique reason to pull the servername out to it's own field?

Thought is that url would be fully presented both as text (where needed) and as a functional link to the exact location.

4 Jan 2014, 5:05 PM
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Adding HTTP_SERVER to who's online

mc12345678:

Trust me, that sort of mistake happens...

I'm curious though, why the change to the database table(s)? Why not prepend the last_page_uri with the associated server name? Do you have a unique reason to pull the servername out to it's own field?

Thought is that url would be fully presented both as text (where needed) and as a functional link to the exact location.

I wanted to leave the original last_url in tact, because I was not sure what other processes us this, and was lacking the time to find out.

4 Jan 2014, 5:24 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding HTTP_SERVER to who's online

Design75:

I wanted to leave the original last_url in tact, because I was not sure what other processes us this, and was lacking the time to find out.

Could understand from that perspective. Think a query on the code through developer's tool kit will help answer that question, first would try with the entire var name, then would try with just the field name to see if it is used elsewhere. While possible to have renamed the base variable name, so likely, and even more unlikely to transfer the variable to another and completely change the field's name.

So, if someone else were to follow up on this thread, there is a solution that will display the full path name; however, it leaves other pieces of data untouched.

6 Jan 2014, 5:29 PM
#12
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Adding HTTP_SERVER to who's online

Design75:

That won't work, because that will give you the admin $_SERVER['HTTP_HOST'].

I have the solution down below, but it involves some code changes.
First add a field to the Who's online table:

..................

Just revisiting this topic, and hadn't realised how busty the thread had got.

Thank you so much for this Design75, does exactly what I needed.

mc12345678:

Could understand from that perspective. Think a query on the code through developer's tool kit will help answer that question, first would try with the entire var name, then would try with just the field name to see if it is used elsewhere. While possible to have renamed the base variable name, so likely, and even more unlikely to transfer the variable to another and completely change the field's name.

So, if someone else were to follow up on this thread, there is a solution that will display the full path name; however, it leaves other pieces of data untouched.

I think, although I'll look into it, that this is beyond my capabilities so I'll stick with the posted code for the moment. Thanks for your thoughts though.

Design75:

                $lastURLlink = '<a href="' .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '" target="_blank">' . '<u>' .  zen_output_string_protected($whos_online->fields['store_address']) .  zen_output_string_protected($whos_online->fields['last_page_url']) .  '</u>' . '</a>';

It seems strange that the original of this posted code, in fact all in that post, does not have a horizontal scroll on my screen, I had to expand the window to max to see all of it, luckily I'm on a big screen.
6 Jan 2014, 5:53 PM
#13
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Adding HTTP_SERVER to who's online

simon1066:

Just revisiting this topic, and hadn't realised how busty the thread had got.

...

should of course be 'busy' - apologies

6 Jan 2014, 6:06 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding HTTP_SERVER to who's online

simon1066:

It seems strange that the original of this posted code, in fact all in that post, does not have a horizontal scroll on my screen, I had to expand the window to max to see all of it, luckily I'm on a big screen.

That's the way information captured between the PHP or CODE tags is presented. I typically will either go to forward that message and copy and paste it, or will highlight the entire contents of the block, copy and then paste it to see what was said. Or using a touch device can drag around the code to see. But it is the proper way to have it presented in the forum.

7 Jan 2014, 11:46 AM
#15
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Adding HTTP_SERVER to who's online

simon1066:

should of course be 'busy' - apologies

I liked it better when it was busty :)

Cheers
RodG