Jump to content
Web Host Pro

Adding an affiliate hook under the account menu?

Recommended Posts

Hi,

I am trying to add a link tot he affiliate login page under the account menu section. Just like the log in hook for the main section. I would like it to be under the:

login

register

lost password

(Affiliate Login)

Thanks for any help. I've checked the TMSecondaryNavbar.php file but can't see what to add.

I tried to add this: 

$primaryNavbar->getChild('Company')
                    ->addChild('Affiliate Login', array(
                    'uri' => 'affiliates.php',
                    'order' => '20',
                ));

But it crashed the whole site.

Thank you,
Charles

Share this post


Link to post
Share on other sites

Hi Charles,

this sounds familiar...

did you try contacting @ThemeMetro about this - either the hook I posted in the thread would work, or it's being superseded by TMSecondaryNavbar.php - and if that's encrypted, you may need their help to change it.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By servetas
      Hello All,
      I am trying to following part of code within the viewinvoice page but the paymentbutton is not updated. Is the smarty->assign option still supported?
      <?php function custom($vars) { global $smarty; if ($vars['filename'] == 'viewinvoice' && $vars['status'] == 'Unpaid') { $smarty->assign('paymentbutton', "BG"); } } add_hook('ClientAreaPage', 1, 'custom'); ?> The hook seems to run but the paymentbutton is not updated. Does anyone have the same issue? How can we update the paymentbutton?
    • By Charles Bradbeer
      Hello,
      I have built a hook to show a new navbar, but I want it to hide to not logged in members. Is this possible?
      Thank you
       
      My hook im using:
      <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar)    {    $primaryNavbar->addChild('Tools')                ->setOrder(50);    $primaryNavbar->getChild('Tools')                ->addChild('Html Tester')                ->setUri('/html.php')                ->setOrder(1);    $primaryNavbar->getChild('Tools')                            ->addChild('Privacy Policy Generator')                ->setUri('/privacypolicygenerator.php')                ->setOrder(2);    $primaryNavbar->getChild('Tools')                            ->addChild('cPanel Backup Generator')                ->setUri('/backup.php')                ->setOrder(3); });  
    • By Web Host Pro
      I added a hook file to try and change the title tags on each domain per a thread here.
      I removed the bad hook called titles.php and the site is still down with this message: 
      Oops!
      Something went wrong and we couldn't process your request.
      Please go back to the previous page and try again.
      The template cache folder is empty and I've tried it from multiple locations and computers. I've rebooted apache and the server and no help.
      Once the bad hook file is gone how can it still crash the whole system. The site is Web Host Pro
      Any ideas how to fix it?
    • By UWH - David
      We are trying to include a productID into a tracking link so we can include the product which was purchased. A hook is required for it and we require someone who can write a simple one. 
      Example of the complete.tpl link:
      <img src="https://trackingurl.com/ep?ord={$ordernumber}&orderid={$orderid}&product={$THISISMISSING}&qlist={$smarty.session.orderdetails.Products|@count}&amtlist={$amount*100}&cur=USD&img=1">
      Thank you!
       
    • By v1ktor
      Ok, so I have a hook in place for ShoppingCartCheckoutCompletePage. When they reach completion page, hook checks for products in the order and based on product ID and if order status is pending, it sends out a correct email. Because I'm using ShoppingCartCheckoutCompletePage hook, the email should go out right there and then when order is complete.
       
      So why does the email go out when dailycron runs in the morning? Thoughts?
       
      I'm using internal API inside hook to sendmail with a correct template.
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines