Jump to content

EscalateSEO

Member
  • Posts

    21
  • Joined

  • Last visited

About EscalateSEO

EscalateSEO's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Not working on my end - here's the original code: if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions')->addChild('Sidebar', array( 'label' => 'Web Link', 'uri' => 'http://www.google.com', 'order' => '100' )); }
  2. When editing sidebars in v6, the code looks similar to this: ->getChild('Order New Services') ->setUri('http://www.google.com'); Is there a way to set the specified URL to open in a new tab?
  3. I'm using the template Six. This is the page I'm working with: http://example.com/clientarea.php?action=productdetails&id=3 Next to the "Visit Website" and "WHOIS Info" buttons, I'm trying to add a new button. Something similar to this: <a target="_blank" href="http://www.google.com">Google Site</a> When I add that into the code, the page isn't changing at all? When trying to edit anything in the TPL, I'm not seeing any changes... Any idea what's going on?
  4. I'm trying to track which files have been downloaded by which users. I'm using this action hook to track the downloads: http://docs.whmcs.com/Hooks:FileDownload Here's the code I have for my action hook: <?php add_hook("FileDownload",0,"track_FileDownload",""); function track_FileDownload($vars) { logactivity("File Downloaded"); } ?> Right now it's displaying this in my activity log: File Downloaded But what I would like is for the log to also display the title of the file that was downloaded, like this: File Downloaded - Name Of File Does anyone know how to do this or if it's possible?
  5. I'm trying to connect to the database to retrieve information from a specific MySQL table. My code is in a .tpl file that's associated with the Smarty template system. Here's a copy of my code: {php} $result = mysql_query("SELECT * FROM tbldownloads"); while($row = mysql_fetch_assoc($result)) { $customdata[] = $row; } $ca->assign('customdata', $customdata); {/php} <section> <table id="downloads" class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead><tr><th>Name</th><th style="text-align:center;">Developer</th><th style="text-align:center;">Version</th><th style="text-align:center;">Download</th></tr></thead> <tfoot><tr><th>Name</th><th style="text-align:center;">Developer</th><th style="text-align:center;">Version</th><th style="text-align:center;">Download</th></tr></tfoot> <tbody> {foreach from=$customdata item=customdata} <tr> <td>{$customdata.title}</td> <td style="text-align:center;">{$customdata.downloads}</td> <td style="text-align:center;">{$customdata.description}</td> <td style="text-align:center;"><a href="dl.php?type=d&id={$customdata.id}" class="btn btn-primary">DOWNLOAD</a></td> </tr> {/foreach} </tbody> </table> </section> This is the error I'm getting: Fatal error: Call to a member function assign() on a non-object in /home/lximcvez/templates_c/%%B2^B21^B2190A74%%access.tpl.php on line 62 Line 62 of the outputted PHP file contains this: $ca->assign('customdata', $customdata); I'm not really sure why I'd be getting this error or what I need to change Any help would be appreciated.
  6. Here's what I currently have: <?php function hook_api_suspend($vars) { $table = "apis_user_profiles"; $update = array("status"=>"0"); $where = array('user_id'=>"342330"); update_query($table,$update,$where); } add_hook('AfterModuleSuspend', 1, 'hook_api_suspend'); ?> On this line you can see that I have hardcoded a user_id: $where = array('user_id'=>"342330"); What do I need to change this line to for it to use whatever the current user's ID number is?
  7. excellentuptime.com seems to be down... where can we download the most recent version of this? And does it work for the most recent version of WHMCS?
  8. Where is the payment button code located at in WHMCS?
  9. I've been working all day to figure out how to display the pending commissions for affiliates in the clientareahome.tpl file. Since that file doesn't have the $pendingcommissions smarty variable, I've found it extremely difficult to do this. I managed to get the withdrawn amounts and available balance to show on the page but can't seem to do it with pending commissions. Has anyone figured out how to do this?
  10. I'm looking for a way to do exactly this as well. Has anyone found a solution?
  11. I'm trying to find a way to hide my top navigation bar from any customers who don't have at least one active service, does anyone know how to do that? I would think that it's as easy as putting it in an if statement but can't seem to figure it out. Thanks in advance!
  12. I need to make it so that on one of my pages it only shows information to a customer if their domain is active in the system. Should be a simple php statement like if domain.com is active then show a certain message or else show another if the specific domain in the script isn't active. If someone could post the same code for that it would be much appreciated. Thanks for your time!
  13. Does anyone know if there is a quick way to backup all settings in WHMCS and easily import them into a new WHMCS? We setup WHMCS for a lot of clients each day and are just looking for a quick way to mass import settings such as General Setting, Automation Settings, Support Departments, Knowledgebase Cats/Articles, Products, etc. Thanks in advance for any suggestions!
  14. When new customers go to order a hosting plan they are forced to fill out the registration form. I know how to remove certain fields from the form, but how do I disable them so that they aren't required during registration? If I just remove them from view then the system considers them blank and doesn't allow customers to proceed. I only want the name, email, and password fields to be required. How can I fix this? Thanks in advance!
  15. I have certain links in my header.tpl that I am trying to hide. This is the code I am using for one: {if $services.product eq 'Linked Product' && $services.status eq 'Active'}<li><a href="link.php" title="Link">Linked Product</a></li>{else}{/if} And Linked Product is the name of the product people need to have in order to see it. It would be greatly appreciated if someone could tell me what I'm doing wrong.
×
×
  • 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