Jump to content
brian!

v8.0.1 Admin Info Stats Bar

Recommended Posts

in which file do we write these commands? Can you tell me exactly how to do the process, I guess we're doing it wrong. I could not see the subject exactly, but I read it completely. I edited homepage.tpl, admin page turns out blank.

Share this post


Link to post
Share on other sites
4 minutes ago, akarweb said:

in which file do we write these commands? Can you tell me exactly how to do the process, I guess we're doing it wrong. I could not see the subject exactly, but I read it completely. I edited homepage.tpl, admin page turns out blank.

it's an action hook - therefore, you just need to create a .php file in /includes/hooks, paste the code from the latest version into it and save...

there is no need to add any code to the homepage.tpl template - the hook does all the work. 🙂

Share this post


Link to post
Share on other sites


We will save the code you provided as a hook file php. So is the name of this file important? Do we need to do anything else after writing the code in php and saving it. How do we run the hook?

Share this post


Link to post
Share on other sites
2 minutes ago, akarweb said:

So is the name of this file important?

don't put any spaces in - just jeep it simple and memorable so you know what it does.

3 minutes ago, akarweb said:

Do we need to do anything else after writing the code in php and saving it.

no.

3 minutes ago, akarweb said:

How do we run the hook?

it runs automatically by itself.

1 minute ago, akarweb said:

Thanks i made it. It works 🙂

that's good to hear! 🙂

Share this post


Link to post
Share on other sites

Hi Brian 

I know that you can not complain about a gift you get.... however the number of the ticket(s) Awaiting Reply is off.  for example I have a number of 74 ticket while I see only 7.  

Have you seen that before?

Best Regards,

 

--Giora

Share this post


Link to post
Share on other sites

Hi Giora,

4 hours ago, giora said:

I know that you can not complain about a gift you get.... however the number of the ticket(s) Awaiting Reply is off.  for example I have a number of 74 ticket while I see only 7.  

Have you seen that before?

there was an issue where deleted merged tickets were being included in the count - but that issue should have been fixed in the most recent version I posted...

sadly, I can't edit the code in the first post (I wouldn't be able to even if I had chosen to keep the meaningless Gearhead rank), so at some point, i'll move the code to an external site like GitHub where it will be easier to manage and update.

if using the above linked version doesn't solve the issue, please let me know. 🙂

Share this post


Link to post
Share on other sites

This ticket got a bit confusing, can someone please share the latest working hook for WHMCS 8.0.4?

Share this post


Link to post
Share on other sites
2 minutes ago, m107 said:

This ticket got a bit confusing, can someone please share the latest working hook for WHMCS 8.0.4?

just use the last version that I posted in the thread...

Share this post


Link to post
Share on other sites
50 minutes ago, m107 said:

Anyway to fix this problem?

you mean the counts seeming to be wrong ? what's the awaiting reply count in the sidebar ?

also, did you remove the date from the output of the info bar ??

Share this post


Link to post
Share on other sites
14 minutes ago, brian! said:

you mean the counts seeming to be wrong ? what's the awaiting reply count in the sidebar ?

Yes, showing correctly:

 232c4cd5e0.png

 

14 minutes ago, brian! said:

Also, did you remove the date from the output of the info bar ??

No, I used the code you mentioned.

 

Share this post


Link to post
Share on other sites
19 hours ago, m107 said:

Yes, showing correctly:

AFAIK, the hook is using the same count method as WHMCS, e.g for pending orders, it's checking the Order Statuses database table, finding the statuses that are defined to be included in the "Pending" counts and then running a count on those orders that match.

jcZWb8J.png

modifying that column values will result in the counts being updated in the info bar - the values shown by WHMCS in the sidebar and the info bar should match, so there is something weird going on with your install.

similarly for Ticket Statuses, it's finding the statuses that are included in the "Awaiting Reply" counts and then running a count on those tickets that match...

HcopqlQ.png

there was an issue with deleted merged tickets being counted in the original post, but that should have been resolved in the version that you're using.

19 hours ago, m107 said:

No, I used the code you mentioned.

then the output should include the date... 😕

FdsWJxd.png

Share this post


Link to post
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