Project

General

Profile

Bug #2024 ยป 2024.patch

krileon, 20 October 2010 19:41

View differences:

components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.model.php
$userRank = null;
$_CB_database->loadObject( $userRank );
$pathImage = $pathImage . $this->params->get( 'TemplateRank', '/template/default/images/english' );
$pathImage = $pathImage . $this->params->get( 'TemplateRank', '/template/default/images' );
$rText = $userRank->rank_title;
$rImg = $pathImage . '/ranks/' . $userRank->rank_image;
} else {
-- components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.xml
++ components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.xml
......
<option value="2">In Forum Tab</option>
</param>
<if name="statDisplay" type="showhide" operator="!=" value="0" valuetype="const:int">
<param name="TemplateRank" type="text" default="/template/default/images/english" label="Path Template rank" description="" />
<param name="TemplateRank" type="text" default="/template/default/images" label="Path Template rank" description="" />
<if name="statDisplay" type="showhide" operator="=" value="2" valuetype="const:int">
<param name="statRanking" type="list" default="1" label="Ranking" description="Display the forum ranking text. &lt;strong&gt;IMPORTANT: Kunena/Fireboard/Joomlaboard/Simpleboard configuration must also allow to show this!&lt;/strong&gt;">
<option value="0">Hide</option>
    (1-1/1)