Jump to content

cdeese8

Senior Member
  • Content Count

    94
  • Joined

  • Last visited

Community Reputation

3 Neutral

About cdeese8

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I didn't know that by only adding a custom field into the panel output would require so many extra lines of codes. that's madness! jeeze that sounds intense. rebuilding the service home panel seems more complicated than copy pasting a file into a new folder. The existing panel is already just about perfect. Just have to make do. You know what, with my ignorance, I might just call it quits and end my search here. I'm not ready to burn up an entire supply of lamp oil. Not today, maybe in a week.
  2. Download everything locally to your PC. Next, use a program to "Find in Files" to reverse lookup. Try using keyword like "please contact the site" or "not been published". https://www.ghacks.net/2016/09/16/use-notepad-to-find-text-in-all-files-of-a-folder/
  3. I'm just not having much luck, frig! Thanks in advance for anything you can share with me to help! I'd like to display the value field from table tblcustomfieldsvalues in the Client Area Home Panel Active Products/Services on WHMCS 7.4.1 with stock template. I visit example.com/whmcs/configproducts.php?action=edit&id=40 and put {$cf46} (or even {$customfields.0.value}) in the "Product Name" field so clientarea dashboard home panel will display name and custom field data. If I goto example.com/clientarea.php?action=productdetails&id=999 I see that the data is being display because I put {debug} into the clientareaproductdetails.tpl file. Why am I not able to display custom field id #46 array data in the product name field? I thought I could tweak the hook from a previous post by brian too, but no good. <?php use Illuminate\Database\Capsule\Manager as Capsule; function display_custom_field_46($vars) { $client = Menu::context('client'); $cf46 = Capsule::table('tblcustomfieldsvalues') ->where('value', $client->id) // compare ->where('fieldid', $vars['fieldid']) ->get(); $encodedata = json_encode($cf46); $decodedata = json_decode($encodedata, true); return array("cf46" => $decodedata); } add_hook("ClientAreaPage", 1, "display_custom_field_46"); ?> p.s. - this post too, was not helpful either. i tried copy / paste into hook folder and use custom field #46 but it did not work when I pasted {$customFields[$service.id]} into Product Name field.
  4. Perhaps you are looking to configure cPanel templates. https://forums.cpanel.net/threads/default-new-account-page.44051/ https://stackoverflow.com/questions/5271749/change-default-page-in-cpanel What does the "coming soon landing page" look like? Screenshot please.
  5. That's odd, it definitely works. What happens when you click Test Connection button on the Setup > Products/Services > Servers screen? Brush over these help articles and make sure you did everything correctly. https://docs.whmcs.com/DirectAdmin https://help.whmcs.com/m/getting_started/l/1076211-creating-your-first-directadmin-server
  6. How do I display domain name for each child? It's the {$domains.domain} smarty variable I believe. I think I already had something similar that I was able to build off of.... but no results. *display UPTO 4 domains i don't think i have this working, i tried to test on client with 5 domains, but only 1 child is being loaded. perhaps the scrollbar like from your image is best, and display just 4. sort by domain name include "newduedate " into panel open link in new window I'm getting stuck on the $clientdomain AND .fromMySQLDate part of the hook, still don't know what they mean. Also, I don't think I'm loading the table data newduedate into this hook... <?php # Made with help of Honored Contributor brian! // https://whmcs.community/topic/292268-email-history-homepage-panel/ // https://forums.whmcs.com/showthread.php?127034-home-page-panel-add-array-title-and-target-to-href // https://developers.whmcs.com/hooks/hook-index/ // http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels // https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareahomepagepanels use Illuminate\Database\Capsule\Manager as Capsule; use WHMCS\View\Menu\Item; add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $client = Menu::context('client'); $clientdomain = Capsule::table('tbldomains')->where('userid', $client->id)->select('id','domain')->orderBy('domain','desc')->limit(4)->get(); if (count($clientdomain)) { $homePagePanels->addChild('Manage Domains', array( 'label' => 'Domains', // panel title name 'icon' => '', 'order' => 0, 'extras' => array( // panel title button 'color' => '', 'btn-link' => 'clientarea.php?action=domaindetails', 'btn-text' => Lang::trans('managedomain'), 'btn-icon' => '', ), )); // foreach ($clientdomain as $key => $child){ // $homePagePanels->getChild('Manage Domains') // ->addChild($child->domains)->setUri('clientarea.php?action=domaindetails&id='.$child->id)->setAttribute('target','_blank'); // } // uncomment above / below to "load domain newduedate" foreach ($clientemails as $key => $child){ $homePagePanels->getChild('Manage Domains') ->addChild($key)->setLabel('<span class="xyz">Domain: '.fromMySQLDate($child->newduedate,true,false).'</span>'.$child->domains)->setUri('clientarea.php?action=domaindetails&id='.$child->id)->setAttribute('target','_self'); } } });
  7. I'm onto you dude! It's like you are holding a fishing pole with some bait and I'm trying to eat that bait. hahahaha Alright, well if you are telling me you already wrote a home panel hook to display domains, than I just gotta dig into your post history replies, find the code and altercate it. Let's see what I can come up with and I'll report back here. I too, will determine what exact I want to output. talk to you soon! 😎
  8. Specifically in the Client Area as a client, not as admin. But you are right! it's like the feature is already available as an admin. but not as a client. <div class="pull-right"> <button type="submit" class="btn btn-primary pull-right" name="postreply" id="btnPostReply" value="true"> <i class="fa fa-reply"></i> {$_ADMINLANG.support.reply} </button> <div class="return-to-ticket-list"> <label class="checkbox-inline"> <input type="checkbox" name="returntolist" value="1"{if $returnToList == true} checked{/if} /> {$_ADMINLANG.support.returnToTicketList} </label> </div> </div> I imagine, the client would log into WHMCS and be able to "reply and close" ticket. Better yet, perhaps "reply close and redirect to clientarea.php". I noticed yesterday after brushing over forums you shared a hook that included a header redirect. That seems magical! May you please help me build a hook that would do this? Or advise on best way to get this desired result?
  9. How do I create a clientarea home panel that displays domains? It would be cool if I could just copy / paste table found on example.com/clientarea.php?action=domains ... OR something more simple that displays UPTO 10 domain name that each have a manage button to redirects user to the example.com/clientarea.php?action=domaindetails&id=999 page. I think it would be cool to save client a couple of clicks, but really just display everything on clientarea home panel. There is already a home panel that shows "Domains Expiring Soon" on clientarea home that redirects to the example.com/cart.php?gid=renewals page. I believe is getting data from cart template file domainrenewals.tpl. I brushed over the docs here https://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels and I also scoured over a bunch of community topics that involve hooks but nothing I tried last night worked. I only spent 90 minutes but still... dang! Before I went to bed last night, I started playing with hooks and I copy / pasted code scattered all over these forums but I kept getting broken website error like "oops, something isn't right" and deleted everything. https://www.google.com/search?ei=_i8qXtvgKqe-ggfn7Jpo&q=site%3Awhmcs.community+home+panel&oq=site%3Awhmcs.community+home+panel When I log into the database using Adminer, I see the table and data that I desire too. tbldomains > domains tbldomains > newduedate (which I think expire date)
  10. What does that even mean? "Add a profit"? You want to offer additional Affiliate Payout option for your affiliates who sell configurable options to people? Hmmm... that seems tricky because I know you can mark an invoice for affiliate credit on entire order but not specifically a configurable option. You might be better off trying to test things out using "addons" instead of "configurable options" https://docs.whmcs.com/Addons_and_Configurable_Options One more option would be to browse the web for WHMCS affiliate modules, maybe someone created something that can get you results. https://duckduckgo.com/?q=whmcs+affiliate+module+addon
  11. Perhaps doing a sitewide search for keywords can help. So a search query like "site:whmcs.community SSO OR single sign on example hook" might do the trick on DDG or Google. https://www.google.com/search?q=site%3Awhmcs.community+SSO+OR+single+sign+on+example+hook&oq=site%3Awhmcs.community+SSO+OR+single+sign+on+example+hook
  12. Is it possible to disable the antifraud? That might be an option.... I'm not able to help aside from that idea. Best of luck.
  13. Might you know how I can submit a reply to a ticket AND close ticket on same button click with WHMCS 7.4.1 using stock template? Are we going to be making changes in the supportticketsubmit-steptwo.tpl file? It would be cool to have another button, right next to the submit button, that will "submit and close ticket" in same click. It might even be cool to submit, close and redirect to client area too... Is this something that would be achieved with a hook? Thanks for response.
  14. Emails can be tricky, there is no such thing as vanish or black hole. Somewhere, somehow, an email was delivered, if it was delivered. Consider checking your primary email account, setup an auto-responder using that. So for example, if you are using cPanel hosted email account, log into that email and goto the Horde / Roundcube setting to create auto-responder. It's just as easy if you are using outlook, gmail or whatever too, usually... https://duckduckgo.com/?q=cpanel+auto+responder+email
×
×
  • 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