From 6fa836deadbafdbba6d1f55b1bf79fcebb9b0a6f Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 3 Sep 2023 06:43:31 +0200 Subject: [PATCH] Leave DXCC out of tweets if none --- application/views/view_log/qso.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index fdba5f55..8da288cd 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -400,9 +400,17 @@ $hashtags .= " #WWFF ".$row->COL_WWFF_REF; } if (!isset($distance)) { - $twitter_string = urlencode("Just worked ".$row->COL_CALL." in ".ucwords(strtolower(($row->COL_COUNTRY)))." on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); + $twitter_string = urlencode("Just worked ".$row->COL_CALL." "); + if ($row->COL_DXCC != 0) { + $twitter_string .= urlencode("in ".ucwords(strtolower(($row->COL_COUNTRY)))." "); + } + $twitter_string .= urlencode("on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); } else { - $twitter_string = urlencode("Just worked ".$row->COL_CALL." in ".ucwords(strtolower(($row->COL_COUNTRY)))." (Gridsquare: ".$row->COL_GRIDSQUARE." / distance: ".$distance.") on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); + $twitter_string = urlencode("Just worked ".$row->COL_CALL." "); + if ($row->COL_DXCC != 0) { + $twitter_string .= urlencode("in ".ucwords(strtolower(($row->COL_COUNTRY)))." "); + } + $twitter_string .= urlencode("(Gridsquare: ".$row->COL_GRIDSQUARE." / distance: ".$distance.") on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags); } ?>