Jump to content

inyerface

Member
  • Posts

    52
  • Joined

  • Last visited

About inyerface

inyerface's Achievements

Member

Member (2/3)

0

Reputation

  1. I don't speak German or whatever language this is in... do you have an English version? I don't see a language selector on your website so have no idea what to purchase
  2. I created an action hook (almost) that will force clients to agree to new terms of service (on login) before being able to continue to client area. I created a new column under "tblclients" called "tosversion" (which is type "date" instead of a version number) and that gets updated no problem when the client logs in. The only problem is displaying a page or popup that displays the TOS before this field is updated. Sam as when there is an available update to WHMCS. the code: <?php $updateddate = "2016-02-16"; function hook_tos_clientlogin($vars) { /// CHANGE YOUR TOS VERSION $updatedtosversion="2016-02-16"; $clientid = $vars['userid']; if (!filter_var($clientid, FILTER_VALIDATE_INT)) { return; } $tbl="tblclients"; $fields = "tosversion"; $where = array("id"=>$clientid); $result = select_query($tbl,$fields,$where); $data = mysql_fetch_array($result); $ctosversion = $data['tosversion']; if ($ctosversion < $updatedtosversion) { //we don't match, do something. // make sure we update at the end of this $update = array("tosversion"=>"$updatedtosversion"); $where2 = array("id"=>"$clientid"); update_query($tbl,$update,$where2); } else { //just a courtesy else } } add_hook("ClientLogin",1,"hook_tos_clientlogin"); ?> Can someone write the rest, or quote me on a module to do this? Module interests me since we can set it so we can copy and paste the new TOS and when published, users are forced to agree to those new terms. Thanks
  3. I created an action hook (almost) that will force clients to agree to new terms of service (on login) before being able to continue to client area. I created a new column under "tblclients" called "tosversion" (which is type "date" instead of a version number) and that gets updated no problem when the client logs in. The only problem is displaying a page or popup that displays the TOS before this field is updated. the code: <?php $updateddate = "2016-02-16"; function hook_tos_clientlogin($vars) { /// CHANGE YOUR TOS VERSION $updatedtosversion="2016-02-16"; $clientid = $vars['userid']; if (!filter_var($clientid, FILTER_VALIDATE_INT)) { return; } $tbl="tblclients"; $fields = "tosversion"; $where = array("id"=>$clientid); $result = select_query($tbl,$fields,$where); $data = mysql_fetch_array($result); $ctosversion = $data['tosversion']; if ($ctosversion < $updatedtosversion) { //we don't match, do something. // make sure we update at the end of this $update = array("tosversion"=>"$updatedtosversion"); $where2 = array("id"=>"$clientid"); update_query($tbl,$update,$where2); } else { //just a courtesy else } } add_hook("ClientLogin",1,"hook_tos_clientlogin"); ?> What am I missing?
  4. How would we add this to the services page? I just want to add an extra <td> the already exisitng {foreach} service listed.
  5. Hey Sparky, this looks great. I didn't see it on your site though. Any plans for releasing it? I would definitely buy it. Thanks!
  6. I clear browser cache, history, etc, and this still happens. Anyone else experience this and have a fix?
  7. Very excellent!! Our entire network of servers was hacked and we couldn't figure out how that was done until we found shell files installed on WHMCS. It came right down to the root passwords being changed by hackers on our machines. First thing is to remove the shell or hacked files. Then we installed the security patch: http://forum.whmcs.com/showthread.php?p=206522 Then we looked at locking down WHMCS a bit more by restricting login to only certain IPs that way if the hacker got the information they need couldn't login anyway. We simply followed the steps in this document: http://docs.whmcs.com/Further_Security_Steps Then we locked down our servers and restricted shell access and root login to only our IPs. Thanks for the post this helped us a lot. We used to operated under a reactive model (when something goes wrong fix it) and as a result of recent hacks have put a team in place to proactively monitor suspicious activity and it's interesting the things we're coming across. BUT, we have not been hacked again since.
  8. YES!!! Absolutely and I would love to provide feedback. I would also love to purchase this project and get the word out about it!
  9. This doesn't work in Canada. All we need is an exra line that says Paid on XXX date". I mean it already says PAID just need a date stamp
  10. Imagine owning a retail store? You would need inventory, rental space, etc... $100 is nothing in the grand scheme of things and $100/YEAR??? Let's say you make $250,000/year - that is only 0.0004% of your annual revenue. I'd say that affordable pricing for aquiring or retaining clients.
  11. Well said. Choose to use it or choose not to.
  12. Nicely done!! May I ask what you use for screencasting?
  13. I agree. I've sent a few private notes to customers... but they were meant to be private
×
×
  • 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