inthanet
Member-
Posts
44 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by inthanet
-
Hi, the Sql query have to look like this: UPDATE `mytable` SET `columnName` = REPLACE(`columnName`, 'oldurl', 'newurl') WHERE `columnName` LIKE '%oldurl%' You need to replace: mytable, columnName, oldurl, newurl as needed in your case
-
Found it 🙂 ->setAttribute('target', '_blank')
-
Hi, what parameter I have to use to open a secondary sidebar link in a new window? As example, "SetTarget" NOT WORKS
-
Same problem, I start posting screenshots instead code blocks
-
Thanks for your suggestion/Solution. I will take a closer look to improve my code or may I see something for future projects 🙂 In the meantime, I found a solution which works for me so far. By the way, I have the same problem, when I try to post something in this community as code I get an HTTP403 Error My Solution attached as screenshot 🙂
-
...... To overcome this simply transfer template name (eg. dark or light) from session to a long-living cookie Where/how to use the "long-living cookie" (via hook)?
-
OK, thank you and leemahoney3 for sharing your thoughts. I will give a try, this sounds like promising solution.
-
That exactly the theme I have purchased, it's working great so far. A few CSS tweaks are needed, but no problem. WHMCS let me choose the Theme via general settings, but this will be fixed for all users. I like that users are able to select the theme (Normal or Dark) The information could be saved in a WHMCS custom field. When the user login this information would be available so that the user would see the website according to the custom field data.
-
Hi, actually I had the same thought, but the problem is when the customer navigate throughout the menu, the additional parameter may get lost. Thanks for your suggestion. P.S. I try to find out how I could use a hook to accomplish this
-
Hi, I'm looking for a solution that a customer can choose the theme (Normal / Dark) I use the WHMCS default theme "twenty-one" and have additional "twenty-one as dark theme" by using child-theme. I would like that our customer can choose what they prefer Normal or Dark theme Has anyone an idea how a solution could look like?
-
How I get the active site language within PHP
inthanet replied to inthanet's topic in Developer Corner
I tested the with session variables, but the variable is unfortunately empty if the visitor/user not logged-in. I look for me that there is no chance to get this information on the PHP site, within the template, no problem. -
How I get the active site language within PHP
inthanet replied to inthanet's topic in Developer Corner
Sorry for the late feedback -
Hi, I'm looking for a way to get the active language (not default language) within a WHMCS custom page PHP script for not logged-in site visitors. In SMART is no problem, but I need this information before because the data assigned to the SMARTY variables depends on the language.
-
Hi, we use the client groups to give our resellers a certain discount based on their actual sales status and some other criteria. To be sure a new invoice uses the correct client group we check the criteria before invoicing and my change the client group which will then used to create the new invoice. Anyone use this scenario already and like to share how it was done? Actual I was thinking to use the"PreInvoicingGenerateInvoiceItems" hook to accomplish the needed process before invoicing.
-
We use different billing cycle 3 Month, 6 Month and 1 Year. The cycle abbreviation in Premium Comparison Order Form Template show only the English abbreviation. As example 1 Year = 1 yr. I cant find any language variable to change this so that an customer can see the abbreviation in the chosen language.
-
Hi, since today i get the follow error in WHMCS if I try to register an new domain or view existing domains CURL Error: 7 - Failed to connect to httpapi.com port 443: Connection timed out (IP: xxx.xxx.xxx.xxx & xxx.xxx.xxx.xxx) I have checked httpapi.com, there are a lot of DNS errors http://www.intodns.com/httpapi.com Anybody have the same problem?
-
Check your site here https://shaaaaaaaaaaaaa.com/
-
I found the right way how to do. If the follow code running as hook it will change the address block as desire. use Carbon\Carbon; use WHMCS\View\Menu\Item as MenuItem; if (App::getCurrentFilename() == 'clientarea') { add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { $client = Menu::context('client'); if($client->country == "DE") { if($client->companyname != ""){ $name = '<strong>'.$client->companyname.'</strong>'; } else { $name = '<strong>'.$client->fullname.'</strong>'; } $address1 = $client->address1; if($client->address2 != ""){$address2 = '<br>'.$client->address2;}else{$address2="";} $city = ' '.$client->city; $state = '<br>'.$client->state; $postcode = '<br>'.$client->postcode; $country = '<br>'.$client->countryname; $address_de = $name."<p>".$address1.$address2.$postcode.$city.$state.$country."</p>"; // Create the new Address Block panel and make sure it's the first one // displayed. /** @var MenuItem $newAddressBlock */ $newAddressBlock = $primarySidebar->addChild('Client Details'); $newAddressBlock->moveToFront(); // Add AddressBlock to the panel. $newAddressBlock->addChild( $address_de ); } }); }
-
Hi, i'm looking for an way you i can change the address format (client area home) Standard is: Name, Street, City, County, Zip, Country I need: Name, Street, Zip, City, County, Country i58.tinypic.com/25p5k05.jpg
-
Hi, somethinb new about this problem. We use V6.02 and have the same issue. All url are so far correct expect the announcement on client area home. We have installes WHMCS in an sub folder "cms". As you can see the url brings up /cms/cms/announce.....
-
Hi there, I wonder how I can show the product description after the product is selected. Thanks for any information which bring me on the right way
-
Hi there, looks good I like it. You share this mod? let me know Regards Uwe
