Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About harry1

  • Rank
    Junior Member
  1. Yea, sure you can. Take the relevant code parts from clientregister.tpl and then add the relevant parts to your login page. It's all just styling. They're charging money as it does take time. Nothing is free! 🙂
  2. Agreed with above replies. This is a very silly "feature". We have a lot of customers who are part of a distribution group and then reply from their personal emails (which are then not imported). As well as the case insensitive issue (example@example.com vs Example@example.com) Hope to see a quick resolution.
  3. Use the PHP floor function https://www.php.net/manual/en/function.floor.php
  4. Create a template page instead of building a page through your module 🙂 custompage.php and then a template.tpl page which will contain your code.
  5. Ahh it was so simple! Just overlooking it for so long. I meant to include, not file_get_contents... silly mistake 🙂
  6. I think my question is confusing - I'll try make a clearer explanation. I'm making an Addon Module and the core use of it is in the admin output function. function addontest_output() { echo file_get_contents(__DIR__ . '/data.php'); } I then have data.php. I'm trying to use PHP from within this data.php with no success. However, the first line works as if I browse the file directly, I get the "This file cannot be accessed directly" error. No PHP used in the data.php works, except for the first if statement. <?php $test = "Test"; if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } ?> <html> <head> </head> <body> <p>Testing</p> <?php print "Test"; echo $test; ?> </body> </html> Hopefully this is more clear? Cheers
  7. Sorry, in particular, what I'm trying to achieve is to get a parameter from the URL $var = $_GET['var'];
  8. Hi all Hoping for some guidance as to what I am doing wrong. In my _output I've got: echo file_get_contents(__DIR__ . '/data.php'); Then in that data.php, HTML + JS works perfectly however if I try do PHP from within the data.php it doesn't appear. <?php if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } $clientImport = "test"; print "test"; ?> <html> <head> </head> Domain: <input type="text" id="domain"><br><br> <?echo $clientImport; print "test";?> <body> The HTML input box for domain is working, however none of the PHP print outs are working. Interestingly, though, the first if statement works as it doesn't allow me to browse that data.php file directly. It results in the die error, so working as intended. Hoping someone can clarify what I'm doing wrong? Thanks.
  9. Thank you Brian. Appreciate the help mate.
  10. Hi guys, Two question's here. I'm trying to display Client Credit on the Client Area Homepage: if (!is_null($primarySidebar->getChild('Client Details'))) { $primarySidebar->getChild('Client Details') ->addChild('Current Credit') ->setLabel('Credit: $' .$currentCredit) ->setOrder(100); } This works fine, however. I'd ideally like to do this: ->setLabel('<font color="green">Credit: $' .$currentCredit) And also style the $currentCredit variable. Any suggestions as to how to do this? Also, I'm trying to use ->setIcon('') however the icon is being displayed at the end of the text (on the right) instead of at the start (on the left). Any suggestions are greatly appreciated! Cheers Harry
  11. Welcome to WHMCS.Community harry1! 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