Jump to content


Regular Collector
  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About cybershubham

  • Rank
    Junior Member
  1. Email history is already visible to clients by default. Above code just brings it as a homepage panel.
  2. I tried the below code, but unfortunately, it doesn't work. Can you please point out what's wrong: Thank you in advance! @brian! <?php use WHMCS\View\Menu\Item; use Illuminate\Database\Capsule\Manager as Capsule; function hook_clientemails($vars) { $client = Menu::context('client'); $output = ""; $emails = Capsule::table('tblemails') ->where('userid', $client->id) ->get(); foreach ($emails as $email) { $output .= '<tr onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '650', '450')"> <td class="text-center"><span class="hidden">{$email.normalisedDate}</span>{$email.date}</td> <td>{$email.subject}</td> <td class="text-center"><input type="button" class="btn btn-primary btn-sm" value="View" onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '650', '450')" /></td> </tr>'; } return array("clientemails" => $output); } add_hook("ClientAreaHomepagePanels", 1, "hook_clientemails") { $homePagePanels->addChild('clientemails', array( 'label' => 'Email History', 'icon' => 'fa-envelope', 'order' => 20, 'extras' => array( 'color' => 'gold', 'btn-link' => '/cart/clientarea.php?action=emails', 'btn-text' => 'View All', 'btn-icon' => 'fa-arrow-right', ), 'bodyHtml' => $output, )); } ?>
  3. Sometimes, some important emails are missed by the customer or they land in spam. I was looking for a module to show received emails to the client in client area like a widget below the support ticket widget. I found this feature on OVH and have also seen in few more sites. I am posting a screenshot for reference. If you're aware of any such existing module, please let me know.
  4. This is resolved! It was due to a htaccess file in the parent directory created by a wordpress plugin called All in one WP security. temporarily removing the htaccess before update, resolved the isssue.
  5. While I was trying to update it, the auto-updater failed with some fatal error, and put my WHMCS into maintenance mode. The admin page started to redirect me on /install/install.php So, install.php returned 403 Forbidden Error. I checked permissions/users/groups etc everything looked good. So I downloaded fresh files of v7.6 and tried to manually update it. Again the /install folder was inaccessible. While the permissions and everything was good. So, I checked the apache logs. Here's what I found [Fri Aug 03 14:45:57.164264 2018] [core:crit] [pid 2947:tid 140258020665088] (13)Permission denied: [client 182.xx.xxx.xxx:44456] AH00529: /srv/users/serverpilot/apps/hmcsite/public/cart/install/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/srv/users/serverpilot/apps/hmcsite/public/cart/install' is executable I checked each and every permissions, everything seemed fine. But the /install directory is giving 403 forbidden error, no matter what I do. Any solutions for this?
  6. Welcome to WHMCS.Community cybershubham! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated