• Resolved wpress2010

    (@wpress2010)


    I know it was mentioned that there is a simple way for an employee to log on to a DT timesheet with a mobile shortcut (i.e., an icon, like all other phone apps). Does anyone know how to set this up?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author rerm

    (@rermis)

    Hi there,

    To create a shortcut on a mobile device’s home screen that makes a URL appear like an app, you can use the “Add to Home Screen” functionality provided by mobile browsers.

    For iPhone (Safari):

    1. Have the employee visit the published Dynamic Time URL in the Safari browser.
    2. Tap the Share icon at the bottom (a square with an upward arrow).
    3. Scroll down the options and select Add to Home Screen.
    4. Customize the name (if needed) for the shortcut that will appear on the home screen.
    5. Tap Add in the top-right corner.
    6. The shortcut will now appear on the mobile device with the app-like icon and name you configured.

    For Android (Chrome):

    1. Have the employee visit the published Dynamic Time URL in the Chrome browser.
    2. Tap the Menu (three vertical dots) in the top-right corner.
    3. Select Add to Home Screen.
    4. Enter a name for the shortcut (if needed).
    5. Tap Add. – Some devices may display a prompt to drag the icon into place; otherwise, it will automatically appear on the home screen.
    6. The shortcut will now behave like an app, opening the site in a standalone browser window.
    Thread Starter wpress2010

    (@wpress2010)

    Thanks for this. I am a bit confused about what exactly is the ?published?Dynamic Time URL. The site I am working on has no menu, no real home page, just individual DT timesheets, which when accessed in the backend, show URLs in the form of: https://mysite.com/wp-admin/admin.php?page=dynamic-time&dyt_view_user=f807c3c1f3&dyt_user=13 Obviously, there is a different user for each timesheet. When the user logs in, DT looks at the username and takes the visitor to his/her timesheet.

    Plugin Author rerm

    (@rermis)

    Hello,

    Please click on the “Setup” link in the upper right corner of the Dynamic Time admin page. This will show the instructions to create a shortcode on the front end for the employees. From there, the employees can create the shortcut on their devices.

    If you run into any issues, just let me know. Thank you!

    Thread Starter wpress2010

    (@wpress2010)

    Hmm. What I see there is this: (using PRO version)

    ??Customize your organization’s setup in?Settings.

    ??Open a timesheet (employee usernames here)?Press save. Users must save a time period to appear in?Entries.

    ??Refresh??to see your new entry.

    ??Privileges are automatic??Only WordPress admins see all employees.

    ??Employee-access shortcode??[dynamicTime max_width=true]

    ??On mobile, employees can click the browser Share icon and select ‘Add to Home Screen’ so it appears just like an app on the device.

    I still don’t see it. What should the shortcode look like? I.e., mysite.com/?????

    Plugin Author rerm

    (@rermis)

    You’ll want to publish the Employee-access shortcode. It is [dynamicTime], but you can customize the max_width parameter if you choose. In the setup module, hover over the shortcode to view more instructions, and click to copy it.

    To add a shortcode, you’ll want to head over to any new page or post by selecting Pages (or Posts) > Add New. From there, choose the + sign to add a block, then search for the “shortcode” block. Then, enter the shortcode [dynamicTime] in the field and click Publish.

    Thread Starter wpress2010

    (@wpress2010)

    Each employee doesn’t really have any pages – just a timesheet. If I go to a timesheet, the URL shows as:

    https://mysite.com/wp-admin/admin.php?page=dynamic-time&dyt_view_user=fb6fe45d15&dyt_user=5#!

    Plugin Author rerm

    (@rermis)

    You’ll want to follow the instructions to use the shortcode in circumstances where you want employees to see their timesheet when they visit a page on your site. For example: yoursite.com/time With the shortcode the URL is the same for everyone.

    If the [dynamicTime] shortcode is published on a page, the employees will see their timecard when they are logged in. They will no longer have to visit the WP Admin area.

    Thread Starter wpress2010

    (@wpress2010)

    Ah, so if I put the shortcode on a page, the URL then looks like: https://mysite.com/username/

    Plugin Author rerm

    (@rermis)

    Almost, it can be any page on your site. And the URL will be the same without any username specified in the URL. For example: yoursite.com/time

    When the employee visits the new page, if they are not yet logged in, it will prompt them to log in before displaying their timecard.

    Thread Starter wpress2010

    (@wpress2010)

    I’ve got it now, many thanks!

    Plugin Author rerm

    (@rermis)

    You’re very welcome. Please reach out if you encounter any future issues.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.