XiUS Docs > Tips and Tricks

Tips and Tricks

Auto Update Cache

This is a short description on how you can update cache by setting up cron and by XiUS configuration

Show search panel according ProfileTypes

This description will show you how to add menulink for search panel according to Profile Types

How to translate language of labels

In the case of multi-language support site, you need to change the language of your labels. It can be implemented by doing some changes in 3 files.

i) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/default_profile.php
find the code (near line 95)

<div class="xiusMplabel"><?php echo $up['label'][$i]; ?></div>[/code]

change this to

<div class="xiusMpValue"><?php echo XiusText::_($up['label'][$i]);?></div>

ii) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/default_filters.php
find the code (near line 27)

if(!empty($xiustooltip)) :
echo '<span title="'.$xiustooltip.'">'.$data['label'].'</span>';
else :
echo $data['label'];

and change this to

if(!empty($xiustooltip)) :
echo '<span title="'.$xiustooltip.'">'.XiusText::_($data['label']).'</span>';
else :
echo XiusText::_($data['label']);

iii) Go to the file: root/components/com_xius/templates/XIUS_TEAMPLATE/users/default_panel.php
find the same code as in the above case(ii) (near line 39) and do the same changes.

Here, XIUS_TEAMPLATE can be default, nextgen or linkedln which you have set for xius display.

After that,define each label name in language file: root/language/en-GB/en-GB.com_xius.ini.
For example: if you have a label name "username" then add code in language file as

COM_XIUS_USERNAME="Here goes the label name which you want to display"

Display Searched Result Horizontally

If u need to display search result horizontally then you can do it by template overriding

Search Members with avatar only

Searching Users who have uploaded their own avatar then XiUS provide this feature.