Jump to content

Michael F

Member
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Michael F

  1. I know there are a couple of threads discussed this issue before but this one is slightly different. I'm using Google Apps. I had a problem with piped replies as it was quoting the message history but fortunately this thread solved the problem. However, Gmail quotes the date and time on replies. So for example, when a client opens a ticket and I reply, then he reply back from his email, the imported (piped) reply will look like the following in the ticket system: WHMCS actually stripped the original message history but didn't strip the timestamp. I found no way to solve this. I Added many breaklines in the tblticketbreaklines table and the email template as well, I tried various combinations but non of them has stripped the date and time that Gmail quote in every reply. I couldn't find a preference in Gmail that turn off that timestamp too. Here are two sample screenshots that might describe better: 1) From Gmail Inbox: 2) From WHMCS Ticketing View: I'd greatly appreciate it if someone could share a solution to this issue. Thank you.
  2. That's my bad Works like charm now Thank you so much for your time and help
  3. Thank you for the answer, it is greatly appreciated I'm trying to append the affiliate ID to URL. I modified my code to contain what you've mentioned but I couldn't make it work. <?php /* * Smarty plugin * ------------------------------------------------------------- * File: function.* * Type: function * Name: aff * Purpose: outputs a random magic answer * ------------------------------------------------------------- */ function smarty_function_aff($params, &$smarty) { $affiliateid = $params['affiliateid']; $refflink = 'http://example.com/*?aff=' . $affiliateid .''; print $refflink; } ?> Still the $affiliateid doesn't seem to work as if it is not even exists. It prints only the first part of the URL without the affiliate ID, like this: http://example.com/*?aff= What I'm missing here?
  4. To be honest, I don't have much experience in PHP, so I don't know actually. It's pretty much like the function code I added in my previous reply but with replacing the core code. I need to call that function in the affiliates.tpl file like that {aff}. I'm wondering why is the function not able to read the $affiliateid variable. I'd greatly appreciate it if you could shed some light on this. Thanks
  5. Update: A sample code of what I'm trying to achieve: <?php /* * Smarty plugin * ------------------------------------------------------------- * File: function.* * Type: function * Name: aff * Purpose: outputs a random magic answer * ------------------------------------------------------------- */ function smarty_function_aff($params, &$smarty) { //none of the following display the affiliate id when called in template. print $affiliateid; echo $affiliateid; } ?> And in the template I use {aff} that supposed to display the affiliate ID of the user, however it doesn't display anything, just a blank white area. So my guess is that the PHP function does not recognize the $affiliateid variable. I know I can use {$affiliateid} in the template itself to display the user affiliate ID but I have a different situation. The above code is just a sample. Any suggestions? Thank you in advance
  6. Greetings, I'm writing a custom PHP function in the Smarty plugins directory. The problem is that I need to use the $affiliateid variable but it seems that it does not work at all, and not recognized by the function. Does anyone have a clue on how to use or pass a Smarty variable in PHP? Thank you
  7. The promo applies to both domain and hosting which is working fine and fortunately product addons does not benefit from the promo however it is the domain addons that become discounted when promo applied. I'm talking about the addons you set pricing for on the domain pricing page, like ID protection, DNS management, email forwarding. I've tested a lot of things to workaround on this issue but nothing worked. It's a shame they haven't modified this till now.
  8. As the title says, I want to apply a promo on domain only when ordered with a specific product, it's fine till now but I surprised when I found that the promo applies to the domain's addons as well and I couldn't find a setting to restrict this. So, for example if I created a promo of 30% percent on .com and it requires a hosting plan, then during the order process if the user selected contact privacy which costs $5 regularly, the 30% discount also applies to it. Is there any way to apply the promo on domain only without its addons? Thank you.
  9. Hello, I'm looking for a way to automatically apply a promo code in cart when the user do a specific action. So I thought that could be done by setting a promo code cookie in browser but I'm not sure if WHMCS core system allow this or not. Does anyone know if it is possible to apply a promo code using a cookie instead of adding a URL parameter (&promocode=xxxxx) ? And how this can be achieved? Thank you in advance
×
×
  • 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