Jump to content

Member Created Date


FatihYldrm

Recommended Posts

Hi friends want to put the date that the customer panel is the registration of the members.If you have the code of the variable, please tell me or cheer if you can help.

if you mean that you want to add it to a sidebar or homepage panel - you will need to use an action hook, written using PHP, and basically have two options.

 

1. Use the Class Documentation - http://docs.whmcs.com/classes/7.0/WHMCS/User/Client.html

2. Query the tblclients database.

 

either method will give you the signup date - then it's just a case of using the correct hook, depending on if it's a sidebar or homepagepanel, to output the value. :idea:

 

ps - don't double post... it won't get your question answered any quicker!

Link to comment
Share on other sites

the fact that you're using a custom theme complicates matters because I can't tell if that's a homepagepanel or sidebar... I don't think it's either, so you'd be looking to use the ClientAreaPage hook.

 

inside the hook, you will get the information you need - by either above method - it will create a Smarty variable which you can then output in your template.

Link to comment
Share on other sites

if you wanted an action hook to create the variable you're looking for, then you would create a .php file in /includes/hooks (call it signupdate.php) and paste the code below into it...

 

<?php

use Illuminate\Database\Capsule\Manager as Capsule;

function hook_signup_date($vars){

   $client = Menu::context('client');

   return array("signup" => $client->dateCreated);
}
add_hook("ClientAreaPage", 1, "hook_signup_date");

and then in your template, you just add {$signup} wherever you want to output the signup date. :idea:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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