Jump to content

poppabear

Member
  • Posts

    37
  • Joined

  • Last visited

About poppabear

poppabear's Achievements

Member

Member (2/3)

0

Reputation

  1. oh, wow here is page 2 I think i am going to try this out myself
  2. $8 - $12 per hour ? If not, you may want to up your offer as there is a bit to edit to get what you want on all template pages. Can you show us the URL to your main site to give an idea what will need to be integrated ? I'm willing to do some work for you, however i need to know what i am working with to give an accurate quote.
  3. I agree, Its not good practice to use iframes. Another thing, The links appear to be to dark, hurts my eyes trying to focus. I would make them a lighter blue or even white. Otherwise not bad ...
  4. Thanks for the replies. Anyone else have any feedback so i can better the users experience with my integration ?
  5. I see this post is a bit old, however i would like to say if you are using a control panel like Directadmin/cpanel/whm whatever it may be and setup a "emailuser" on the control panel side, then have the "emailuser" account only have unlimited email accounts ... then use some api in the actionhooks.php to create the pop3 email account via "emailuser" with the domain you have tied with "emailuser" then that would work. I use this same method with Directadmin, it works very nicely. If you may need some help getting this going, please notify me via PM.
  6. you can very easily create your own module to work inside of whmcs ... if you know a bit of php. If not, i would consider hiring a professional. Good luck.
  7. I have fixed my problem ... i used ereg() instead of strpos() That was the only thing wrong, everything appears to be working great now. Thanks to those that atleast *thought* about replying
  8. Ok, so where do i start ? Lets see, i am trying to run some code after an invoice is marked "PAID" ... Using the actionhook_InvoicePaid($vars) function in actionhooks.php First a little information: 1. I have a few products that require custom automation. 2. I use Directadmin as my control panel 3. WHMCS Version: 3.8.1 Basically i want to be able to grab the product description of the current invoice and be able to use that to determine which code to process. If you know anything about php you will understand exactly what i am trying to do with the code provided below: function actionhook_InvoicePaid($vars) { # This function runs when an invoice is fully paid and therefore the services renewed include('includes/httpsocket.php'); // SET INVOICE ID # $invid = $vars["InvoiceID"]; // GET CLIENTID $qclientid = mysql_query("SELECT userid FROM tblinvoices WHERE id = $invid"); $rclientid = mysql_fetch_row($qclientid); $clientid = $rclientid[0]; // GET PRODUCT DESCRIPTION $qproduct = mysql_query("SELECT description FROM tblinvoiceitems WHERE invoiceid = $invid"); $rproduct = mysql_fetch_row($qproduct); $product = $rproduct[0]; echo $product; #### START AUTOMATION FOR EMAIL HOSTING #### // CHECKS FOR EMAIL PRODUCT if(strpos($product, "Email 1") === true) { $uname = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE fieldid = 1 and relid = $clientid"); $pass = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE fieldid = 4 and relid = $clientid"); $user = mysql_fetch_row($uname); $passwd = mysql_fetch_row($pass); $domain = "email.DOMAIN.com"; $quota = "10000"; $sock = new HTTPSocket; $sock->connect('IPADDRESS',2222); $sock->set_login("USERNAME","PASSWORD"); $sock->set_method('POST'); $sock->query('/CMD_API_POP', array( 'action' => 'create', 'domain' => $domain, 'user' => $user[0], 'passwd' => $passwd[0], 'quota' => $quota )); header('Location: cart.php?a=complete'); } #### END AUTOMATION FOR EMAIL HOSTING #### #### START AUTOMATION FOR MYSQL HOSTING #### // CHECKS FOR PRODUCT if(strpos($product, "MySql 1") === true) { $qdname = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE fieldid = 5 and relid = $clientid"); $qduser = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE fieldid = 6 and relid = $clientid"); $qdpass = mysql_query("SELECT value FROM tblcustomfieldsvalues WHERE fieldid = 7 and relid = $clientid"); $dname = mysql_fetch_row($qdname); $duser = mysql_fetch_row($qduser); $dpass =mysql_fetch_row($qdpass); $sock = new HTTPSocket; $sock->connect('IPADDRESS',2222); $sock->set_login("USERNAME","PASSWORD"); $sock->set_method('POST'); $sock->query('/CMD_API_DATABASES', array( 'action' => 'create', 'name' => $dname[0], 'user' => $duser[0], 'passwd' => $dpass[0], 'passwd2' => $dpass[0] )); header('Location: cart.php?a=complete'); } #### END AUTOMATION FOR MYSQL HOSTING #### #### START AUTOMATION FOR VIP MEMBERS #### if(strpos($product, "VIP") === true) { $qstatus = mysql_query("SELECT status FROM tblclients WHERE id = $clientid"); $rstatus = mysql_fetch_row($qstatus); $status = $rstatus[0]; if($status == "Active") { mysql_query("UPDATE tblcustomfieldsvalues SET value = 'true' WHERE fieldid = 8 and relid = $clientid"); } } #### END AUTOMATION FOR VIP MEMBERS #### } Note: I edited private information from the code ... its not needed for this post. I have tested the Email 1 & MySql 1 code through the actionhook_ShoppingCartCheckout($vars) function so the automatation part works fine ... i think is how my $products are being read through the if statements or something .. i am not to sure. Also, While testing this i am useing a coupon code for 100% off the product/services for testing purposes. This marks the invoice "PAID" .. which i assume would fire the action hook (i could be wrong). Conclusion: Am i pulling my product information wrong ? Am i testing this the wrong way? Do you see something in my code that is broken ? I am getting nothing ... no errors, no echo's, no updates in the Database, Directadmin API is not running its portion of the code. It seems if the code is not even being executed at all ... BTW: error_reporting(E_ALL); AND: a simple echo $product; never shows up anywhere on the screen during the entire ordering process. I hope i provided enough information for someone to assist me in this .. i have a lot to contribute to this community as i am developing some nice modules/add-ons/integration/customizations to WHMCS. Thanks in advance
  9. Thanks for that. I don't use safari so i was developing around FF & IE standards. I will adjust the wrapper width. Yes, i am aware of this as i am still in the developing stages ... pages are still being created throughout the site.
  10. Made some major changes to the way my integration looks. I decided to take a control panel look & feel. Looking for feedback. WHMCS: http://billing.servnx.com/ Main Site: http://servnx.com The ordering page i would like to see examples from others to get an idea of what could be done (not to jock someone ofcourse) Please give me any idea's to make this better: http://billing.servnx.com/cart.php Thanks in advance. I have seen many of the integrations from others, they look very nice. Kepp up the good work. Thanks
  11. I know this thread is old, however i would like to share my input. The code used above will not work as expected as the function file_get_contents(); is meant to read the contents of said file. It will always return true if the file exists. The function will return the entire php source of the file and at that point you would be required to parse the data with string manipulation. If using an include() or require() the script will fail because of the session was already started and will not pass the data to the other domain. I have not found a solution to this as of yet, however i will make sure i include the findings when i do. I will find a workaround, just have to make sure it will be secure.
  12. Nice work! I think that you have really made it your own, hard to tell that it is whmcs (which is always good).
  13. 1. The website is still under development is why the links on the drop down menu links doesn't work. 2. The mouse cursor changes to the finger on IE but can't figure out how to get it to work in FF. 3. The "Call us toll free" is just a place holder (hence the 555-5555#) 4. I had a server added, just didn't have the script loaded, but that is fixed now. Thanks for the feedback, also made some major changes in the client area since you had visited. If you wish to take another look, please do so. Also for a demo of the client area demo@demo.com/demo ..... just added a client to the system for demo/development reasons. Thanks again
×
×
  • 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