LAZer414 Posted August 19, 2011 Share Posted August 19, 2011 (edited) hi , i am designing a template for a customer , i saw that the links in the pages do not show titles and instead show - - - for arabic/persian UTF-8 characters in seo friendly mode. how can i fix this ? for example , in knowledgebase , when seo friendly links is off , there is a directory named resellers. , with link ../knowledgebase.php?action=displaycat&catid=2 when i name the folder in english seo friendly url is working fine : ../knowledgebase/2/resellers but when i type the folder name in arabic/persian utf-8 characters it generates a link as follows : ../knowledgebase/2/- but it should be for example : ../knowledgebase/2/نمایندگان_فروش and this is the link for the post inside that folder : ../knowledgebase/2/-------.html but it should be : ../knowledgebase/2/فوانین_نمایندگان.html which in english naming/typing , it would be : ../knowledgebase/2/reseller-rules.html this is in the case that there is no problem with the encoding and it is not related yet to the htaccess file . ( because its the link that is generated in the pages and yet is not related to the apache server to handle the correct url ) the thing that i found in template is a variable which i dont know where should i search for it ? maybe it is generated in a coded file of whmcs ? in knowledgebase.tpl it is the code that creates the links : <table width="100%" border="0" cellpadding="10" cellspacing="0" dir='rtl'> <tr> {foreach key=num item=kbcat from=$kbcats} <td width="33%" align="right" dir='rtl' valign="top"> <img src="images/folder.gif" border="0" class="absmiddle" alt="Folder" /> <strong> <a href="{if $seofriendlyurls}knowledgebase/{$kbcat.id}/{$kbcat.urlfriendlyname}{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}">{$kbcat.name}</a> </strong> ({$kbcat.numarticles})<br /> {$kbcat.description} </td> {if $num is div by 3} </tr> <tr> {/if} {/foreach} </tr> </table> is there any variable that can read the titles directly from the database ? i want to read the titles directly from database and then change htaccess accordingly if it doesnt work with the created links. any suggestions ? Edited August 19, 2011 by LAZer414 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted August 19, 2011 Administrators Share Posted August 19, 2011 SEF URLs are only available with Latin characters I'm afraid. 0 Quote Link to comment Share on other sites More sharing options...
LAZer414 Posted August 19, 2011 Author Share Posted August 19, 2011 ok thank you . i`ve disabled it . and there is not that much difference , because only downloads, announcements and knowledgebase was converting to seo friendly links . anyway thanks for the answer. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.