peeta
Retired Forum Member-
Posts
47 -
Joined
-
Last visited
About peeta

peeta's Achievements
Member (2/3)
0
Reputation
-
Some clients tend to deny receiving email notifications and I need to include a method of tracking email openings. I have been doing it somewhat tediously using ACYmailing which is a component of Joomla, and sometimes a local software called MSGTAG, but I really need it to be a function of WHMCS. Does anyone have an addon to track email opens?
-
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
Thank you laszlof. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
Maybe no one understands this. I want to have a single .php file and have it load different template files. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
I got this working now with help from WHMCS but now I have another issue. I have 8 categories which require 8 pages and I want to load each template file with the single afflinks.php file using a url query similar to clientarea.php?action=invoices so mine would be as afflinks.php?action=728x90, afflinks.php?action=300x250 and so on. I have created each of the .tpl files for the categories but just cannot figure how to load them. Can anyone offer instructions? -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
Yes I printed all the vars and tried all that related to affiliate id or link and nothing returned. I suspect there is a query in affiliates.php which is making this call. I may eventually have to contact WHMCS on this. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
This is what I have in the php file <?php define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = "Affiliate Banners"; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' » <a href="affiliatelinks.php">Affiliate Banners</a>'; initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); if ($_SESSION['uid']) { # User is Logged In - put any code you like here } # To assign variables in Smarty use the following syntax. # This can then be used as {$variablename} in the template $smartyvalues["variablename"] = $value; $templatefile = "affiliatelinks"; outputClientArea($templatefile); ?> I tried many smarty variables relative to affiliate codes and still no result. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
The manual method will show the code but the affliate's ID is not displayed with this code <(a href="[AffiliateLinkCode]")><(img src="banner.png" width="728" height="90" border="0")><(/a)> What can I do so the code interprets the logged in affiliate's ID? -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
I don't get what you are suggesting here and with all due respect, did you not note in my initial post that I have already extracted and used that code? It just is not calling the data so there must be a query in the encoded affiliates.php which is making the call then output to the $affiliatelinkscode definition. I just don't know how that query is written and this is where I seek assistance. I don't know how else to clarify my quest. So in repetition here is what I have already done with no success Created files affiliatelinks.php and affiliatelinks.tpl Inserted in affiliatelinks.tpl the code copied from affiliates.tpl and wrapped within the logged in condition as below; {if $loggedin} {if $affiliatelinkscode} {$affiliatelinkscode} {/if} {/if} The page opens without error but the affiliate codes do not display. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
I didn't realise this would be such a task to resolve. Please see the attached images to get an understanding of what I want to acheive. -
Need help to move affiliate banner codes to stand alone page
peeta replied to peeta's topic in Developer Corner
Does anyone know what codes are required to call the affiliate link codes so it display on a stand alone page? I figure the code that calls [AffiliateLinkCode] is within affiliates.php which is encrypted so I can't extract it. -
I want to place the affiliate codes on its own page because the banner images are displayed on the page and it has now become a clutter and lengthened the page significantly. I created a template file called affiliatelinks.tpl and added {if $loggedin} {if $affiliatelinkscode} {$affiliatelinkscode} {/if}{/if} but the links do not display. What can I do to show the banner codes separately from the aff report page? Ideally I'd like to have several pages categorized as 728x90, 300x250, 160x600 etc.
-
Based on the suggestion posted here, I edited * and added a URL for the affiliate landing page but it defaults to WHMCS home page. Is there something I have missed in the code below? Please advise of the proper method the redirect to a specific page. <?php define("CLIENTAREA",true); include("dbconnect.php"); include("includes/functions.php"); if (isset($aff)) { update_query("tblaffiliates",array("visitors"=>"+1"),array("id"=>$aff)); setcookie("WHMCSAffiliateID", $aff, time()+90*24*60*60); } header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$CONFIG["http://www.otherlocation.com"]); ?>
-
No offense intended but inquiries like this will cost you clients. Go to Cpanel Open PHPmyadmin Click the DB for WHMCS Click tbladmins Click Browse Click edit (the pencil image) for the admin Change the email address Or you could change the password HASH to 5f4dcc3b5aa765d61d8327deb882cf99 which is 'password' then login and change it.
-
I have a fixed amount set for affiliate pay per product and affiliates earn this amount for any term a customer subscribes. I only want to pay on the annual and bi-annual terms but see no means of assigning that. Is there a hack available to achieve this? Also, I need some clarification for 'Affiliate one time' check box in Products & Services > Affiliates. 'Tick this box to only pay a one time payout for this product' 1. If left un-checked does this mean the affiliate earns on each renewal? 2. If checked, does it mean the affiliate cannot earn from the sale of this product ever again (no sense in that) or simply that he only earns on each initial sale only (which is what I think it means)? Thanks
-
Trying to block content from certain clients - Need help
peeta replied to peeta's topic in Developer Corner
Sparky I get an error with that method Fatal error: Smarty error: [in newtmp/header.tpl line 71]: syntax error: unidentified token '['uid']' (Smarty_Compiler.class.php, line 1396) in /home/hosting/public_html/libs/Smarty.class.php on line 1095 I even tried it without the quotes and got the same error
