From 9a9f029d05e67edc06bd198ab1105ca4331f0658 Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 12:50:07 -0400 Subject: [PATCH 1/6] Update GuidedTours.php nothing --- plugins/system/guidedtours/src/Extension/GuidedTours.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/system/guidedtours/src/Extension/GuidedTours.php b/plugins/system/guidedtours/src/Extension/GuidedTours.php index 4bcc765ad39fc..cd6ba69f0720e 100644 --- a/plugins/system/guidedtours/src/Extension/GuidedTours.php +++ b/plugins/system/guidedtours/src/Extension/GuidedTours.php @@ -259,6 +259,9 @@ private function processTour($item) // Replace 'images/' to '../images/' when using an image from /images in backend. $temp->description = preg_replace('*src\=\"(?!administrator\/)images/*', 'src="../images/', $temp->description); + if ($tour->autostart) { + // tada + } $tour->steps[] = $temp; foreach ($steps as $i => $step) { From 9daa53b3911861195f9e5cdb7196566c0556c1d9 Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 16:26:48 -0400 Subject: [PATCH 2/6] Update edit.php Added auto start option --- administrator/components/com_guidedtours/tmpl/tour/edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/administrator/components/com_guidedtours/tmpl/tour/edit.php b/administrator/components/com_guidedtours/tmpl/tour/edit.php index e115cab0af1ee..5bef1f3549f89 100644 --- a/administrator/components/com_guidedtours/tmpl/tour/edit.php +++ b/administrator/components/com_guidedtours/tmpl/tour/edit.php @@ -73,6 +73,7 @@ 'access', 'language', 'extensions', + 'autostart', 'note', ]; From 4d706d945617ca353734841bc39f2a794a719cf0 Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 16:27:57 -0400 Subject: [PATCH 3/6] Update tour.xml Added autostart parameter --- .../components/com_guidedtours/forms/tour.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/administrator/components/com_guidedtours/forms/tour.xml b/administrator/components/com_guidedtours/forms/tour.xml index dcb10e4aa949c..2dc73acae6d09 100644 --- a/administrator/components/com_guidedtours/forms/tour.xml +++ b/administrator/components/com_guidedtours/forms/tour.xml @@ -160,4 +160,16 @@ > + + + + + From 40efd5a5e30aa6bcb215e65a7de97d7c70b254aa Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 16:29:46 -0400 Subject: [PATCH 4/6] Update com_guidedtours.ini Added autostart label translation --- administrator/language/en-GB/com_guidedtours.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/administrator/language/en-GB/com_guidedtours.ini b/administrator/language/en-GB/com_guidedtours.ini index f7e1789ed2171..e45fbb95000c9 100644 --- a/administrator/language/en-GB/com_guidedtours.ini +++ b/administrator/language/en-GB/com_guidedtours.ini @@ -4,6 +4,8 @@ ; Note : All ini files need to be saved as UTF-8 COM_GUIDEDTOURS="Guided Tours" +COM_GUIDEDTOURS_AUTOSTART_DESC="Start the tour automatically when a user reaches the context in which the tour should be displayed." +COM_GUIDEDTOURS_AUTOSTART_LABEL="Auto Start" COM_GUIDEDTOURS_CONFIGURATION="Guided Tours: Options" COM_GUIDEDTOURS_DESCRIPTION="Description" COM_GUIDEDTOURS_DESCRIPTION_TRANSLATION="Description (%s)" From 8ae093689ee3245c255f2b2853000de48184d883 Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 16:52:17 -0400 Subject: [PATCH 5/6] Update GuidedTours.php Revert test code --- plugins/system/guidedtours/src/Extension/GuidedTours.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/system/guidedtours/src/Extension/GuidedTours.php b/plugins/system/guidedtours/src/Extension/GuidedTours.php index cd6ba69f0720e..4bcc765ad39fc 100644 --- a/plugins/system/guidedtours/src/Extension/GuidedTours.php +++ b/plugins/system/guidedtours/src/Extension/GuidedTours.php @@ -259,9 +259,6 @@ private function processTour($item) // Replace 'images/' to '../images/' when using an image from /images in backend. $temp->description = preg_replace('*src\=\"(?!administrator\/)images/*', 'src="../images/', $temp->description); - if ($tour->autostart) { - // tada - } $tour->steps[] = $temp; foreach ($steps as $i => $step) { From 535cd9aa1168ccbe8463d63436d346544b836ccb Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 21 Jun 2024 17:10:21 -0400 Subject: [PATCH 6/6] Update administrator/components/com_guidedtours/forms/tour.xml Reorganise attributes of the field Co-authored-by: Brian Teeman --- administrator/components/com_guidedtours/forms/tour.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_guidedtours/forms/tour.xml b/administrator/components/com_guidedtours/forms/tour.xml index 2dc73acae6d09..5ace45df4fad2 100644 --- a/administrator/components/com_guidedtours/forms/tour.xml +++ b/administrator/components/com_guidedtours/forms/tour.xml @@ -164,9 +164,9 @@