How to get category name in a specific module (mod_Thumbsup) - Joomla! Forum - community, help and support


hello guys...

well ... need add lines of code in module called mod_thumbsup (to display items image-thumb on 1 side) show me name of category, shows name of article. (i have installed joomla 1.5.14)

here attach module mod_thumbsup, have been looking , found line handles titles of articles found in file mod_thumbsup / tmpl / default.php on line 94 106 comes this:

code: select all

if($order[$j]=="t"&&$item->show_title) {
            echo "<div class=\"thumbsup-title".$item->css."\">";
           
            if($item->link_title)
            echo "<a href=\"".$item->link."\" class=\"thumbsup-title".$item->css."\">";
           
            echo $item->title;
           
            if($item->link_title)
            echo "</a>";
           
            echo "</div>";
         }


i add parameters file mod_thumbsup.xml, add these parameters backend are:

code: select all

<param name="show_category" type="radio" default="1" label="display category title" description="display category title">
         <option value="1">yes</option>
         <option value="0">no</option>
      </param>
<param name="link_category" type="radio" default="1" label="link category title" description="link category title">
         <option value="1">yes</option>
         <option value="0">no</option>
      </param>


i have added lines in file parameters helper.php support added in file mod_thumbsup.xml, added:

code: select all

line 52    $show_category      = (int) $params->get('show_category');
line 57    $link_category   = (int) $params->get('link_category');
line 336   $lists[$i]->show_categorye = $show_category;
line 340   $lists[$i]->link_category = $link_category;


but realized need sort of query database, requesting me hand on names of categories.
the purpose of making website dedicated listening music online, categories artists , albums articles. module showing titles of albums users ask, "what artist album?

the question how can show titles of categories before titles of articles in module?
i leave link on page see mean: http://www.radiocristclub.mygeekside.com modules "aƱadidos recientemente" , "albumes top 10"

be extremely grateful ;)

did ever resolve this? have same requirement (or section , category).
i have logged ticket developer far no response. :(





Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support