Hook of the Timesheets module

Posted on 2025-07-04 Updated on 2025-07-04

Guide: Hook of the Timesheets module

Welcome to the user guide for the Hook of the Timesheets module in Marketpulse OS CRM. This document provides a detailed, step-by-step tutorial on effectively using this module.

Hook of the Timesheets module

1. Find"application/views/admin/includes/header.php”

- This hook toshow the Check-in/Checkout Icon on the Header menu when using a Mobile device

- Line93 add new Code like the picture

Code:

<?php hooks ()->do_action ('admin_navbar_start'); ?>

- Line114 add new code

Code:

<?php hooks ()->do_action ('admin_navbar_end'); ?>

- Image:

2. Update dateconfig for call API

- Find“application/config/config.php”

- Line488 update code like below

- Code

$config['csrf_exclude_uris'] = ['forms/wtl/[0-9a-z]+', 'forms/ticket', 'forms/quote/[0-9a-z]+', 'admin/tasks/timer_tracking', 'api/.+', 'timesheets/api/.+'];

- Image

3. Change file Session_driver.php

Findfile “system/libraries/Session/Session_driver.php”

if your server uses PHP8.1 or later, you need to change below (because this function is not compatible with PHP 8.1 and above)

Change NULL to ‘’ ( like the image)

After Changed

Before Change

Found this article helpful?

[ 0 Out of 0 Found Helpful ]

Still no luck? we can help!

Submit a ticket and we’ll get back to you as soon as possible.

Support Chat Available
Account login is required to start, please login to your account to proceed.