saimi1s Posted July 6, 2014 Share Posted July 6, 2014 Hello, How can i add decsriptions for each categories ? (not for forums) Thanks Link to comment Share on other sites More sharing options...
0 DragonVoid Posted July 6, 2014 Share Posted July 6, 2014 I don't understand what you mean? Could you please explain more? Link to comment Share on other sites More sharing options...
0 saimi1s Posted July 7, 2014 Author Share Posted July 7, 2014 Sure Dragonvoid, On ipb you have Categories/Forums/Sub-forums What i'm looking for it's a way to add TEXT DESCRIPTION for CATEGORIES like we do for Forums. On IPB official website they said that it's not possible.. If you have any solution ? Thks Or if you can find a way to add text under a CATEGORIE, but different text for each categories Link to comment Share on other sites More sharing options...
0 DragonVoid Posted July 7, 2014 Share Posted July 7, 2014 I don't know.. If they said it's not possible then it's most likely not unless you get a custom hook/application that does this. Link to comment Share on other sites More sharing options...
0 saimi1s Posted July 7, 2014 Author Share Posted July 7, 2014 Can we find a way to do it by editing the indextemplate ? Link to comment Share on other sites More sharing options...
1 pctsystem Posted July 7, 2014 Share Posted July 7, 2014 no there is no way to do that. Many people asking IPS about that matter.but IPS answered: let's make it easy. Name the Category that Explain everything in the first read. Or else you can ask some Hook Dev to Develop this hook for you 1 Link to comment Share on other sites More sharing options...
0 saimi1s Posted July 7, 2014 Author Share Posted July 7, 2014 Thks Pctsystem Link to comment Share on other sites More sharing options...
0 Lock Down Posted July 7, 2014 Share Posted July 7, 2014 Of course you can edit the boardindextemplate to add descriptions for categories.. find <foreach loop="categories:$cat_data as $_data"> <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )"> <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'> <h3 class='maintitle'> <a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a> </h3> change to <foreach loop="categories:$cat_data as $_data"> <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )"> <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'> <h3 class='maintitle'> <a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a> <br>My Cat description here. </h3> The easiest way would be to add the description to the language files something like $this->lang->words['cat10_description'] and create one for each cat replacing the 10 with the cat id number. Then adding that instead of a bunch of if statements. 1 Link to comment Share on other sites More sharing options...
0 Kingy Posted July 7, 2014 Share Posted July 7, 2014 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
saimi1s
Hello,
How can i add decsriptions for each categories ? (not for forums)
Thanks
Link to comment
Share on other sites
8 answers to this question
Recommended Posts