Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 810 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
whmcs title code how i can modified?

#1
my whmcs title code show beleow. i want to modified it.

<title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>

i want when i go my site homepage/index page then show this code like that

<title>{$companyname} - {$pagetitle}</title>

but when i go other page like shared hosting,reseller hosting etc then code show that

<title>{$pagetitle} - {$companyname}</title>
how i can do it. it possible?



Reply

#2
Yes it is possible. Please check the following offical document of WHMCS(Page titles section) :

[To see links please register here]

Reply

#3
In your templates, find header.tpl, use the following code :

{if $filename eq "index"}
<title>{$companyname} - {$pagetitle}</title>
{else}
<title>{$pagetitle} - {$companyname}</title>
{/if}
Reply

#4
You Should Some Modified Mr Caner G code. like this. i think it will be work.

<title>{if $filename eq "index"}{$companyname} - {$pagetitle}
{else}{$pagetitle} - {$companyname}{/if}</title>
Reply

#5
Alternatively you could use the template var {$isIndex}.

Like so

<title>
{if $isIndex}
{$companyname} - {$pagetitle}
{else}
{$pagetitle} - {$companyname}
{/if}
</title>

When in doubt about what template vars are available to you in WHMCS you can always use the {debug} command
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through